Hi! The same thing is being used in sms marketing.
Hi! The same thing is being used in sms marketing.
Just remember that when you say "SMS Marketing" your customers think "Mobile Spam." Tread VERY carefully in this area; here be dragons.
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
frank18, that did not work for me, any other suggestion?
Scott,
Thank you for your wonderful mod!
If I'd like it to send me, say:
customer name
customer country
products orderd (this is the most importnad part)
amount: $100
How would I set that up?
I've already figured out the country part, but still no luck with products ordered. My sms service provider can handle more than 140 symbols.
Any help is really appreciated.
Hi everyone,
I figured it out by myself. Here's the code in case someone's searching for similar functionality:
You will recieve and SMS message in the following format:PHP Code:
$email_text = $order->customer['firstname'] . " " . $order->customer['lastname'] . "\n" . "|" . $order->customer['country']['title'] . "\n" . "|" . "\n" . "Subtotal: \$" . $order->info['subtotal'] . "\n" . "|" . "\n" . "Shipping: \$" . $order->info['shipping_cost'] . "\n" . "|" . "\n" . "Total: \$" . $order->info['total'] . "\n" . "|" . "\n" . $order->products_ordered . "\n";
Customer name | Country name | Subtotal | Shipping cost | Total | Products ordered
where "|" is a separator. It's just looking good on my cellphone screen.
Initially I wanted subtotal, shipping and total to be displayed at the end of the message, but it didn't work - I'm probably missing something at the end of this statement- but i'm not a php expert, not even close. So it's fine for me the way it is now.PHP Code:
$order->products_ordered . "\n";
Cheers.
I have the mod working and the format looks good on my phone with no SPAM message on the bottom. Why would I receive two exact same text messages for every new order? Any ideas?
Bookmarks