KGI Posted February 16, 2010 Share Posted February 16, 2010 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 CustomersHowever 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 More sharing options...
rocky Posted February 17, 2010 Share Posted February 17, 2010 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 More sharing options...
KGI Posted February 17, 2010 Author Share Posted February 17, 2010 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 muchIan Link to comment Share on other sites More sharing options...
tempomania Posted April 21, 2010 Share Posted April 21, 2010 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.ThanksPaolo Link to comment Share on other sites More sharing options...
Sultan Posted June 6, 2010 Share Posted June 6, 2010 ....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 More sharing options...
tempomania Posted June 7, 2010 Share Posted June 7, 2010 Hi, thank you so much! Link to comment Share on other sites More sharing options...
Sultan Posted June 8, 2010 Share Posted June 8, 2010 Hi, thank you so much! You're welcome Link to comment Share on other sites More sharing options...
geko Posted August 24, 2010 Share Posted August 24, 2010 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 More sharing options...
bellini13 Posted June 17, 2011 Share Posted June 17, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now