- Posts: 4
- Thank you received: 0
Customising Email Message Based on Shipping Zone
- Intellitech2017
-
Topic Author
- Offline
Less
More
8 years 10 months ago #283048
by Intellitech2017
Customising Email Message Based on Shipping Zone was created by Intellitech2017
-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.32
-- Browser(s) name and version -- : Chrome, Firefox
Would it be possible to customise a message in the order creation or order confirmation email base on Country selection criteria?
Example: If Country "Singapore" selected, the default email notifications will be triggered.
But if countries other than SG selected, can there be an additional line printed in the default notification?
I suppose it should be using an 'if... else' condition in the customisation. But which part and variable should be used to program customise this?
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6.32
-- Browser(s) name and version -- : Chrome, Firefox
Would it be possible to customise a message in the order creation or order confirmation email base on Country selection criteria?
Example: If Country "Singapore" selected, the default email notifications will be triggered.
But if countries other than SG selected, can there be an additional line printed in the default notification?
I suppose it should be using an 'if... else' condition in the customisation. But which part and variable should be used to program customise this?
Please Log in or Create an account to join the conversation.
8 years 10 months ago #283052
by nicolas
Replied by nicolas on topic Customising Email Message Based on Shipping Zone
Hi,
You can add such code in the HTML version of the email via the menu System>Emails:
where XXX is either the name of the country zone.
You can add such code in the HTML version of the email via the menu System>Emails:
Code:
<?php
if($data->cart->billing_address->address_country == 'XXX'){
echo 'my custom text for country XXX';
}
?>
Please Log in or Create an account to join the conversation.
Time to create page: 0.144 seconds