Fatal Error when using parent coupon


  • Your avatar
    seyi    
     5 years ago
    0

    I have a coupon that gives a product discount of $32 that works on its own.
    I also have a free shipping coupon that gives 100% discount on shipping that works on its own. I have set the configuration to accept a shipping coupon before the shipping option is chosen.

    I made a parent coupon with the two coupons mentioned above. I set the process type to "all that apply".

    When I try to use the coupon I get a error page

    Cart

    Fatal error: Call to undefined function row() in /home1/fusionwh/public_html/administrator/components/com_awocoupon/assets/virtuemart/ps_coupon_process.php on line 239

    Any help would be appreciated
  • Your avatar
    seyi    
     5 years ago
    0

    Thanks for pointing this out, it will be fixed next update. Here is the fix in the meantime:\

    in www/administrator/components/com_awocoupon/asses/virtuemart/ps_coupon_process.php, line 239

    change

    <?php
    if(!empty($row['product_discount']) || !row($return['shipping_discount'])) {
    ?>

    to

    <?php
    if(!empty($row['product_discount']) || !empty($row['shipping_discount'])) {
    ?>