magento-lts icon indicating copy to clipboard operation
magento-lts copied to clipboard

Cannot exclude products based on special price in Coupon promo.

Open ioweb-gr opened this issue 2 years ago • 2 comments

I am trying to create a cart rule with a specific coupon that will work

Preconditions (*)

  1. Openmage LTS 20.0.20
  2. Openmage LTS 20.0.13

Steps to reproduce (*)

  1. Set special_price attribute as used for promo rules.
  2. Create a new cart rule with a specific coupon.
  3. In actions tab, Apply the rule only to cart items matching the following conditions (leave blank for all items), use rule If all conditions are true ->Special Price less than 0.1 or equals or less than 0.
  4. Add product to cart and try to apply coupon code.

Expected result (*)

  1. If the product doesn't have a special price the coupon code is applied and discount is given.
  2. If the product has a special price than the rule should not be applied.

Actual result (*)

  1. The coupon code isn't applied with the message: Coupon code "AnnaMaria" is not valid.

image

image

Some more information:

If the user switches up the rules to all conditions are false and special price greater than 0 then the coupon is applied regardless if the product has special price or not. This worked flawlessly in Magento 1.9.4.5. I have a hunch that the rule is checking against NULL and that's why it fails.

ioweb-gr avatar Oct 24 '23 08:10 ioweb-gr

Up. For some attention.

sreichel avatar Jan 24 '24 00:01 sreichel