- Posts: 29
- Thank you received: 0
Put coupon name in notification email?
12 years 6 months ago #150040
by Tahiera
Put coupon name in notification email? was created by Tahiera
Latest Hikashop Business version...
What code can I add to the admin notification email to insert the name of the coupon used for an order?
For example, now it shows:
And I want it to show:
Thanks for your help as always.
What code can I add to the admin notification email to insert the name of the coupon used for an order?
For example, now it shows:
Coupon: -$7.00
And I want it to show:
Coupon (COUPON NAME): -$7.00
Thanks for your help as always.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 5 months ago #150271
by Mohamed Thelji
Replied by Mohamed Thelji on topic Put coupon name in notification email?
Hi,
The solution will probably be to edit the Preload version code of your "Order administrator notification" email through "Hikashop->System->Emails" and change that lines :
By :
Note that the "Emails" section is only available through the business version of Hikashop
The solution will probably be to edit the Preload version code of your "Order administrator notification" email through "Hikashop->System->Emails" and change that lines :
Code:
$cartFooters[] = array(
'NAME' => JText::_('HIKASHOP_COUPON'),
'VALUE' => $t
);
Code:
if(isset($data->cart->order_discount_code))
$coupon_name = JText::_('HIKASHOP_COUPON') . ' ('. $data->cart->order_discount_code . ')';
else
$coupon_name = JText::_('HIKASHOP_COUPON');
$cartFooters[] = array(
'NAME' => $coupon_name,
'VALUE' => $t
);
Note that the "Emails" section is only available through the business version of Hikashop
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 6
- Thank you received: 0
10 years 10 months ago #221678
by adil.houssam
Replied by adil.houssam on topic Put coupon name in notification email?
ça marche pas !
il va écrire toujours Coupon: -$7.00
$coupon_name = JText::_('HIKASHOP_COUPON');
JText::_('HIKASHOP_COUPON'); = "Coupon";
alors rien n'a changer ?
il va écrire toujours Coupon: -$7.00
$coupon_name = JText::_('HIKASHOP_COUPON');
JText::_('HIKASHOP_COUPON'); = "Coupon";
alors rien n'a changer ?
Please Log in or Create an account to join the conversation.
10 years 10 months ago #221679
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Put coupon name in notification email?
Hi,
The code that Mohamed gave is working fine.
Please, write in English in an English thread or if you do not want to write in English ; please create a new French thread in the French section of the forum.
Regards,
The code that Mohamed gave is working fine.
Please, write in English in an English thread or if you do not want to write in English ; please create a new French thread in the French section of the forum.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 6
- Thank you received: 0
10 years 10 months ago #221734
by adil.houssam
Replied by adil.houssam on topic Put coupon name in notification email?
oups, sorry
I found the solution :
replace :
by :
sorry for my english is not so good
I found the solution :
replace :
Code:
$cartFooters[] = array(
'NAME' => JText::_('HIKASHOP_COUPON'),
'VALUE' => $t
);
Code:
$cartFooters[] = array(
'NAME' => JText::_('HIKASHOP_COUPON') . ' - ' . @$data->order_discount_code,
'VALUE' => $t
);
sorry for my english is not so good
Please Log in or Create an account to join the conversation.
Time to create page: 0.164 seconds