Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Amar Resic 5 posts 96 karma points
    Jan 12, 2021 @ 08:50
    Amar Resic
    0

    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: Automatic discount product A

    Code discount all products: Code discount all products

    Cart with and without product A in it: enter image description here enter image description here

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Jan 12, 2021 @ 09:11
    Matt Brailsford
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft