I want to add a link to the cms customer service page within top.links. I know I can add the following action to customer.xml but what is the correct code to place after url helper ?
I’d be interested in learning more about what you did and how you did it. Did you make your modification in the source files? Is there a way this can be done through the admin interface?
First… open this file: app\design\frontend\default\YOUR_THEME\layout\customer.xml
Next… add this code (see below) almost anywhere in the file, the <position>5</position> can be raised or lowered depending on where you want the link to fall in the list:
Last… to make the page “YOUR-PAGE” you will need to access the magento admin area and make a page using CMS > Manage Pages then click the Add New Page link in the top right corner.
This is very simple, but can be tricky at first… let me know if there is any errors, suggestions, or questions.
I did notice one problem using the above method. When a user clicks on the “Contact Us” link first and then on the “Why Tungsten Carbide?” link it goes the the incorrect page. To fix this I hard coded the “YOUR-PAGE” link to include the whole URL like this: “http://ringcartel.com/store/index.php/tungsten-carbide” instead of this “tungsten-carbide”
I’m not sure if there is a better way… I assume it has something to do with the “url handler” so any suggestions would be great.
I did notice one problem using the above method. When a user clicks on the “Contact Us” link first and then on the “Why Tungsten Carbide?” link it goes the the incorrect page. To fix this I hard coded the “YOUR-PAGE” link to include the whole URL like this: “http://ringcartel.com/store/index.php/tungsten-carbide” instead of this “tungsten-carbide”
I’m not sure if there is a better way… I assume it has something to do with the “url handler” so any suggestions would be great.
Version 1.1.6
I would suggest looking in /app/design/frontend/default/default/layout/page.xml
[CUT]
Add an action within this tag. In my case I was adding a home link to the start.
I added:
Thanks! But i don’t get the text “Home” (I use “Home” instead of “Shop”, but have the same problem when using “Shop") to be translated. I have a multi store using many languages, but it shows “Home” on the link in all the store views. I have searched a lot, and have not been able to get the “Home” text to use the translation from the different language packs. Please help!
In a nutshell instead of using “Store” in you’re custom link’s text you, need to use:-
<?php echo $this->__('Store') ?>
Once you’ve done this you can add your translations to your custom themes as I describe by creating a translate.csv for each of your languages.
If you get stuck let me know…
I sometimes write these things in a hurry… pizza to eat, home-made at that! O_o
Thank you! But i am trying to place the “Home” link in the header menu (left for “My account"), but it seems like the example you link to, is for the category menus.
I will try to experiment a little more, maybe i get lucky!
Version 1.1.6
I would suggest looking in /app/design/frontend/default/default/layout/page.xml
[CUT]
Add an action within this tag. In my case I was adding a home link to the start.
I added:
Thanks! But i don’t get the text “Home” (I use “Home” instead of “Shop”, but have the same problem when using “Shop") to be translated. I have a multi store using many languages, but it shows “Home” on the link in all the store views. I have searched a lot, and have not been able to get the “Home” text to use the translation from the different language packs. Please help!
PS: I am using Version 1.1.6.
When you set up your multiple store views you would need separate customer.xml file for each. Then replace word “home” with the translated version yourself. Go to admin->configuration->(choose your store view)->design and tell magento to use this for that store view.
I did notice one problem using the above method. When a user clicks on the “Contact Us” link first and then on the “Why Tungsten Carbide?” link it goes the the incorrect page. To fix this I hard coded the “YOUR-PAGE” link to include the whole URL like this: “http://ringcartel.com/store/index.php/tungsten-carbide” instead of this “tungsten-carbide”
I’m not sure if there is a better way… I assume it has something to do with the “url handler” so any suggestions would be great.