Compatibility with redSHOP 1.3


  • Default avatar
    servlet    
     3 years ago
    0

    In product page is shown redSHOP 1.1.x. Current version of redshop is 1.3.X
    Is it problem to use awocouponePRO with RS 1.3.X if it is possible please update product info page
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    It works very well with Redshop 1.3.x, after a small update to the code injection. This is the only thing preventing updating the product page. Once the next update of AwoCoupon goes out, it will be updated. If you decide you need it now and cant wait, its not a problem, I can guide you to fixing the code.
  • Default avatar
    servlet    
     3 years ago
    0

    Thanks for response... :)
  • Default avatar
    jawobg    
     3 years ago
    0

    Please guide me how to fix the code for RedShop 1.3
    Regards
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    You should not need it. The latest version has the update.
  • Default avatar
    jawobg    
     3 years ago
    0

    Hello
    I dont see what is the number of current version on product page, only in change log. Please add it on product page.
    Is there notification by mail when new version is released?
    Regards
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    There is not an email notification. We try to stay way from adding to the clutter in your email box.

    However, if you log into the backend and go to the AwoCoupon, the dashboard will tell you if you are using the latest version or not.
  • Default avatar
    BadOPCode    
     3 years ago
    0

    It does work with 1.3.25. The instructions are a bit outdated here is a quick update for RedShop 1.3.25j.
    Open the checkout.php file like the old instructions told you to.
    at like line 519 it says if (!$row->store()) this is actually what you want. Comment out the entire if block. Bellow the commented out if block now add this.
    $awo_file = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_awocouponrs'.DS.'helpers'.DS.'rs_coupon.php'; 
    if(file_exists($awo_file)) { 
        require_once $awo_file; 
        rs_coupon::add_giftcert_code($couponItems); 
    } elseif (! $row->store ()) { 
        $this->setError ( $this->_db->getErrorMsg () ); 
        // Start code to track duplicate order number checking by parth
        $this->deleteOrdernumberTrack();
        return false; 
    }


    now look for "public function coupon($cart, $order_id=0)" It will be line 2127 -ish
    change the function call to look like this "public function coupon_rs($cart, $order_id=0) {" Note the only thing your doing is adding _rs to the end of the name.
    Now right above this function add this function
        public function coupon($cart, $order_id = 0){ 
            $awo_file = JPATH_ADMINISTRATOR.DS.'components'.DS.'com_awocouponrs'.DS.'helpers'.DS.'rs_coupon.php'; 
            if(file_exists($awo_file)) { 
                require_once $awo_file; 
                return rs_coupon::remove_coupon_code(); 
            } 
            return $this->coupon_rs($cart, $order_id = 0);
        }


    save your file and you should be done. the cart.php helper file actually successfully gets patched. It's just the checkout.php that it fails on.
    So your good to go.
    Remember who loves ya when your using those coupons in RedShop! ;-)