[Skip to main content](#vessel-content)

#   Put coupon name in notification email?

##

- **[Tahiera](/forum/user/5087-tahiera "View Tahiera's Profile")**
- [![Tahiera's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5087-tahiera "View Tahiera's Profile") Topic Author
- [ Offline](/forum/user/5087-tahiera)

Less More

- Posts: 29
- Thank you received: 0
-
-

12 years 6 months ago [\#150040](#150040) by [Tahiera](/forum/user/5087-tahiera "View Tahiera's Profile")  *[Put coupon name in notification email?](/forum/46-discount-coupon/867000-put-coupon-name-in-notification-email#150040 "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.")* was created by *[Tahiera](/forum/user/5087-tahiera "View Tahiera's Profile")*

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:

> Coupon: -$7.00

And I want it to show:

> Coupon (COUPON NAME): -$7.00

Thanks for your help as always.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjcwMDAtcHV0LWNvdXBvbi1uYW1lLWluLW5vdGlmaWNhdGlvbi1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 6 months ago [\#150271](#150271) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Put coupon name in notification email?](/forum/46-discount-coupon/867000-put-coupon-name-in-notification-email#150271 "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.")*

Hi,
The solution will probably be to edit the Preload version code of your "Order administrator notification" email through "Hikashop-&gt;System-&gt;Emails" and change that lines : Code:

$cartFooters[] = array( 'NAME' =&gt; JText::_('HIKASHOP_COUPON'), 'VALUE' =&gt; $t );

By : Code:

if(isset($data-&gt;cart-&gt;order_discount_code)) $coupon_name = JText::_('HIKASHOP_COUPON') . ' ('. $data-&gt;cart-&gt;order_discount_code . ')'; else $coupon_name = JText::_('HIKASHOP_COUPON'); $cartFooters[] = array( 'NAME' =&gt; $coupon_name, 'VALUE' =&gt; $t );

Note that the "Emails" section is only available through the business version of Hikashop

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjcwMDAtcHV0LWNvdXBvbi1uYW1lLWluLW5vdGlmaWNhdGlvbi1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[adil.houssam](/forum/user/35775-adil-houssam "View adil.houssam's Profile")**
- [![adil.houssam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35775-adil-houssam "View adil.houssam's Profile")
- [ Offline](/forum/user/35775-adil-houssam)

Less More

- Posts: 6
- Thank you received: 0
-
-

10 years 11 months ago [\#221678](#221678) by [adil.houssam](/forum/user/35775-adil-houssam "View adil.houssam's Profile")  Replied by *[adil.houssam](/forum/user/35775-adil-houssam "View adil.houssam's Profile")* on topic *[Put coupon name in notification email?](/forum/46-discount-coupon/867000-put-coupon-name-in-notification-email#221678 "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.")*

ça marche pas !

il va écrire toujours Coupon: -$7.00

$coupon_name = JText::_('HIKASHOP_COUPON');

JText::_('HIKASHOP_COUPON'); = "Coupon";

alors rien n'a changer ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjcwMDAtcHV0LWNvdXBvbi1uYW1lLWluLW5vdGlmaWNhdGlvbi1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 11 months ago [\#221679](#221679) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Put coupon name in notification email?](/forum/46-discount-coupon/867000-put-coupon-name-in-notification-email#221679 "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.")*

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,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjcwMDAtcHV0LWNvdXBvbi1uYW1lLWluLW5vdGlmaWNhdGlvbi1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[adil.houssam](/forum/user/35775-adil-houssam "View adil.houssam's Profile")**
- [![adil.houssam's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35775-adil-houssam "View adil.houssam's Profile")
- [ Offline](/forum/user/35775-adil-houssam)

Less More

- Posts: 6
- Thank you received: 0
-
-

10 years 11 months ago [\#221734](#221734) by [adil.houssam](/forum/user/35775-adil-houssam "View adil.houssam's Profile")  Replied by *[adil.houssam](/forum/user/35775-adil-houssam "View adil.houssam's Profile")* on topic *[Put coupon name in notification email?](/forum/46-discount-coupon/867000-put-coupon-name-in-notification-email#221734 "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.")*

oups, sorry

I found the solution :

replace : Code:

$cartFooters[] = array( 'NAME' =&gt; JText::_('HIKASHOP_COUPON'), 'VALUE' =&gt; $t );

by : Code:

$cartFooters[] = array( 'NAME' =&gt; JText::_('HIKASHOP_COUPON') . ' - ' . @$data-&gt;order_discount_code, 'VALUE' =&gt; $t );

sorry for my english is not so good

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjcwMDAtcHV0LWNvdXBvbi1uYW1lLWluLW5vdGlmaWNhdGlvbi1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.227 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
