[Resolved] Installation check problem after update to Redshop 1.2


  • Default avatar
    brendon0    
     11 years ago
    0

    After having just recently updated to Redshop 1.2, I'm having some trouble with the installation check. The two core php files and the gift certificate file seem to have installed correctly, but the automatic discount php file won't install. Is there anything that I can do manually install this file?

    Thanks.
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    Yes, there is a slight change that affects the installation. Here is a fix.

    In www/administrator/components/com_awocoupon/helpers/estore/redshop/installation.php, around line 197 is this:
    <?php
        
    'autocouponhook'=>'/(\$session\s*\=\s*\&\s*JFactory\s*::\s*getSession\s*\(\s*\)\s*;\s*\$cart\s*\=\s*\$session\s*\->\s*get\s*\(\s*\'cart\'\s*\)\s*;)/is',
    ?>


    change it to this
    <?php
        
    'autocouponhook'=>'/(\$session\s*\=\s*\&?\s*JFactory\s*::\s*getSession\s*\(\s*\)\s*;\s*\$cart\s*\=\s*\$session\s*\->\s*get\s*\(\s*\'cart\'\s*\)\s*;)/is',
    ?>


    Then try the install again.
  • Default avatar
    brendon0    
     11 years ago
    0

    That worked like a charm, thanks.