Review stars aren’t showing in front-end.

This is a problem that catches me out time again and time again with Magento. I seem to end up looking through my .phtml template files for up-to 30 minuets before having a moment of deja vu and remembering you need to make the rating criteria visible on each website.

  1. Navigated to Catalog>Reviews and Ratings>Manage Ratings
  2. Select one of the rating criteria; Price, Quality and Value by default.
  3. And under Rating Visibility select the store view that you wish for ratings to be visible, now as long as your theme supports it you should see rating(s) and be able to add ratings in your store.

Adding Classing/Icons to top links.

To add separate icons to each of the top links you first need to give each of the links an individual class, you could hard code these in but the best way is to add the class to the links using XML

I will use the my account link as an example.

Editing XML

Open customer.xml and on around line 52 you should find this line;

<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>

To add a class you need to do two things, close out the li params and add the a params (the class) so just before the </action> add <liParams/> and <aParams>class="your-class-name-here"</aParams>

The exception – Wishlist.

Magento handles the wishlist link a little differently choosing to use the addLinkBlock method instead of addLink to add this link. To add the class we need to change it back to addLink.

Replace the code <action method="addLinkBlock"><blockName>wishlist_link</blockName></action>

with

<action method="addLink" translate="label title" module="wishlist"><label>Wishlist</label><url helper="wishlist/getListUrl"/><title>My Wishlist</title><prepare/><urlParams/><liParams/><aParams>class="your-class-name-here"</aParams></action>

and the simply change the aParam class.


Change column count on category page.

A question I am commonly asked is, “How do I change the amount of products shown per line on my category page”. Thankfully Magneto makes this incredibly easy to do, and only requires one line to be edited.

The best way to do this is to edit the file catalog.xml (app/design/frontend/default/[your_theme_name_here]/layout), open the file in your preferred text editor and add the following line:

<action method="setColumnCount"><count>3</count></action>

before the tag of “product_list” blocks around lines 103 and 143

click save and upload the edited file.