Jump to content

Cart Discount And Sale - Applying Only One Superior Discount.


Jurist

Recommended Posts

Hello.

 

Is it possible to set prestashop to apply only one discount? For eg, we have 20% sale for a products.

We give 10% cart discount for customerA and 30% for customerB. 

 

We would like to make our customerA to have product sale (20%) active, and make cart rule impossible to add, there should be only one, stronger sale active, 20%.

 

In case of customerB he should be able to add Cart Rule to reduce price by 30%, but after this, product sale should be removed.

 

I have edited CartRule.php to use solution from post #13 here:

 

https://www.prestashop.com/forums/topic/290274-disabling-discounts-cart-rules-to-items-already-on-sale/

 

and it's currently working that if there's already sale it's impossible to add cart rule, that's fine.

 

But what if cart rule is stronger than the current sale?

 

Kind regards

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...