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..
/catalog/controller/product/category.php
Find:
Add After:
/catalog/view/theme/default/template/product/category.tpl
Find:
Change to:
Find:
Delete or change to:
This is for the product categories page, you will need to do this for the rest of the pages e.g. latest, specials, etc.
Find:
Code: Select all
'name' => $result['name'],
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>
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>
Code: Select all
<div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div>
Code: Select all
<!-- <div class="compare"><a onclick="addToCompare('<?php echo $product['product_id']; ?>');"><?php echo $button_compare; ?></a></div> -->
Who is online
Users browsing this forum: No registered users and 12 guests