BuyXgetY - products are not deleted after conditions do not match


  • Default avatar
    amberkot    
     6 years ago
    0

    Hi!

    Having trouble with Vm 3.2.3, OPC latest and Awocoupon latest. Got 2 coupons with following conditions:

    1. Buy any product from any category and get a gift.
    2. Buy any product for more than 3500 and get a gift.



    Works great, but when I change count of products or delete any products, the items from coupon's params are not deleted.



    You can check it on: http://amberk.beget.tech/ukrasheniya/braslety
  • Your avatar
    seyi    
     6 years ago
    0

    Hello,

    Are you saying you are using a buy x get y coupon where you have the 'automatically add to cart' get y?  And when deleting or subtracting products, the gift product quantity is not changed?  Yes, this is how it works.  The automatically add to cart feature will add the product to cart, and if the buy x product is increased so will the get y.  But it does not remove or subtract products.  So if the buy x product is deleted from the cart or subtracted, this will not affect the get y product in the cart.  The customer would have to remove it manually.
  • Default avatar
    amberkot    
     6 years ago
    0

    seyi @ Aug 22, 2017, 11:51:57 PM
    Hello,

    Are you saying you are using a buy x get y coupon where you have the 'automatically add to cart' get y?  And when deleting or subtracting products, the gift product quantity is not changed?  Yes, this is how it works.  The automatically add to cart feature will add the product to cart, and if the buy x product is increased so will the get y.  But it does not remove or subtract products.  So if the buy x product is deleted from the cart or subtracted, this will not affect the get y product in the cart.  The customer would have to remove it manually.
    But here https://amberkot.ru/ on VM 2.6.12.2 and AwoCoupon 2.3.3.1 it works as I'd like it to. When a client buy a product for more than 3490 and removes it later or changes quantity, the gift is deleted. So how can I return this logic to Awo 2.5.8.2 ?
  • Your avatar
    seyi    
     6 years ago
    0

    Is the problem the coupon is not updated when you update the products?

    There have been issues with Rupostel OPC handling the html produced by AwoCoupon.  Here is what you can do to disable that:

    Create a new file here:
    /www/templates/[YOUR_TEMPLATE]/html/com_awocoupon/coupondelete/default.php

    And in the file enter:
    <?php
    echo $this->coupons_original_text;
    ?>


  • Default avatar
    amberkot    
     6 years ago
    0

    seyi @ Aug 23, 2017, 8:37:29 PM
    Is the problem the coupon is not updated when you update the products?

    There have been issues with Rupostel OPC handling the html produced by AwoCoupon.  Here is what you can do to disable that:

    Create a new file here:
    /www/templates/[YOUR_TEMPLATE]/html/com_awocoupon/coupondelete/default.php

    And in the file enter:
    <?php
    echo $this->coupons_original_text;
    ?>



    No, the problem is that the gift (GetY product) is not deleted, when conditions of coupon are not matched.
  • Your avatar
    seyi    
     6 years ago
    0

    This has never happened.  AwoCoupon has never deleted get y products.  If they were being deleted, it was by something else, or some custom code.
  • Default avatar
    amberkot    
     6 years ago
    0

    seyi @ Aug 24, 2017, 11:15:28 AM
    This has never happened.  AwoCoupon has never deleted get y products.  If they were being deleted, it was by something else, or some custom code.
    No-no, there was no custom code on amberkot.ru. Maybe that was a feature of old OPC. Thanks for replies. Solved it by modifying process_autocoupon_hepler function. Hope you will add checkbox like "delete GetY products automatically" in next releases.