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
It would be helpful if you could provide the url of the site you’re working on -- so we can inspect the issue
Hi Tom sorry here it is http://www.cellar2door.com
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?
Your a champion Tom that fixed in the slide show but now it is still in the view page:
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
Thanks Tom. Bed time now. Thanks for all the great support.
Thanks Tom. Bed time now. Thanks for all the great support.
As always, happy to be of assistance.
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
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