Post by lemonie » Wed Nov 23, 2011 7:06 pm

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
Last edited by lemonie on Wed Nov 23, 2011 11:55 pm, edited 1 time in total.

New member

Posts

Joined
Fri Nov 18, 2011 8:28 pm

Post by florinsith » Wed Nov 23, 2011 8:36 pm

Open the stylesheet.css of your current theme and look for class .product-compare and give it the property display: none;

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by fido-x » Wed Nov 23, 2011 9:14 pm

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.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by lemonie » Wed Nov 23, 2011 11:55 pm

Thanks .. works perfectly.

New member

Posts

Joined
Fri Nov 18, 2011 8:28 pm
Who is online

Users browsing this forum: No registered users and 6 guests