Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Bartek

    (@bartj)

    Hi @tomasbud!

    To use order.billing_phone placeholder, you need to use order based event, as Order Completed or similar. If you don’t see the placeholder on the list, try either changing the event to other order based or refresh the page – it may be a connection issue. The placeholder you mention is included in main plugin, so there should be no issues using it.

    Anyway, even if for some reasons the placeholder won’t show up on the list, feel free to use it anyway in your automation: it should be totally fine, as long as you use order based event in the automation.

    Nevertheless, pay attention that Twilio requires you to submit a valid number[^1] with country code, and this means you have to somehow enforce it on your customers or filter it, before it is stored in database. ShopMagic doesn’t perform such operation itself, thus you must prepare a valid number.

    [^1]: https://www.twilio.com/docs/glossary/what-e164

    Thread Starter tomasbud

    (@tomasbud)

    unfortunately, there is no such placeholder in placeholder section, if even I use order based event (order status changed -see screenshot attached on this link https://mega.nz/file/oLJAEaKK#VaUnLa6584nn1mv9-HZQul6YUi9Pi8qnyyJrd16LjJg )

    If I just write {{ order.billing_phone }}, it returns empty – no any record in it.
    I am using a free version of ShopMagic, I have to say. Maybe that is a reason ?

    Plugin Contributor Bartek

    (@bartj)

    Hi @tomasbud

    I must admit, I fooled myself, after 2 years of developing the plugin ?? Actually, there’s no order.billing_phone placeholder in ShopMagic, and it is not because it’s free version – we just never implemented such placeholder. It seemed so obvious to me, that I was sure we did…

    Anyway, order.billing_phone from now on is added to our backlog and will be introduced. Fortunately, there is a possibility to get customer number with customer.phone placeholder (which definitely is implemented).

    I hope this helps ??

    Thread Starter tomasbud

    (@tomasbud)

    customer.phone will not help in my case (they checkout without creating account), but looking forward fororder.billing_phone . Hope will have it soon ??

    Plugin Contributor Bartek

    (@bartj)

    Hi @tomasbud

    customer.phone doesn’t refer to registered users, as ShopMagic have it own definition of customer, and depending on the context it is user or anonymous (not registered) buyer. Thanks to that, you can safely exchange customer placeholders, when you want to access any order data. For that instance, customer.first_name is equal to order.billing_first_name, etc.

    Hope this clarifies the use case and helps you achieve your goal!

    Plugin Contributor Bartek

    (@bartj)

    Hi @tomasbud

    I just wanted to mention that with ShopMagic 4.2.0 release we’ve added order.billing_phone and order.shipping_phone placeholders.

    Thread Starter tomasbud

    (@tomasbud)

    thank You.

    You did a great work!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Billing phone placeholder’ is closed to new replies.