Jump to content

[SOLVED] The use of Vouchers


KGI

Recommended Posts

Hello to all!!

Looking for some help on the above subject.

When in the BO and have set up the 1st voucher having followed all the easy instructions we set the use by (To be used by) to ALL Customers

However the voucher does not show in any of the customers account My Vouchers.

However, if we use only one customer it does show up.

Can anyone please point us in a direction to make ALL Customers work.

Any help is warmly received and thanking you indvance.

Ian

Link to comment
Share on other sites

For some reason, the Prestashop team decided not to display vouchers for all customers by default, but they did add a parameter that allows you to change that behaviour. Change line 12 of discount.php from:

$discounts = Discount::getCustomerDiscounts(intval($cookie->id_lang), intval($cookie->id_customer), true, false);



to:

$discounts = Discount::getCustomerDiscounts(intval($cookie->id_lang), intval($cookie->id_customer), true, true);

Link to comment
Share on other sites

Hello NC,

We would like to say thank you for the script code change you advised in your reply post to us. We can confirm that we changed the data and have tested this on the PS and can report that it now works a treat.

Interesting Voucher system!! and we also can not understand why it was not added in by default by the PS Team. Never the less, through your knowledge we have gained further experience with the PS software and it operation.

Again - Thank you very much


Ian

Link to comment
Share on other sites

  • 2 months later...

HI,

sorry but while this works in FO it doesn't work in BO.

When I create e voucher valid for all customer it displays in the customer's My Account but not in the BO corresponding to the data sheet of the customers... it simply says the customer has no vouchers.

Any help appreciated.

Thanks
Paolo

Link to comment
Share on other sites

  • 1 month later...
....
When I create e voucher valid for all customer it displays in the customer's My Account but not in the BO corresponding to the data sheet of the customers... it simply says the customer has no vouchers.

Any help appreciated.

....


Edit AdminCustomers.php in [admin folder] > [tabs folder]

in line 160 (or around)

change this line from

$discounts = Discount::getCustomerDiscounts($defaultLanguage, $customer->id, false, false);



To this:

$discounts = Discount::getCustomerDiscounts($defaultLanguage, $customer->id, true, true);



and you should see it now :)

Hope that helps...

Good Luck, :coolsmile:

Link to comment
Share on other sites

  • 2 months later...

Gents,

His there anyway to add more customer than one to one single voucher.
Example :
Group1 friendly customers and provide them with a special voucher for free shipment
Group2 friendly customers and provide them with a special voucher for free shipment with a different code than the above.

Regards.

Link to comment
Share on other sites

  • 9 months later...
Gents,

His there anyway to add more customer than one to one single voucher.
Example :
Group1 friendly customers and provide them with a special voucher for free shipment
Group2 friendly customers and provide them with a special voucher for free shipment with a different code than the above.

Regards.


did anyone find an answer to this question? If I have 100 customers, and i only want to give 10 of them a 10% voucher, is that possible? Or do I really need to move those 10 customers to a new group ?
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...