Jump to content

Creating Voucher/discount By Code


ronb

Recommended Posts

hi everyone

 

i am pretty new in prestashop, so please help me with this one.

 

i understand how to create voucher/discount as an admin, using the prestashop cms

but

i want to create it via code, because i want to create a discount for each new customer, as they are registered. so i need to do it by code.

my question is, how can i do that?

 

i will really appreciate any help you can offer,

thanks guys

Link to comment
Share on other sites

  • 1 month later...

You don't need to create a module for that.

 

Firstly, create (manually) a voucher applicable to every customer, only one Time per customer.

 

Then, in the /mails/ directory, edit the mail sent on customer registration to add a sentence and the voucher code.

 

Then, each customer who registers Will receive the code

  • Like 1
Link to comment
Share on other sites

You don't need to create a module for that.

 

Firstly, create (manually) a voucher applicable to every customer, only one Time per customer.

 

Then, in the /mails/ directory, edit the mail sent on customer registration to add a sentence and the voucher code.

 

Then, each customer who registers Will receive the code

 

Yeah this is a solution, but he wants the process to be automated i guess, that's why i suggested a module. In the way you suggested he has to do it manually for each customer. What i think he means is he wants a customer to have a personal code... or maybe i'm wrong. If it's so, your solution is fine enough :)

Link to comment
Share on other sites

Yeah this is a solution, but he wants the process to be automated i guess, that's why i suggested a module. In the way you suggested he has to do it manually for each customer. What i think he means is he wants a customer to have a personal code... or maybe i'm wrong. If it's so, your solution is fine enough :)

 

As Olea said, all you would need to do is create a universal voucher only allowed to be used once per customer, and then edit the welcome email in your Back Office under Tools > Translations > Email Template Translations, and add some sort of line at the bottom offering a one-time discount code.

 

From there, the whole process would be automated. If I were to create a new account, my welcome email would include something along the lines of "Please take advantage of 10% off your first order using the code WELCOME." And as a customer, once I use it I would no longer be able to use it again because it is only allowed once per user.

 

I hope this helps explain things a little better.

 

-Mike

Link to comment
Share on other sites

  • 4 weeks later...

Hi,

 

is it possible to create a coupon code (automaticaly done by the system) when a customer purchase something, for example if they spend £100 you will have £10 discount coupon to spend on the website, and after the purchase customer will receive the code, and when they buy a new product and enter the coupon code they receive it will be deducted?

Link to comment
Share on other sites

  • 3 years later...

As Olea said, all you would need to do is create a universal voucher only allowed to be used once per customer, and then edit the welcome email in your Back Office under Tools > Translations > Email Template Translations, and add some sort of line at the bottom offering a one-time discount code.

 

From there, the whole process would be automated. If I were to create a new account, my welcome email would include something along the lines of "Please take advantage of 10% off your first order using the code WELCOME." And as a customer, once I use it I would no longer be able to use it again because it is only allowed once per user.

 

I hope this helps explain things a little better.

 

-Mike

Hi,

 

The only issue I see with this approach is - If the old customer somehow know about the voucher code then even they can use it.

 

Thanks

Manish Kumar

Link to comment
Share on other sites

  • 7 months later...

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...