"Automatically delete from cart 'Get Y' product" not working or I don't understand option


  • Default avatar
    axiom    
     2 years ago
    0

    Hello,

    We're using the VirtueMart plugin version 3.6.0.3. We have a Buy X Get Y coupon that's set up for automatic discount, and we're using the "Automatically add to cart 'Get Y' product" option. This works as expected. When the conditions are met (the address is in Colorado), a specific product is added to the cart.

    We also have the "Automatically delete from cart 'Get Y' product" option checked. I expected this would remove the product from the cart if the user changes the address from Colorado to something else. However, this doesn't happen. The product stays in the cart. It would be nice if AwoCoupon was able to automatically remove the product from the cart if the conditions are no longer met.

    Is that what this option is supposed to do? Or have I misunderstood?

    Thanks.

  • Your avatar
    seyi    
     2 years ago
    0

    Tested this locally and works fine for me.  I would suggest upgrading, there have been some fixes dealing with auto adding/delete since that version.
  • Default avatar
    axiom    
     2 years ago
    0

    Hello,

    Thanks for looking into this.  I upgraded AwoCoupon to 3.6.0.7 and this still does not work for me.  I am running Joomla 3.9.27 with VirtueMart 3.8.9 10473 and Rupostel OnePage Checkout 2.0.418.250821, on a Debian 10 server running PHP 7.4.30 and MariaDB 10.4.20.

    Here are my settings:

    https://staging2020.sunmountain.com/sc_1.jpg

    https://staging2020.sunmountain.com/sc_2.jpg

    https://staging2020.sunmountain.com/sc_3.jpg

    https://staging2020.sunmountain.com/sc_4.jpg

    We will soon be upgrading Joomla/VM/OPC, so I might revisit this issue then and see if it works.

    Any thoughts?

  • Your avatar
    seyi    
     2 years ago
    0

    Hello,

    You did not mention the discount was 0.  Yes, seems to be a problem with 0 discount and removing from the cart. 

    Set the discount to 0.0001%.  In my testing, did not give a discount, but removed from the cart without issues.
  • Your avatar
    seyi    
     2 years ago
    0

    Actually disregard the last post.  I think going to awocoupon > configuration and setting 'Enable zero value coupon' to 'yes' should fix your issue.
  • Default avatar
    axiom    
     2 years ago
    0

    Hello,

    I tried both a discount of 0.00001 and setting 'Enable zero value coupon' to Yes. I tried both individually and both together. Neither one resulted in the product being removed from the cart if I change the state from Colorado.

    Tomorrow we'll be going live with a new server, and after that I can get you credentials to the admin area of our staging site, if you think that would help.

    For now, here are screenshots of our AwoCoupon settings:

    https://staging2020.sunmountain.com/config_1.jpg

    https://staging2020.sunmountain.com/config_2.jpg

    https://staging2020.sunmountain.com/config_3.jpg

    https://staging2020.sunmountain.com/config_4.jpg

    https://staging2020.sunmountain.com/config_5.jpg

    https://staging2020.sunmountain.com/config_6.jpg

    https://staging2020.sunmountain.com/config_7.jpg

    All of the coupon code error descriptions are blank.

    Thanks again.