Jump to content

{voucher_num}


Recommended Posts

Hello everybody!

 

I have a problem with discount vouchers.

 

In the administration panel I enabled discount vouchers. I create a discount voucher and assign it to the customer. Then I created a template order status vouchers. The customer receives the email message vouchers.html.

 

The message is a function {voucher_num}. This function does not show the discount voucher in the message, just: {voucher_num}. How do I change to show the discount voucher number, instead of {voucher_num}.

 

{shop_name}

Hi {firstname} {lastname},

Your order #{id_order} history

This is to inform you about the creation of a voucher in your name as a result of your order #{id_order}.

Here is the code of your voucher : {voucher_num}, with an amount of {voucher_amount}.
Simply copy/paste this code during the payment process for your next order.

{shop_name} powered with PrestaShop™

 

Please help!

 

_____________________________

 

Agencja Reklamowa JUSTPRO

Edited by henryk20 (see edit history)
Link to comment
Share on other sites

The message is a function {voucher_num}. This function does not show the discount voucher in the message, just: {voucher_num}.

 

Anything within curly races are short codes with actual values assigned in the relevant controller when mail method is called. You cannot simply add it to template to display its value. Find the mail method call within the code that sends that email and add the short code to extra variables set there. If you don't know how this is done, post your questions in the development forum. This forum is for configuration and installation issues.

 

Marty Shue

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...