PrestaShop Forums: Make Voucher NOT cumulative with itself - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Make Voucher NOT cumulative with itself


Make Voucher NOT cumulative with itself

#1 sm3004

    PrestaShop Apprentice

  • 11 Jan 2010
  • Members
  • PipPip
  • 107 posts

Posted 09 February 2010 - 01:00 AM

Hi,

I have a problem with a voucher and cannot find any solution in the forums.


How do I make a voucher that is cumulative with other vouchers but not with itself?

Currently I have a voucher that gives 10% off to everyone, but if I enter cumulative with other vouchers, then I can enter the voucher code over and over again and it keeps taking an additional 10% off.

Please help.

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 09 February 2010 - 02:06 AM

You could set "Quantity per each user" to 1

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 09 February 2010 - 02:09 AM

This will only allow the user to use the code once and never again, or is that a wrong assumption???

I need them to be able to use it once per order but they can order 30 times and for every one of those orders, they can use the discount.

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 09 February 2010 - 03:55 AM

You are correct in that it would only allow the customer to use the voucher once. As far as I can tell there is no way to do what you are needing out of the box

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 09 February 2010 - 04:05 AM

That's very weird, no one ever thought of this?

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 10 February 2010 - 06:41 AM

I hear crickets

#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 05 May 2010 - 03:24 PM

i have the same problem.
have you made a feature request ?

#8

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 05 May 2010 - 06:38 PM

in classes/Cart.php

l:816

            
foreach ($discounts as $discount)
if (!$discount['cumulable']){
return Tools::displayError('previous voucher added isn't cumulative with other discounts');
} else {
if($discountObj->name == $discount['name']){
return Tools::displayError('you cannot use this voucher anymore (usage limit attained)');
}
}


it compare voucher's name with vouchers already registred and if it's the same it return an error.

#9

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 28 February 2011 - 06:51 PM

hi the above code no longer works can anyone help?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users