Go to previous topic
Go to next topic
Last Post 03 Aug 2021 03:52 PM by  Kenyatta Harris
Tier Pricing and other discounts
 6 Replies
Author Messages


Basic Member


Posts:158
Basic Member


--
14 Jul 2021 09:21 PM

    Hello,

    How do I prevent tier pricing when using a coupon code? I created a coupon code to give a flat discount. I do not want the tier pricing to discount if someone buys more than 3 items. See attachment. 

    Please advise,

    Kenyatta 

    Attachments
    0


    Basic Member


    Posts:158
    Basic Member


    --
    20 Jul 2021 05:27 PM
    I figured it out. I added to the custom tier pricing.
    Thanks,
    Kenyatta
    0


    Basic Member


    Posts:158
    Basic Member


    --
    27 Jul 2021 09:05 PM

    Hi,

    I attached the xml code but when I add 3 or more items to the cart it still takes off the Tier pricing $20. When the coupon code is used I don't want the system to add the tier pricing. 

    Please advise,

    Kenyatta

    Attachments
    0


    Veteran Member


    Posts:2956
    Veteran Member


    --
    03 Aug 2021 01:49 PM

    The only way is to add back the equivalent adjusted amount in your discounted value based on the quantity sold. For example, if the tier discount subtracted $20 for 3 quantities, you want to add back +20 in your new discount rule when the quantity of 3 is detected using an xsl:if or xsl:choose condition.

    This may be too complicated. Can the coupon promotion not be simplified such that the coupon gives a smaller % discount to begin with and that way you don't have to mess with the tier pricing?

    0


    Basic Member


    Posts:158
    Basic Member


    --
    03 Aug 2021 02:13 PM
    Doesn't the logic in the code say if coupon found then don't apply tier pricing? I think that's the easiest way to go. However i'm not sure why it's not working.
    0


    Veteran Member


    Posts:2956
    Veteran Member


    --
    03 Aug 2021 02:27 PM

    Yes, I see what you mean. However, when I simply pasted your code and click the Test Run, I get an error.

    The error has something to do with this line. I think you have comma separated values that may not make sense.

    productVariantExtension/data/category236,218,217

    You might want to engage us to perform the work if this is easier. Your promotion rule is quite complex.

    0


    Basic Member


    Posts:158
    Basic Member


    --
    03 Aug 2021 03:52 PM
    We did pay you guys to create the code years ago. I'll try to reduce the category down to 1 and see what happens. Thank you
    0


    ---