about two discounts

Phoca Cart - complex e-commerce extension
User avatar
ehndrju
Phoca Member
Phoca Member
Posts: 43
Joined: 21 Apr 2021, 05:35

about two discounts

Post by ehndrju »

hello, Jan.
this is something incredible.
there is a product, the price is 10. there is a 10% discount in it (for everyone)
there is a rule (for everyone). if the order is more than 50, then a 20% discount.
This means, when ordering 10 pieces, the total cost should be 80.
but the program does 2 discounts. first 10% and then another 20%
how to make only one discount apply?

Image
User avatar
ehndrju
Phoca Member
Phoca Member
Posts: 43
Joined: 21 Apr 2021, 05:35

Re: about two discounts

Post by ehndrju »

and more:
two rule discount:
1 - if total amount more that 50 - discount 20%
2 - if total amount more that 100 - discount 40%
Why different discount?

Image

i'm sobbing...
User avatar
ehndrju
Phoca Member
Phoca Member
Posts: 43
Joined: 21 Apr 2021, 05:35

Re: about two discounts

Post by ehndrju »

discount option

Image

Quantity Rule (Product Variations) yes or no - the result is the same
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: about two discounts

Post by Jan »

Hi, from the checkout screenshot, I see two type of discounts: product discount and cart discount - but both are independent to each other - one is based on product price, second based on cart total amount (divided into products because of tax).

Jan
If you find Phoca extensions useful, please support the project
User avatar
ehndrju
Phoca Member
Phoca Member
Posts: 43
Joined: 21 Apr 2021, 05:35

Re: about two discounts

Post by ehndrju »

in the second screenshot, there are rules of the same type. to order. Why is it not being applied correctly?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: about two discounts

Post by Jan »

Please let me know exactly the settings - which type of discounts they are? Where they are set?

In discounts, there is no from to, only minimum amout, which means that only the large amount will be selected.

So if you get minimum amount 100 and both discounts can meet the rules, the large is selected.


Image

Image

Image


Jan
If you find Phoca extensions useful, please support the project
User avatar
ehndrju
Phoca Member
Phoca Member
Posts: 43
Joined: 21 Apr 2021, 05:35

Re: about two discounts

Post by ehndrju »

Image
Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: about two discounts

Post by Jan »

Hi, the calculation is cascading - the rules applies to currect subtotal, so when you get sales on two items and the subtotal is now lower than 100, the next sale for next product will be counted from this subtotal.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: about two discounts

Post by Jan »

With some small change, it can be set to not cascade the subtotal:

Image

I will take a look at it, maybe I can add it to next version.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: about two discounts

Post by Jan »

You can test the Beta here:

https://github.com/PhocaCz/PhocaCart/re ... Beta14.zip

When you switch parameter "Discount Subtotal":

Image

then the amount rule will be set by fixed subtotal:

Image

Jan
If you find Phoca extensions useful, please support the project
Post Reply