How to remove the "add to compare" button on product page

How do I remove the Add to Compare button in my product pages http://www.cellar2door.com/index.php…rlot-2011.html

Thanks

6 answers

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

You can go to file: \app\design\frontend\default\jm_travelgeartemplat e\catalog\product\view\addto.phtml

Look for the code which displays the add to compare link then remove / comment it:

Code:

<div class="outer-addcart">
<button type="button" title="<?php echo $this->__('Add to Cart'); ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $this->__('Add to Cart'); ?></span></span></button>
<ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
	<li><a href="<?php echo $_wishlistSubmitUrl ?>" onclick="productAddToCartForm.submitLight(this, this.href); return false;" class="link-wishlist"><?php echo $this->__('Add to Wishlist'); ?></a></li>
<?php endif; ?>
<?php
	$_compareUrl = $this->helper('catalog/product_compare')->getAddUrl($_product);
?>
<?php if($_compareUrl) : ?>
	<li><a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare'); ?></a></li>
<?php endif; ?>
<?php if ($this->canEmailToFriend()): ?>
	<li><a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>" class="link-email"></a></li>
<?php endif; ?>
</ul>
</div>
#1

Please login or Register to Submit Answer

Written By

Comments