RedShop Coupons No Longer work Correctly after Upgrade of AWO Coupon


  • Default avatar
    peaces    
     10 years ago
    0

    I am running:
    Joomla 2.5.7
    RedShop 1.3.3.1
    AWO Coupon 2.2.3 pro

    After updating to AWO 2.2.3 pro the coupons created in the RedShop Coupons do not work correctly. They work in the "cart" but do not show up in "checkout".

    The RedShop devs tell me that the following code is in their file components/com_redshop/helpers/cart.php. From line 4019 to line 4030 and it is conflicting with the operation of their coupons. Can you guide me with the solution.

    ===============================================================
    JPluginHelper::importPlugin('redshop_coupon');
    $dispatcher = JDispatcher::getInstance();
    $returnValues = $dispatcher->trigger('onCouponProcess', array($c_data));
    if(!empty($returnValues)){
    foreach ($returnValues as $returnValue) {
    if ($returnValue !== null ) {
    return $returnValue;
    }
    }
    }
    # awocoupon_code END =================================================================
  • Your avatar
    seyi    
     10 years ago
    0

    Hello,

    In www/administrator/components/com_awocoupon/helpers/estore/redshop/couponhandler.php, around line 55 is this
    <?php
            
    return !empty($c_data) ? $instance->rscart $bool;
    ?>


    change it to this
    <?php
            
    return $bool===null null : (!empty($c_data) ? $instance->rscart $bool);
    ?>


    That should fix it.
  • Default avatar
    peaces    
     10 years ago
    0

    This worked perfectly.

    When I upgrade AWO in the future will I need to remember this change?
  • Your avatar
    seyi    
     10 years ago
    0

    Great. The current release is 2.2.6, it will be part of the release sfter that.