adding coupon number to the notification email

  • Posts: 33
  • Thank you received: 0
10 years 9 months ago #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

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #142658

Hi there,

You have to go in System>Email, edit the order notification mail and add:

& $data->order_discount_price;
Where you want the coupon code to be displayed :)

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 0
10 years 9 months ago #143381

Hi,

I tried many different versions now and the only way I could display the right code was to set
echo $data->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:



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






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.




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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #143387

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 <?php ?>
Example:

<?php echo $data->order_discount_code; ?>

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds
Powered by Kunena Forum