Page 1 of 1

[SOLVED] Remove 1 instance of product compare

Posted: Wed Nov 23, 2011 7:06 pm
by lemonie
hi

I would like to remove the following instance of product compare. I would like to keep all the others, i just think this one spoils the look.

Image

Re: Remove 1 instance of product compare

Posted: Wed Nov 23, 2011 8:36 pm
by florinsith
Open the stylesheet.css of your current theme and look for class .product-compare and give it the property display: none;

Re: Remove 1 instance of product compare

Posted: Wed Nov 23, 2011 9:14 pm
by fido-x
If you just want to hide the "(0)" at the end of the line, change the following in "catalog/controller/category.php" (line 89) from:

Code: Select all

$this->data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? count($this->session->data['compare']) : 0)); 
to:

Code: Select all

$this->data['text_compare'] = sprintf($this->language->get('text_compare'), (isset($this->session->data['compare']) ? '(' . count($this->session->data['compare']) . ')' : NULL)); 
AND, change the following entry in "catalog/language/english/product/category.php" (line 14) from:

Code: Select all

$_['text_compare']      = 'Product Compare (%s)'; 
to:

Code: Select all

$_['text_compare']      = 'Product Compare %s'; 
This will just leave "Product Compare" without a number, unless your customer has added products to their compare list.

Re: Remove 1 instance of product compare

Posted: Wed Nov 23, 2011 11:55 pm
by lemonie
Thanks .. works perfectly.