4thbasement Posted July 8, 2016 Share Posted July 8, 2016 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 More sharing options...
shokinro Posted July 9, 2016 Share Posted July 9, 2016 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 More sharing options...
vekia Posted July 10, 2016 Share Posted July 10, 2016 hello some time ago i released a module that allows to achieve this: disable vouchers for items on sale if cart will contain product / products that have dropped price (no matter what kind of dropped price) module will not allow to use the voucher for these products (in effect in cart) Link to comment Share on other sites More sharing options...
4thbasement Posted July 11, 2016 Author Share Posted July 11, 2016 Thank you for the suggestions. It's unfortunate something this basic is not a standard feature. Shokinro, do you maybe have any code examples for this? Link to comment Share on other sites More sharing options...
shokinro Posted July 11, 2016 Share Posted July 11, 2016 sorry I do not have this kind of code, and it won't not done in a few lines of code. So I suggest you use @vekia's module if there is existing module there. 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