After update, 0 value coupons not recognised


  • Default avatar
    peter49    
     a year ago
    0

    Awocoupon version: 2.3.5
    Joomla 3.3.6
    Virtuemart 3.0.4
    Rupostel One Page Checkout 2.0.280.270115

    Hi, I am migrating my site from Joomla 2.5 and VM2 to Joomla 3 and VM3.

    Awocoupon was working fine on version 2.3.4, but after updating to 2.3.5 it doesn't work as it should.

    When I make a test purchase and apply a gift voucher to make the amount 0, the zero value is ignored and I am directed to my payment provider to pay the full amount.

    I reverted back to my previous install (version 2.3.4) now, but I want to be able to update Awocoupon. Any ideas on how to fix this?

    The url for my development site is dev.saintbasics.com.

    Thanks.
  • Your avatar
    seyi    
     a year ago
    0

    Hello,

    Thanks for posting, found the problem. For some reason, opc does not like the caching now done by Awocoupon. So to fix it simply disable the cache.

    In www/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php, around line 830 is this:
    <?php
            
    static $_cart_items = array();
    ?>


    Right after that, add this
    <?php
            $_cart_items 
    = array();
    ?>


    That should fix the problem you are having
  • Default avatar
    peter49    
     a year ago
    0

    Thanks, that fixed it!

    Will you put this solution in a next release or do I have to edit this file everytime I update Awocoupon?
  • Your avatar
    seyi    
     a year ago
    0

    Hello,

    It will be fixed.