AWO Coupon Pro Error Message


  • Default avatar
    webpix    
     10 years ago
    0

    I didn't have any issues with installation and have the domain verified as a permanent key. All seemed to be ok but I have a foreach error that occurs on the vm cart page. It is also present in the code of all the other pages but is not output to the screen. I have the latest version of VM 2.0.20b and the latest version of AWO Coupon Pro 2.1.9.

    Things I've noticed:

    The coupons are enabled in VM and the coupon box does display on the cart page and also applies the coupon when saved on the page.
    The error occurs regardless of whether a coupon is published or not.

    Error Code:

    Warning: Invalid argument supplied for foreach() in $Webroot/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php on line 179

  • Your avatar
    seyi    
     10 years ago
    0

    Hello,

    Please add this to the code, in the exact same file and same line, right before
    <?php
        
    foreach($this->vmcartData['VatTax'] as $vattax){
    ?>


    add
    <?php
        
    if(!empty($this->vmcartData['VatTax']))
    ?>


    That should fix the problem.
  • Default avatar
    webpix    
     10 years ago
    0

    That did it. Thanks for the speedy response!