Copied to clipboard

Flag this post as spam?

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


  • Vineeth 48 posts 228 karma points
    1 week ago
    Vineeth
    0

    Multiple Rules on a Teacommerce Marketing Campaign doesn't work properly

    We've created a Marketing campaign for Discount with two Rules.

    One is Discount Code Rule and other is Property Rule

    Discount Code rule doesn't work when applying through TC.AddDiscountCode. Can you please let me know why this is not working? PFA enter image description here

  • Matt Brailsford 2274 posts 11082 karma points MVP 6x c-trib
    1 week ago
    Matt Brailsford
    0

    Hi Vineeth,

    In what way doesn't it work? Do you see it added to the orders discount codes collection? But it's not deducting the value?

    Matt

  • Vineeth 48 posts 228 karma points
    7 days ago
    Vineeth
    0

    Yes, Exactly If I remove the Property rule the discount coupon on the discount code rule works. But It won't work with another rule in OR condition

    The workflow flow :

    ->If a user logged in with the group name 'customers' and add a product to basket it will add a property to the orderline as 'customers' and the discount is deducted with the order line calculator.

    ->if the user is not logged in and applied the discount code in Discount code rule it should deduct the discount, right? Because it is given as an OR condition

    Please do correct me if I'm doing anything wrong and please let me know the possibilities that this wont work :)

  • Matt Brailsford 2274 posts 11082 karma points MVP 6x c-trib
    6 days ago
    Matt Brailsford
    1

    Hmmm, I think i might know why it's not working.

    For whatever reason, when this was originally developed, anything that is an order line based rule, the calculation engine filters order lines based on those rules and uses those for the basis of the next rule.

    I think the best option would probably be to break this up into two discounts, so one that is for the property and one that is for the discount code.

    This approach has caught a number of people out, so I will be reviewing it as part of the v8 works as I personally don't think it's all that logical.

    Hope this helps

    Matt

  • Vineeth 48 posts 228 karma points
    6 days ago
    Vineeth
    0

    Thanks, matt :)

Please Sign in or register to post replies

Write your reply to:

Draft