buy x get y not work correctly


  • Default avatar
    alfioK1    
     a month ago  last edited a month ago
    0

    Hello

    I set the coupon as indicated in the documentation.

    Then I created automatic discount. I would like to give away 1 product for every 3 purchased. 2 pay them, the cheapest is free. But it does not work. The product as a gift is always the last one I add to the cart.

    The price does not matter.

    I want to give away the least expensive.

    Can you help me please? At this moment I deactivated the discount because the site is in production. 

    How can I send you the data for login?


  • Your avatar
    seyi    
     a month ago
    0

    Hello,

    If you need to you can send me a private message with temp access.

    Did you setup the coupon as a buy x get y?  If so did you set the value drop down to 'lowest value'?

  • Your avatar
    seyi    
     a month ago
    0

    Thanks for the access.  Ok, so the issue with using buy x get y, is some products get assigned to buy x and some to get y.  The first 2 products you add to the cart get assigned to buy x, and are not taken into account in the ordering.  The 3rd product you add to the cart becomes the get y and is taken into account.  This is why the last product in the cart is always discounted. 

    So to do this have to use another approach.  The idea is to:
    - check to see if there are at least 3 products in the cart
    - if so give a discount to the lowest price item

    To do this we need to create a combination coupon:
    Coupon a: check if at least 3 products in the cart
       - value: 0
       - Minimum product quantity: 3
    Coupon b: give discount on lowest price item using value definition
       Process type: Progressive
       Ordering: Lowest value
      # of product            discount
      1                              100%
      2                               0

    Then create a combination coupon:
    Coupon c:
      - Function type: combination
      - Process type: Only if all apply
      - Coupons: add coupons a and b

    Then use coupon C.

    Since you provided access I created these coupons already.  You will still need to modify the children coupons with the specific categories the coupon applies for, but should all work as expected now.
  • Default avatar
    alfioK1    
     a month ago
    0

    Ok. Work. Thank you. This is great.


  • Default avatar
    alfioK1    
     a month ago
    0

    this error, will be fix in a next version? So it becomes complicated to make this type of coupon, while if the procedure you illustrated would work regularly, it would be much simpler. I hope you fix the plugin, I would also like to buy it for my wordpress sites. In this regard, do you have a discount coupon for me for other purchases?
  • Your avatar
    seyi    
     a month ago
    0

    Yes, this will be updated on the next version.