[Prestashop] Link problem with refer a friend


  • Default avatar
    riga75    
     3 years ago
    0

    As you can see from the screenshot, the links lead to the login page and not to the registration page. How do you change?
    thanks a lot

  • Default avatar
    riga75    
     3 years ago
    0

    https://nimb.ws/UT5Eul
  • Your avatar
    seyi    
     3 years ago
    0

    Hello,
    In the file
    \modules\aworewards\controllers\front\register.php around line 27 change:

    <?php
            $registration_link 
    _PS_VERSION_ >= '1.5' 'index.php?controller=authentication' 'authentication.php';
    ?>

    to
    <?php
            $registration_link 
    _PS_VERSION_ >= '1.5' 'index.php?controller=authentication&create_account=1' 'authentication.php';
    ?>

  • Default avatar
    riga75    
     3 years ago
    0

    I did as you said but the link he sends by email is wrong, try it too
  • Your avatar
    seyi    
     3 years ago
    0

    I tested it before sending the code.  What is the actual link?
  • Your avatar
    seyi    
     3 years ago
    0

    If it is sending you to the login page, you might be dealing with browser cache, in which case, clear it completely and test again.