How to remove product compare buttons

Saguaros gave me a solution to remove the add to compare button on teh product page but I now notice there is still buttons for teh same function in the category view and in the other sections like new arrivals and best seller and other areas on the site.

I saw a solution online that said go to Configuration/general/ and then click on features. When I go to general there is no features button to click on.

Does anyone know how to remove all of the add compare buttons across the whole site?

Many thanks Jim

9 answers

Profile photo of tomc 0.00 $tone August 20, 2014
Public

Try This . . . .

Within file path —> /skin/frontend/default/jm_travelgear/joomlart/jmproductsslider/css/style.css
at line 167, make the following modification:

Code:

.jm-slider li .inner .btn-compare {
    background: url("../images/btn-compare.png") no-repeat scroll left top rgba(0, 0, 0, 0);
    display: none;
}

Does that resolve the issue you were referring to?

#3
Profile photo of tomc 0.00 $tone August 20, 2014
Public

Try adding the following CSS rule (new) to the same style.css file above:

Code:

.products-list li.item .inner .out-of-stock, .products-list li.item .inner .btn-compare {
    display:  none;
}

You can add the rule anywhere you want.
If it were me, I would probably add it at/around the rule at line 167 above -- just to "keep it in the family," per se

#5
Profile photo of James Weston 2860.00 $tone August 21, 2014
Public

Hi Tom,

man they certainly want you to use this compare feature.

I just noticed that despite the changes you helped me with last night it still appears on this page http://www.cellar2door.com/index.php…iraz&mode=grid when it is in grid format and also on all the product quick view pages πŸ™

FYI I sent a PM to Saguaros to check if he had dome anything to the price feature that may have affected the way it looks now so I will be able to tell the development people as they try and work out how to fix it.

Cheers,

Jim

#8
Profile photo of Saguaros 0.00 $tone August 22, 2014
Public

Hi Jim,

With the catalog view page, you can open this file: \app\design\frontend\default\jm_travelgeartemplat e\catalog\product\list.phtml

Find and remove the block code which renders the compare buttons

PHP Code:

<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<ul class="add-to-links" style="display:none;">
    <li><a class="link-compare" href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare'?></a></li>
</ul>
<?php endif; ?>


Best

#9

Please login or Register to Submit Answer

Written By

Comments