Как я могу добавить ссылку регистра в главных ссылках в магнето

Я должен добавить ссылку Регистра в ссылках главного меню

Таким образом, я сделал это, но я не знаю то, что является помощником для регистра.Пожалуйста, помогите мне!

   <customer_logged_in>
        <reference name="top.links">
            <action method="addLink" translate="label title" module="customer"><label>Log Out</label><url helper="customer/getLogoutUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
            <action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position></action>
        </reference>
    </customer_logged_in>


    <customer_logged_out>
        <reference name="top.links">
            <action method="addLink" translate="label title" module="customer"><label>My Account</label><url helper="customer/getLoginUrl"/><title>My Account</title><prepare/><urlParams/><position>100</position></action>
            <action method="addLink" translate="label title" module="customer"><label>Register</label><url helper="customer/getAccountUrl"/><title>Register</title><prepare/><urlParams/><position>10</position></action>
        </reference>
        <remove name="wishlist_sidebar"></remove>
        <remove name="reorder"></remove>
    </customer_logged_out>
7
задан Elamurugan 14 April 2010 в 14:46
поделиться

1 ответ

Используйте customer / getRegisterUrl в качестве помощника, чтобы получить URL-адрес регистрации. Это означает, что Magento делает что-то вроде этого:

$helper = Mage::helper("customer"); // gets Mage_Customer_Helper_Data
$url = $helper->getRegisterUrl();

Надеюсь, что это поможет.

Спасибо, Джо

11
ответ дан 6 December 2019 в 07:50
поделиться
Другие вопросы по тегам:

Похожие вопросы: