2015-09-01 16 views
0

Я рассмотрел несколько руководств по созданию собственного пользовательского нижнего колонтитула в Magento, но не связан с добавлением ссылок на нижний колонтитул по умолчанию. Я хочу добавить несколько ссылок в разделе «Учетная запись» нижнего колонтитула Magento. Вот что я имею в приложение/дизайн/интерфейс/RWD/по умолчанию/макет/customer.xml:Как добавить ссылки на нижний колонтитул Magento

<default> 
    <!-- Mage_Customer --> 
    <reference name="top.links"> 
     <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> 
     <action method="addLink" translate="label title before_text" module="customer"><label>Register</label><url helper="customer/getRegisterUrl" /><title>Register</title><prepare/><urlParams/><position>100</position><li/><a/></action> 
    </reference> 
    <reference name="footer_links2"> 
     <action method="addLink" translate="label title" module="catalog"><label>My Account</label><url helper="customer/getAccountUrl" /><title>My Account</title></action> 
     <action method="addLink" translate="label title"><label>Customer Service</label><url helper="/customer-service/" /><title>Customer Service</title><prepare>true</prepare></action> 
    </reference> 
</default> 

ответ

0

Вы можете использовать ниже код для добавления ссылки в footer.your код почти правильно, но вы сделали ошибку в ссылке имя удостоверяют, что ссылочное имя footer_links

<reference name="footer_links"> 
      <action method="addLink" translate="label title" module="catalog"><label>My Account</label><url helper="customer/getAccountUrl" /><title>My Account</title></action> 
      <action method="addLink" translate="label title"><label>Customer Service</label><url helper="/customer-service/" /><title>Customer Service</title><prepare>true</prepare></action> 
</reference> 
+0

Я попробовал ваше предложение, и оно не сработало. Имя ссылки 'footer_links2' было именем ссылки по умолчанию. Ничего не изменилось. Тем не менее, я попробовал как 'footer_links', так и' footer_links2' с вашим предлагаемым кодом и не работал. Любые другие предложения? – Sarah

+0

Вы можете проверить ссылку по умолчанию, исходящую из xml или статического блока. – SimBeez

+0

Он исходит из .xml. Сначала я попытался изменить статический блок, и ничего не произошло, и он не показывает ссылки «Моя учетная запись» или «Заказы и возврат». – Sarah

Смежные вопросы