Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 3 of 3
REMOVE. ??? Add to Wishlist | Add to Compare
 
bfly03
Member
 
Total Posts:  59
Joined:  2010-06-14
 
kara - 15 October 2010 01:15 PM

Please see this tutorial as well and see if it helps some of you.
http://www.magentocommerce.com/knowledge-base/entry/turning-on-off-magentos-content-blocks

This helped with the wishlist. Where can I find the ‘add to compare’, I do not need that feature either.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mikeonmage
Sr. Member
 
Total Posts:  101
Joined:  2011-02-03
 

how to comment out (turn off) code?

for example

<p class=\"add-to\">
<?php if ($this->helper(\'wishlist\')->isAllow()) : ?>
<a href=\"<?php echo $this->helper(\'wishlist\')->getAddUrl($_product) ?>” class=\"link-cart\"><?php echo $this->__(\'Add to Wishlist\') ?></a>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<span class=\"pipe\">|</span>
<a href=\"<?php echo $_compareUrl ?>\"><?php echo $this->__(\'Add to Compare\') ?></a>
<?php endif; ?> </p>

how to comment out code?

 
Magento Community Magento Community
Magento Community
Magento Community
 
brunomarshall
Guru
 
Avatar
Total Posts:  367
Joined:  2009-08-04
 
nafnaf1000 - 07 April 2008 08:22 AM

Hello,

I want to remove the “ Add to Wishlist | Add to Compare & review this product “ links from my site, any one have any idea how to do this?

Hello,
If you want to completely remove and not to be used in future you can remove in your template file
or if you want to use it in future then you can disable from admin>system>configuration>advanced disable what all the modules you dont need

 
Magento Community Magento Community
Magento Community
Magento Community
 
mattrock
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2011-04-04
 

[SOLUTION]

harish - 10 April 2008 10:43 PM

Manually you can delete it from here:
app/design/frontend/default/default/template/catalog/product/list.phtml

remove this from list mode as well as grid mode:

<p class="add-to">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>” class="link-cart"><?php echo $this->__('Add to Wishlist') ?></a>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<span class="pipe">|</span>
<a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?></a>
<?php endif; ?> </p>

Thanks harish! I looked everywhere for this solution, which worked like a charm.

If I could add to alistek’s suggestion. Copy the file to your custom template directory (use same pathing) and comment out the code here. This is recommended practice (rather than modifying core files) and it will ensure your work isn’t lost with future upgrades.

Cheers, and thanks again!

 
Magento Community Magento Community
Magento Community
Magento Community
 
fotobet
Jr. Member
 
Total Posts:  3
Joined:  2010-04-27
 

This thread has been extremely helpful in eliminating almost all of the instances in which “Add to Compare” appears. I’ve adjusted the the list.phtml and addto.phtml files with success. The problem I’m still having, though, is once I add a custom option to the product (radio buttons, text field, etc), the “Add to Compare” comes back. Any thoughts as to why using custom options somehow overrides the files I just adjusted?

Thanks!

And as an aside, coming from an non-programmer, thanks to everyone who gives input in this forum...it’s a huge help for us that don’t have a clue as to what we’re doing when we first sit down grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
jouss0
Jr. Member
 
Avatar
Total Posts:  11
Joined:  2011-02-23
 

found view.phtml

app/design/frontend/default/ your template or default /template/catalog/product/

delete only this line

<?php if( $this->helper(\'wishlist\')->isAllow() || $_compareUrl=$this->helper(\'catalog/product_compare\')->getAddUrl($_product)): ?>
<span class=\"or\"><?php echo $this->__(\'OR\') ?></span>
<?php endif; ?>
<?php endif; ?>
<?php echo $this->getChildHtml(\'addto\') ?>
</div>
<?php endif; ?>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andyddr
Jr. Member
 
Total Posts:  3
Joined:  2011-08-30
 

There is a very easy way to do this in Magento 1.6.2.0:

Step 1:

Find sidebar.phtml and comment out:

<?php 
$_helper 
$this->helper('catalog/product_compare');
$_items $_helper->getItemCount() > $_helper->getItemCollection() : null;
?>
<div class="block block-list block-compare">
    <
div class="block-title">
        <
strong><span><?php echo $this->__('Compare Products'?>
            <?php 
if($_helper->getItemCount() > 0): ?> 
                
<small><?php echo $this->__('(%d)'$_helper->getItemCount()) ?></small>
            
<?php endif; ?>
        
</span></strong>
    </
div>
    <
div class="block-content">
    
<?php if($_helper->getItemCount() > 0): ?>
        
<ol id="compare-items">
        
<?php foreach($_items as $_index => $_item): ?>
            
<li class="item">
                <
input type="hidden" class="compare-item-id" value="<?php echo $_item->getId() ?>" />
                <
a href="<?php echo $_helper->getRemoveUrl($_item) ?>" title="<?php echo $this->__('Remove This Item') ?>" class="btn-remove" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the compare products?') ?>');"><?php echo $this->__('Remove This Item'?></a>
                <
class="product-name"><a href="<?php echo $this->getProductUrl($_item) ?>"><?php echo $this->helper('catalog/output')->productAttribute($_item$_item->getName(), 'name'?></a></p>
            </
li>
        
<?php endforeach; ?>
        
</ol>
        <
script type="text/javascript">decorateList('compare-items')</script>
        
<div class="actions">
            <
a href="<?php echo $_helper->getClearListUrl() ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove all products from your comparison?') ?>');"><?php echo $this->__('Clear All'?></a>
            <
button type="button" title="<?php echo $this->__('Compare') ?>" class="button" onclick="popWin('<?php echo $_helper->getListUrl() ?>','compare','top:0,left:0,width=820,height=600,resizable=yes,scrollbars=yes')"><span><span><?php echo $this->__('Compare'?></span></span></button>
        </
div>
    
<?php else: ?>
        
<class="empty"><?php echo $this->__('You have no items to compare.'?></p>
    
<?php endif; ?>
    
</div>
</
div>

Step 2:

Find block_featured_products.phtml and comment out:

<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
                            
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare'?></a></li>
                       
<?php endif; ?>

All Add to Compare is now null and void smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
jlkm2000
Jr. Member
 
Total Posts:  1
Joined:  2012-03-05
 

Guys, I beed researching for few hours now and failed on all attempts.

I’m trying to get rid of “Add to Cart”, “Add to Compare List”, “Add to Wishlist” functions.

Using Magento 1.7.X

Thanks in advance… My head aches now… Need to nap LOL

 
Magento Community Magento Community
Magento Community
Magento Community
 
PositionMySite
Jr. Member
 
Avatar
Total Posts:  3
Joined:  2010-04-25
 

Hello All,

This is a topic that is just well ummm. wow as it so should be an option in the admin panel to disable I mean seriously…

The answer lies within you list.phtml file

delete the following codes for BOTH List and Grid in the same file, there isn’t a separate view they are in the same file.

Just delete this…

</div>
<div class="clear"></div>
<ul class="add-to-links">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>” class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
<?php endif; ?>
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>” class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
<?php endif; ?>
</ul>

Works perfectly for Magento 1.7

you can find the file here

app/design/frontend/default/theme307/template/catalog/product/*.*

Good Luck and happy building…

 
Magento Community Magento Community
Magento Community
Magento Community
 
amagi
Jr. Member
 
Total Posts:  3
Joined:  2012-07-09
 

No longer needed. Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
 
arbeloa
Jr. Member
 
Total Posts:  16
Joined:  2011-10-16
 

Hi,

I want to remove links under add to cart ("add to compare” and “add to whishlist").
I am looking for a few hours but without success…

I manage to disable all links on the page catalog / product / view / addto.phtml
but only to remove the links under add to cart is impossible ...
I’m desperate.

Thanks for your help

 
Magento Community Magento Community
Magento Community
Magento Community
 
cheriton1
Jr. Member
 
Total Posts:  8
Joined:  2013-01-24
 
akr34 - 31 December 2008 01:35 AM

This is how I did it. I switched on Template Hints to know where the links where coming in from to make changes.

To remove them from product view page, comment out the “Add to” parts in app/design/frontend/default/default/template/catalog/product/view/addto.phtml:

<ul class="add-to-box">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<!-- <li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>">
<?php echo $this->__('Add to Wishlist'?></a></li> -->
<?php endif; ?>
<?php 
if($_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product) ): ?>
<!-- <li><span class="pipe">|</span> <a href="<?php echo $_compareUrl ?>">
<?php echo $this->__('Add to Compare'?></a></li> -->
<?php endif; ?>
</ul>

As opposed to deleting the code completely.

To remove the “Add to Wishlist” and “Add to Compare” from new products, go to app/design/frontend/default/default/template/catalog/product/new.phtml, and search for “add to”. The comment out those parts, like so:

<class="add-to">
<?php if ($this->helper('wishlist')->isAllow()) : ?>
<!-- <a href="<?php echo $this->getAddToWishlistUrl($_product) ?>" class="link-cart">
<?php echo $this->__('Add to Wishlist'?></a> -->
<?php endif; ?>
<?php 
if($_compareUrl=$this->getAddToCompareUrl($_product)): ?><br />
<!-- <
a href="<?php echo $_compareUrl ?>">
<?php echo $this->__('Add to Compare'?></a> -->
<?php endif; ?>
</p>

Hopefully it’ll work for you.

Thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
JKuppens
Jr. Member
 
Total Posts:  13
Joined:  2012-11-16
 
arbeloa - 22 September 2012 07:20 AM

Hi,

I want to remove links under add to cart ("add to compare” and “add to whishlist").
I am looking for a few hours but without success…

I manage to disable all links on the page catalog / product / view / addto.phtml
but only to remove the links under add to cart is impossible ...
I’m desperate.

Thanks for your help

I have the same problem, Can someone please help me out?

 
Magento Community Magento Community
Magento Community
Magento Community
 
HLT1
Member
 
Total Posts:  33
Joined:  2009-05-03
 

I came here looking for a solution to this and once again, its not an admin panel option.  Have to hire a programmer and waste money having them modify code.  So that when we upgrade, all that effort and money are lost.  Seems to be the standard with magento.  Tons of very basic changes/settings/functionality you need to get done has to be manually coded.

This is a topic that is just well ummm. wow as it so should be an option in the admin panel to disable I mean seriously…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 3 of 3