Discounts - Block discount if already applied per orderline
Hi there.
Having an issue combining automatic discounts on "Orderline with product", using reward x% off Order Line Unit Prices, with code discount on all products using x% off Order Line Unit Prices, where the code discount is set not to apply if other discounts already apply.
What I am trying to achieve is a automatic discount that applies to certain product(s), and a code discount that can be applied to all orderlines (products), but not on those that already have a discount applied.
However, when I have a product with an automatic discount (call it Product A) in the cart, and add a product without any discount (call it product B), then apply the code, the code discount is not applied to product B.
Only if I remove product A from the cart, does product B get the code discount. So it appears that the "Block discount if discounts allready apply", blocks if any discount is applied to the cart, not the specific orderline.
Any suggestions on how I can achieve what I need. Thanks in advance.
Yea, the blocking rules apply at the order level, not the order line level so what you are seeing is expected behaviour.
The best I can think to suggest is maybe look at creating your own Discount Rule which could do the blocking https://vendr.net/docs/core/1-4-0/key-concepts/discount-rules-and-rewards/ Maybe this blocking rule could look through already applied discounts and if one is applied to the order lines, then fail the rule.
Discounts - Block discount if already applied per orderline
Hi there.
Having an issue combining automatic discounts on "Orderline with product", using reward x% off Order Line Unit Prices, with code discount on all products using x% off Order Line Unit Prices, where the code discount is set not to apply if other discounts already apply.
What I am trying to achieve is a automatic discount that applies to certain product(s), and a code discount that can be applied to all orderlines (products), but not on those that already have a discount applied.
However, when I have a product with an automatic discount (call it Product A) in the cart, and add a product without any discount (call it product B), then apply the code, the code discount is not applied to product B. Only if I remove product A from the cart, does product B get the code discount. So it appears that the "Block discount if discounts allready apply", blocks if any discount is applied to the cart, not the specific orderline.
Any suggestions on how I can achieve what I need. Thanks in advance.
Here are some screenshots of the setup:
Automatic discount product A:
Code discount all products:
Cart with and without product A in it:
Hi Amar,
Yea, the blocking rules apply at the order level, not the order line level so what you are seeing is expected behaviour.
The best I can think to suggest is maybe look at creating your own Discount Rule which could do the blocking https://vendr.net/docs/core/1-4-0/key-concepts/discount-rules-and-rewards/ Maybe this blocking rule could look through already applied discounts and if one is applied to the order lines, then fail the rule.
Hope this helps
Matt
is working on a reply...