• Resolved stivenson2005

    (@stivenson2005)


    Hello there,

    I am wondering if it possible to send the generated raffle ticket ID via SMS? I am using woocommerce Twilio SMS plugin, and just thought it would be great if there is a way to send an SMS with the raffle ticket number. And if there is a variable for that, what it is. Thank you for this plugin!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    We tie into the woo email template. No one has asked for this. We will look into it and if it makes sense we will add it. Based on our project log, if we added it, it will be sometime in the fall.

    Thanks,

    Thread Starter stivenson2005

    (@stivenson2005)

    Thanks for the info, its due to the fact the organization I built a website for is seeking this feature as they do sell lottery tickets for humanitarian causes here in Norway, and they used to sell them physically in the past and now they are moving digitally. The issue with the e-mail is that many of their supporters are elderly and they do not own an email address, and mercy go by with the old non-smart phones, and this came in a board meeting with the organization as it will make it easier for them to deliver the raffle numbers to those whom purchase via SMS. And if this can be made as a special request they will definitely go for it as it makes a huge difference for them.

    Thread Starter stivenson2005

    (@stivenson2005)

    Thanks anyways. Have resolved this and customized a snippet to send SMS via Twilio.

    Resolved.

    leighw88

    (@leighw88)

    Would love to know how this was achieved.

    Thread Starter stivenson2005

    (@stivenson2005)

    Hi @leighw88

    Not sure if I can discuss this on an open forum since involves paid plugin and custom code. If i am in violation of any of the forum rules kindly delete my comment.

    The way i achieved this by first having Woocommerce Twilio SMS Notification plugin(Paid). So then i wrote a small code where I declare my own var for a custom SMS message like Hi %first_name% your ticket nummer is %ticket_number%.

    so in the same snippet i included the SQL query from the WPRaffle where it fetches the ticket number and then included it in the message. Like so for the blow example replacing %order_id% with the actual order number fetched from get_order_number function.

    $message = str_replace( '%order_id%', $order->get_order_number(), $message );

    leighw88

    (@leighw88)

    Hi @stivenson2005

    Perfect, appreciate you responding.

    Thanks again

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WPRaffle and SMS’ is closed to new replies.