Question

I have a sales rule that has these conditions. I have to apply a discount if the cart contains at least one product of one of these categories and if the subtotal is more than 25 euro. The rule works fine if I don't add the subtotal part. As I add that condition, the coupon is not recognized by Magento 2.

enter image description here

As you can see, I've already tried to use the currency sign in order to make the rule more specific. I've read about this possible solution here (Discount coupon is not working for minimum subtotal) but it's not working. Note that I've already tried with only one of these subtotal conditions: I think that I've tried any combination of them: with different currency signes (€, Euro, EUR) or without, with the currency sign before or after the amount...

Have you ever experienced this issue? If yes, how have you solved it?

Do you know where in vendor folder Magento make the coupon validation related to subtotal? I've looked into /vendor/magento/module-sales-rule but I've found almost nothing.

Thank you for your help!

No correct solution

OTHER TIPS

I'have not found yet a solution for this issue, but I can suggest a workaround to anyone that has the same problem.

Instead of creating a complex condition, where the subtotal one is summed to the categories one, you can use the "Action" section of the cart rule edit form.

For example, I've let only the condition about the subtotal, and I've applied the discount only to items that belongs to specific categories. The rule is expressed in a different way, but the result is the same.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top