Post by raymanj » Wed Dec 14, 2011 8:30 am

How do I add the product code of an item to the list and grid view pages? I would like to remove the item comparison link too.

If anyone could tell me the pages and code needed to do this, would be very helpful.

I have attached some before and after images of the list view and the grid view, to give you an idea what I am looking for..

Attachments

Grid.jpg

Grid.jpg (147.72 KiB) Viewed 952 times

List.jpg

List.jpg (87.36 KiB) Viewed 952 times


New member

Posts

Joined
Thu May 13, 2010 9:33 am

Post by billyggla » Sun Dec 18, 2011 8:08 pm

/catalog/controller/product/category.php
Find:

Code: Select all

'name'        => $result['name'],
Add After:

Code: Select all

'model'        => $result['model'],

/catalog/view/theme/default/template/product/category.tpl
Find:

Code: Select all

<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
Change to:

Code: Select all

<div class="name"><b><?php echo $product['model']; ?></b><br /><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
Find:

Code: Select all

<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>
Delete or change to:

Code: Select all

<!-- <div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div> -->
This is for the product categories page, you will need to do this for the rest of the pages e.g. latest, specials, etc.

Active Member

Posts

Joined
Mon Sep 20, 2010 7:05 am
Who is online

Users browsing this forum: No registered users and 5 guests