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

#   adding coupon number to the notification email

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

12 years 8 months ago [\#142605](#142605) by [medean](/forum/user/30772-medean "View medean's Profile")  *[adding coupon number to the notification email](/forum/35-orders-management/865617-adding-coupon-number-to-the-notification-email#142605 "-- url of the page with the problem -- :   velacell.de  -- HikaShop version -- : business (latest) -- Joomla version -- : 3.2 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox  Hi, I couldn´t find any help yet by searching for my problem so I am opening this new thread.  We have many different coupons the customers can use when they order and until now in the notification Email we get after a new order is only shown that the customer used a coupon but not the number/code of it. That would be very helpful for our administration if the right code would be seen.  Which code do I need to add to the notification email html file to see this code/number?  Can someone help?  thanks")* was created by *[medean](/forum/user/30772-medean "View medean's Profile")*

-- url of the page with the problem -- : [ velacell.de](http://velacell.de)
-- HikaShop version -- : business (latest)
-- Joomla version -- : 3.2
-- PHP version -- : 5.5
-- Browser(s) name and version -- : firefox

Hi,
I couldn´t find any help yet by searching for my problem so I am opening this new thread.

We have many different coupons the customers can use when they order and until now in the notification Email we get after a new order is only shown that the customer used a coupon but not the number/code of it. That would be very helpful for our administration if the right code would be seen.

Which code do I need to add to the notification email html file to see this code/number?

Can someone help?

thanks

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#142658](#142658) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[adding coupon number to the notification email](/forum/35-orders-management/865617-adding-coupon-number-to-the-notification-email#142658 "-- url of the page with the problem -- :   velacell.de  -- HikaShop version -- : business (latest) -- Joomla version -- : 3.2 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox  Hi, I couldn´t find any help yet by searching for my problem so I am opening this new thread.  We have many different coupons the customers can use when they order and until now in the notification Email we get after a new order is only shown that the customer used a coupon but not the number/code of it. That would be very helpful for our administration if the right code would be seen.  Which code do I need to add to the notification email html file to see this code/number?  Can someone help?  thanks")*

Hi there,

You have to go in System&gt;Email, edit the order notification mail and add: Code:

&amp; $data-&gt;order_discount_price;

Where you want the coupon code to be displayed ![:)](/media/kunena/emoticons/8.png ":)")

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

12 years 8 months ago [\#143381](#143381) by [medean](/forum/user/30772-medean "View medean's Profile")  Replied by *[medean](/forum/user/30772-medean "View medean's Profile")* on topic *[adding coupon number to the notification email](/forum/35-orders-management/865617-adding-coupon-number-to-the-notification-email#143381 "-- url of the page with the problem -- :   velacell.de  -- HikaShop version -- : business (latest) -- Joomla version -- : 3.2 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox  Hi, I couldn´t find any help yet by searching for my problem so I am opening this new thread.  We have many different coupons the customers can use when they order and until now in the notification Email we get after a new order is only shown that the customer used a coupon but not the number/code of it. That would be very helpful for our administration if the right code would be seen.  Which code do I need to add to the notification email html file to see this code/number?  Can someone help?  thanks")*

Hi,

I tried many different versions now and the only way I could display the right code was to set
echo $data-&gt;order_discount_code;
at the end of the html code from the admin order notification Email.
But the result is not so nice ... the coupon code is standing on top of the Email:

[ ![hc1dc9d5&#95;2014-02-11.jpg](/forum/attachment/15222) ](/forum/attachment/15222 "...2014-02-11.jpg")

When I tried to put it somewhere else I had just the raw html code shown in the Email:

[ ![h74eaccb&#95;2014-02-11.jpg](/forum/attachment/15224) ](/forum/attachment/15224 "...2014-02-11.jpg")

[ ![h027481a.jpg](/forum/attachment/15223) ](/forum/attachment/15223 "h027481a.jpg")

Would it be possible to have it like in the next picture? - It would be so nice and easy if you could see the code in brackets behind the word "Gutschein" (Coupon) or at least somewhere under the shipping method.

[ ![h0011975&#95;2014-02-11.jpg](/forum/attachment/15225) ](/forum/attachment/15225 "...2014-02-11.jpg")

I am really sorry, seems to be just an easy thing but I can´t manage it :blush:

would be so greatful for help with a detailed description or screenshot where to put the text.

thanks

- [ ![hc1dc9d5&#95;2014-02-11.jpg](/forum/attachment/15222) ](/forum/attachment/15222 "...2014-02-11.jpg") [ ](/forum/attachment/15222?download=1 "...2014-02-11.jpg")
- [ ![h027481a.jpg](/forum/attachment/15223) ](/forum/attachment/15223 "h027481a.jpg") [ ](/forum/attachment/15223?download=1 "h027481a.jpg")
- [ ![h74eaccb&#95;2014-02-11.jpg](/forum/attachment/15224) ](/forum/attachment/15224 "...2014-02-11.jpg") [ ](/forum/attachment/15224?download=1 "...2014-02-11.jpg")
- [ ![h0011975&#95;2014-02-11.jpg](/forum/attachment/15225) ](/forum/attachment/15225 "...2014-02-11.jpg") [ ](/forum/attachment/15225?download=1 "...2014-02-11.jpg")

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#143387](#143387) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[adding coupon number to the notification email](/forum/35-orders-management/865617-adding-coupon-number-to-the-notification-email#143387 "-- url of the page with the problem -- :   velacell.de  -- HikaShop version -- : business (latest) -- Joomla version -- : 3.2 -- PHP version -- : 5.5 -- Browser(s) name and version -- : firefox  Hi, I couldn´t find any help yet by searching for my problem so I am opening this new thread.  We have many different coupons the customers can use when they order and until now in the notification Email we get after a new order is only shown that the customer used a coupon but not the number/code of it. That would be very helpful for our administration if the right code would be seen.  Which code do I need to add to the notification email html file to see this code/number?  Can someone help?  thanks")*

Hi there,

The code you pasted is php and you put it in the middle of html code, that's why it doesn't work.
What you have to do is to embeed the code with &lt;?php ?&gt;
Example: Code:

&lt;?php echo $data-&gt;order_discount_code; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NTYxNy1hZGRpbmctY291cG9uLW51bWJlci10by10aGUtbm90aWZpY2F0aW9uLWVtYWlsP3RtcGw9bWFya2Rvd24=) 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.104 seconds

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

[](#top)
