Jump to content

[SOLVED] Change Customer Registration Link


angel_dope

Recommended Posts

Hello, we're going to use Prestashop and have it almost ready, but we've found an issue: using the webservice, I've imported the users we already have on our website. What I want to do now is that when a new customer want to register an account, he should register on our website, not on Prestashop. I've found the file authentication.tpl in the themes/classic/templates/customer/ folder which contains the following code:

{**
* 2007-2019 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author    PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2019 PrestaShop SA and Contributors
* @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='page.tpl'}

{block name='page_title'}
  {l s='Log in to your account' d='Shop.Theme.Customeraccount'}
{/block}

{block name='page_content'}
    {block name='login_form_container'}
      <section class="login-form">
        {render file='customer/_partials/login-form.tpl' ui=$login_form}
      </section>
      <hr/>
      {block name='display_after_login_form'}
        {hook h='displayCustomerLoginFormAfter'}
      {/block}
      <div class="no-account">
        <a href="{$urls.pages.register}" data-link-action="display-register-form">
          {l s='No account? Create one here' d='Shop.Theme.Customeraccount'}
        </a>
      </div>
    {/block}
{/block}

I thought that if I change this section

 

<div class="no-account">
        <a href="{$urls.pages.register}" data-link-action="display-register-form">
          {l s='No account? Create one here' d='Shop.Theme.Customeraccount'}
        </a>
</div>

To this

<div class="no-account">
        <a href="http://www.domain.com/registratio" >
          {l s='No account? Create one here' d='Shop.Theme.Customeraccount'}
        </a>
</div>

It would work, but nothing happened. If I go to the login page, the link for new customer registration is still the same than before the change.

How can I change this link and achieve what I'm searching for?

 

Thank you and best regards

Edited by angel_dope (see edit history)
Link to comment
Share on other sites

By the way, if it helps anyone else, the correct folder is /your-theme/customer/ and the file is authentication.tpl 

And also I've disabled the guest checkout and the paypal express payment, so there's no way for customers to register new users through prestashop ;)

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

That's strange. I did the exact same thing, with no results whatsoever. Even renamed the file to see if it broke the website (if it was being used), but it didn't. And I did clear the cache twice, and CTRL + F5. 

I wish there was an easy way to track down the files used by the site, but even the inspector can only tell me so much.

 

EDIT: Turns out something did change, but not where I wanted it to change. I changed the link on the login page. I want to change the link on the top menu bar where users can register directly. Guess I'll keep looking!

Edited by Higino (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...