Jump to content

Possible to disable vouchers stacking with price rules?


4thbasement

Recommended Posts

Vouchers can be excluded from working with other vouchers, but can they be disabled from working with price rules? 

 

In other words, if everything is set 20% off via a catalog price rule, and there is a 10% voucher discount, it ends up 30% in the cart. I'd like the 10% voucher to not be applicable if there is a catalog price rule already attached. Can this be done?

 

Thank you!

Link to comment
Share on other sites

I do not think PrestaShop has this feature by default. You may have to implement this rule by yourself.

 

You can implement your rules here in following file and method/function.

 

/classes/CartRule.php

 

Or (recommended)

 

/override/classes/CartRule.php

 

    public function checkValidity(Context $context, $alreadyInCart = false, $display_error = true, $check_carrier = true)
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...