Archive

Archive for the ‘Magento’ Category

Magento – Change Layered Navigation Category Text

February 18th, 2010

This is just a quick post about how to change the “Category” wording on the layered navigation of a site. I needed to change it to “Brand” and it took me a few minutes to locate the correct files as the developer guide lines were not showing up. I thought for this reason I will make a quick note of it here on my blog.

The file you need to look in is:

/shop/app/design/frontend/default/default/template/catalog/navigation/left.phtml

Remember default/default should be changed to your current interface and theme for the site.

In this file around line 46 you should see a line of code looking like this:

__('Category') ?>

Change this to whatever you want to display eg. ‘Brand’. So my line will now look like:

__('Brand') ?>

Save the file and hit refresh and voila! New title in your layered navigation.

Magento

Magento Change “My Cart” to “My Basket”

February 11th, 2010

A site we were developing needed to have the wording “My Cart” changed to “My Basket” in the header links of the site.

To do this we made a translate.csv file under “/app/design/frontend/default/default/locale/en_GB/”

The “en_GB” could be whatever locale you are using. Our store is setup for the UK so it is “en_GB” the US would be “en_US”.

Also the template could differ, we were using the default template.

Now in the translate.csv file add the following lines:

“My Cart (%s item)”, “My Basket (%s item)”
“My Cart (%s items)”, “My Basket (%s items)”
“My Cart”, “My Basket”

Save the file and upload it to the location above. Login to the admin and refresh the cache by going to System->Cache Management. Select refresh in the drop down and press “Save Cache Settings”

Refresh your website front end to notice the difference.

Magento