How to remove sign up links from top menu in magento? - magento

Recently I have notcied that on my websites top menu two sign up buttons are visible. How do I remove the extra link?

find following line in your theme's layout folder
<reference name="top.links">
And check there must be two instance of the link you are speaking in different files.
for ex if two Log Out links are visible, following must be inside above tag in two places.
<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>
If you have recently added any extension you must also check in its xml file.
Hope this helps

Related

How do i edit the "Account" button in Magento?

I am running the latest Magento ( 1.9 ) with the Default theme and right now, in the top right region of the header i see the Account and CART buttons.
What i want to do is edit the Account button into something else however I spent the last 2 hours trying to find the place where I can edit it.
Can you please guide me in the right direction ?
You need to navigate to your theme's app layout directory, for example;
root/app/design/frontend/base/default/layout
The top links are declared as a position in the template in the xml and can be added to by the different extensions. The account link is defined in customer.xml. If you search that file for "top.links" you will find it;
<!-- 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>
</reference>
After you modify this, you will need to flush your cache for the changes to take effect.
Best
Tom

How to add links to the top menu of Magento site when there is already a left menu?

Can anyone tell me how to add links to the top menu of my Magento site.
Here it is - http://www.westoztools.com.au/working/index.php/
Please note that I have a left menu as well.
The way the top menu is built depends highly on your theme.
But if the theme follows standard behavior then you could add a link in the top menu through any layout xml file like this:
<default>
<reference name="top.links">
<action method="addLink" translate="label title">
<label>LINK LABEL HERE</label>
<url>relative url here</url>
<title>Link title here</title>
<prepare>1</prepare>
<urlParams/>
<position>100</position> <!-- feel free to change this -->
</action>
</reference>
</default>

How to remove tab from child theme added in custom default theme?

I know, confusing title..
So basically I have an custom theme. The files I'm gonna talk about it located like below :
frontend/custom/default/layout/local.xml
frontend/custom/blue/layout/generallayout.xml
In local.xml, I have added a tab like this
<action method="addTab" translate="title" module="tag"><alias>product.tags</alias><title>Product Tags</title><block>tag/product_list</block><template>tag/list.phtml</template></action>
Now I wanna remove this tab in blue/generallayout.xml. So I added :
<catalog_product_view>
<reference name="product.info.tabs">
<action method="unsetChild"><name>product.tags</name></action>
</reference>
</catalog_product_view>
The problem is, this is not working cause I think layout.xml renders after generallayout.xml. So there isnt anything to remove while in generallayout.xml. How I achieve removing the tab ?
I'm sure there isnt anything wrong with what I wrote cause I copied the second snipped to local.xml and I successfully added then removed the tab.
For reference, I couldn't resolve this with this method.
I looked at the magento's core php files and saw that 'local.xml' always renders last. No way to change it without overwriting the core files.

Whats the proper way to fix Magento Wishlist Link Points to Root?

Magento's (1.5.1.0) cms_footer_links link to wishlist is incorrect: it points to the web root instead of "/wishlist". I have been able to apply a temporary fix (on wishlist.xml: the commented action was replaced by the uncommented action below it)
<reference name="top.links">
<block type="wishlist/links" name="wishlist_link"/>
<!-- <action method="addLinkBlock"><blockName>wishlist_link</blockName></action> -->
<action method="addLink" translate="label title"><label>My Wishlist</label><url>wishlist</url><title>My Wishlist</title><prepare/><urlParams/><position>20</position></action>
</reference>
Fixing it this way naturally doesnt show the number of items in the wishlist on the link. How do I go about fixing <blockName>wishlist_link</blockName> without changing the core xml responsible for it? I imagine it can be done via local.xml (this did not work), but what is the syntax for doing that?
An alternative solution would be to find the reason why it stopped working, but that can be a much more daunting task than modifying local.xml. I have been able to find other people with the exact same problem on the magento forum (1, 2), but I've given up on asking for help there...

Magento Top Links "Log Out" link doesn't show sometimes

When I'm logged in, sometimes my "Log Out" link shows in the top links section, sometimes not.
Seems to depend on the particular session, i.e. if I close my browser and come back later it might be there. Weird I know.
This code is in my customer.xml which appears to work sometimes.
<!--
Load this update on every page when customer is logged in
-->
<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>
</reference>
</customer_logged_in>
<!--
Load this update on every page when customer is logged out
-->
<customer_logged_out>
<!---<reference name="right">
<block type="customer/form_login" name="customer_form_mini_login" before="-" template="customer/form/mini.login.phtml"/>
</reference>-->
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>Log In</label><url helper="customer/getLoginUrl"/><title>Log In</title><prepare/><urlParams/><position>100</position></action>
</reference>
<remove name="reorder"></remove>
</customer_logged_out>
I figured something maybe overwriting it somehow later in the load chain, but I can't find any references to remove this link.
I also added this exact code to a local.xml file which should get loaded last .. no luck there.
Any thoughts on what's going on? I'm using Magento 1.6.1 community. It's seems to me this could be a bug, based on the erratic behavior pattern.
I am unable to post the snippet here becuase SO strips it too much, but here is your answer.
http://www.magentocommerce.com/boards/viewthread/52285/#t263743

Resources