在标题导航中将登录或注册链接移动到顶部链接-Magento [英] Moving Log in or Register Link to Top Links in Header Navigation - Magento

查看:41
本文介绍了在标题导航中将登录或注册链接移动到顶部链接-Magento的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望我的标题正确.

我已经从Themeforest购买了一个主题- http://www .newsmartwave.net/vigoshop/index.php/?___ store = demo2_default

I've bought a theme from Themeforest -- http://www.newsmartwave.net/vigoshop/index.php/?___store=demo2_default

基本上在顶部,您有房屋,帐户,购物和在顶部链接中签出.我已使用Local.XML在顶部链接中删除了除帐户链接"以外的所有内容.在顶部链接下方,您具有登录或注册"链接.当您使用此链接登录时,该链接将更改为注销,以便客户可以注销.但是我想做的是替换登录或注册"顶部链接中的帐户链接",这样我就可以删除以下选项.例如,请参见此屏幕抓取 http://i.imgur.com/RXlO36e.png .

Basically on the top you have Home, Account, Shopping & Checkout in the top links. I have removed all except Account Link in the Top links using the Local.XML. Below the top links you have ‘Log in or Register’ Link. When you use this link to Login, the Link changes to Logout so the customer can log out. But what I want to do is replace the Account Link in the Top Links to the ‘Log in or Register’ so then I can remove the option below. for example see this screen grab http://i.imgur.com/RXlO36e.png.

我不知道该怎么做,请有人帮我吗?

I don't know how I can do this, please can someone help me?

谢谢.

<?php else:?>
    <a href="<?php echo $this->getUrl('',  array('_secure' =>  Mage::app()->getFrontController()->getRequest()->isSecure())) ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
    <?php endif?>
    <?php
        $loggedIn = $this->helper("customer")->isLoggedIn();
        if($loggedIn == 1){
    ?>
        <a href="<?php echo $this->getUrl('customer/account/logout/',  array('_secure' =>  Mage::app()->getFrontController()->getRequest()->isSecure())); ?>" class="sign-link pull-left"><?php echo $this->__('Logout') ?></a>
    <?php
        }else {
    ?>
        <a href="<?php echo $this->getUrl('customer/account/',  array('_secure' =>  Mage::app()->getFrontController()->getRequest()->isSecure())); ?>" class="sign-link pull-left"><?php echo $this->__('Log In or Register'); ?></a>
    <?php
        }
    ?>
    <?php echo $this->getChildHtml('topContainer'); ?>    



**Local.xml**
<action method="removeLinkByUrl"><url helper="customer/getAccountUrl"/></action>
        <action method="addLink" translate="label title" module="customer"><label>Log in or Register</label><url helper="customer/getAccountUrl"/><title>My Account</title><prepare/><urlParams/><position>10</position><liParams/><aParams>class="top-link-account"</aParams></action>

推荐答案

尝试搜索为class="sign-link pull-left"

一旦从源代码中找到它,就可以将其删除.

Once you have found it from source then you can delete it.

这篇关于在标题导航中将登录或注册链接移动到顶部链接-Magento的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆