WPPizza – A Restaurant Plugin for WordPress › Support › Add-Ons › Extensions › Confirm | Reject | Notify › General Questions › Confirm SMS Text
- AuthorPosts
- 18 September, 2019 at 2:13 am #44861
Good afternoon,
I can’t find the right extensions forum so I post my question here.
We want to send only a text sms when the order is on its way.We like to display our company name in the sms (that’s possible with tm4b). in stead of our mobile number.
We know that’s limited to one way communication but that’s fine for our purpose.Thanks!
18 September, 2019 at 2:26 pm #44876I assume you are referring to the Confirm/Reject/Notify plugin (you did not say) so I created a forum(s) for it that did not exist. Thanks for pointing that out.
Regarding your question, the CRN plugin has a filter you can use to add your branding like so (as you know, this will only work if using one-way communications):
add_filter('wppizza_crn_sms_branding', 'mysmsbranding'); function mysmsbranding($sms_sender_id){ /* overwrite sender id as required (here set to MyShop123 ) a-zA-Z0-9 (and spaces) only, 11 characters max */ $sms_sender_id = 'MyShop123'; return $sms_sender_id; }
(not tested as such, but should work I would think)
20 September, 2019 at 1:12 pm #44904Thank you so much for replying so quickly.
Yes a am referring to the Confirm/Reject/Notify plugin.I looked in the plugin in the WordPress envoirement but I can’t find a “filter” in the settings.
I also looked in the plugins/wppizza-crn folder (FTP).
Thanks again.
20 September, 2019 at 2:04 pm #44906You won’t find it in the “WordPress Environment” or in any directory. That’s not how WordPress filters work .
You must familiarize yourself with thissee here for a starting point
https://docs.wp-pizza.com/developers/?section=filters-actions-functions
– or in fact any WordPress actions/filters tutorial you can find with a quick search(at the most basic level, the filter/code above belongs into your [child]theme’s functions.php )
- AuthorPosts
- The topic ‘Confirm SMS Text’ is closed to new replies.