• Resolved baetensl

    (@baetensl)


    Hi,

    Is it possible to auto send an sms to the customer (with a predefinded number for the gate) when local pickup is selected?
    Or add a certain text to the sms when pickup is choosen?

    At this moment we manually send an sms to the customer from the order page in woocommerce.

    BR
    Louis

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author BulkGate

    (@woosms)

    Hi @baetensl,

    Do you have some plugin for the local pickup mechanism?

    Thread Starter baetensl

    (@baetensl)

    Hi,

    No I havent.
    Is there a plugin which I can use in order to send an additional sms to our customers when local pickup is selected?

    BR
    Louis

    Thread Starter baetensl

    (@baetensl)

    I have a plugin for pickup/delivery but not localpickup itself.

    I wrote coded to add a custom text in the mail when a pickup is selected.
    An additional textfield is added in the order/mail page as soon as the customer has pickup selected. The number of the code from the door is written in a field witch is displayed on the order/mail form.

    Can i add code to the functions php which could add it to the sms when send?

    A resolution for me would be to add custom code or a possibility to add a specefic new item in “Personalize message” for the customer SMS.

    BR Louis

    Thread Starter baetensl

    (@baetensl)

    Hi,
    I found code on github and on this plugin page which would make it posible for me to get the data from the order in the sms.
    The plugin is called variable extension.

    	add_action("woosms_extends_variables", function(Extensions\Hook\Variables $variables, Extensions\Database\IDatabase $database)
        {
           
    
            $result = $database->execute('SELECT <code>additional_afhaalcode</code> FROM <code>order</code> WHERE order_id = "'.$database->escape($variables->get('order_id')).'"');
    
            if($result->getNumRows())
            {
                $row = $result->getRow();
                $variables->set('additional_afhaalcode', $row->additional_afhaalcode);
            }

    information github : https://github.com/BulkGate/woosms-extensions/blob/master/README.md

    Plugin Author BulkGate

    (@woosms)

    Hi @baetensl,

    Great! In that case, you’re able to do everything yourself without a problem ??

    See our GitHub
    https://github.com/bulkgate/woosms-extensions

    If anything, please let us know here. I’ll close the issue for now, but you can still reply if anything.

    Thread Starter baetensl

    (@baetensl)

    Hi,

    For now I changed the code of the plugin as you can see above, but the sms does not pickup the added variable.
    After changing the code and uploading the plugin extension with the code above I do not see the new variable.
    I have added the variable <additional_afhaalcode> manually in the customer sms but is does not pickup the string from the order, the mail does add the string but not the sms.

    SMS example :
    store: John Doe, bedankt voor de bestelling. Uw bestelling 14197 wordt verwerkt. BR store <additional_afhaalcode>

    I am not an advanced programmer and do not know if the data is fetched in woosms or where the problem lays.
    Do I need to add code after uploading the plugin?
    Is the added code triggerd when I open the woosms on wordpress in order for me to add the addtitional variable?

    I will try to figure this one out but would like someones advice.

    BR.
    Louis

    string in customer sms

    • This reply was modified 4 years, 7 months ago by baetensl.
    Plugin Author BulkGate

    (@woosms)

    Hi @baetensl,

    We’ll try to help you.

    Could you send a sample of how have you implemented it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘SMS pick-up’ is closed to new replies.