php href用于在prestashop中注册用户帐户

时间:2018-07-04 18:11:38

标签: php prestashop prestashop-1.6 prestashop-1.7

:)

我目前正在编辑主题的customerignin.tpl,并希望添加一个“注册”链接。

这些是.tpl文件中使用的其他href类和href:

class="logout"
href="{$logout_url}"

class="account"
href="{$my_account_url}"

href="{$my_account_url}"

我不知道注册表的必需类(如果需要)和href是什么。我用

之类的东西猜了一下
href="{$create_account_url}"

但最终,我无法随机击中它。

1 个答案:

答案 0 :(得分:0)

要添加注册链接,您可以从经典主题提供的示例代码中了解一个想法。

类似的东西:

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

对于PS 1.7.2.4,可以在/themes/classic/templates/customer/authentication.tpl中找到身份验证模板

https://github.com/PrestaShop/PrestaShop/blob/develop/themes/classic/templates/customer/authentication.tpl#L40