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

How to remove add to compare on product page - SOLVED
 
seoguy
Member
 
Total Posts:  46
Joined:  2008-01-25
 

Hi All,

In ver 1.0 the “add to cart or add to compare “ on the product page apparently has been javascripted in a file called “product_addtocart_form” or “productAddToCartForm”.  I want to remove the “or add to compare”

I cant find the file.

Any suggestions?

Chris

EDIT:  Her is how you do it for a simple product:

go to

app/design/frontend/default/default/template/catalog/product/view/type/simple.phtml

remove the add to cart call at bottom as well as the “OR” a couple of lines up.

Sorry but I deleted the code and forgot to paste it in a notepad before I saved it.

Hope this helps.

Chris

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

In the actual product settings you can disable the ability to compare.

 
Magento Community Magento Community
Magento Community
Magento Community
 
seoguy
Member
 
Total Posts:  46
Joined:  2008-01-25
 

Hi Sherrie,

Thanks, but where in the product settings.  I went to manage products and picked a product and went through every option.  I also went to configuration and went through the options there also.  I have no problem getting rid of add to compare on the grid layout and the sidebar, but on the product page it looks like its javascripted in with the add to cart function/button.

Any idea where that file is located?

Thanks,

Chris

 
Magento Community Magento Community
Magento Community
Magento Community
 
seoguy
Member
 
Total Posts:  46
Joined:  2008-01-25
 

Please see original post in the edit for solution

Chris

 
Magento Community Magento Community
Magento Community
Magento Community
 
nafnaf1000
Sr. Member
 
Total Posts:  209
Joined:  2008-02-21
 

@seoguy..

You can always edit code to change this, but I do not think that that was the best thing to do as now you don’t have the code and it is always better to have on ON/OFF option for just is case one day you do want it....

I was hoping there was a way to remove this from the back end.

 
Magento Community Magento Community
Magento Community
Magento Community
 
paul@moodandmind.com
Member
 
Avatar
Total Posts:  65
Joined:  2008-01-13
 

I’ve found that the easiest solution is to turn off “Comparable on Front End” on all of your attributes under Manage Attributes.

If you do this the compare feature should not be active.

 
Magento Community Magento Community
Magento Community
Magento Community
 
caos989
Sr. Member
 
Total Posts:  96
Joined:  2008-07-25
Linz, Austria
 
paul@moodandmind.com - 12 April 2008 11:30 AM

I’ve found that the easiest solution is to turn off “Comparable on Front End” on all of your attributes under Manage Attributes.

If you do this the compare feature should not be active.

Don’t work for me....
I have version 1.1.2

There is still a “OR ADD TO COMPARE” on productpage

I deactivate the “add to compare” with editing the code in \app\design\frontend\default\default\template\catalog\product\view\addto.phtml but the “OR” is still there. Any ideas to delete it?

It don’t works with editing the file app\design\frontend\default\default\template\catalog\product\view\type\simple.phtml because this is the code in simple.phtml

<?php $_product $this->getProduct() ?>

<?php 
if($_product->isSaleable()): ?>
    
<class="availability"><?php echo $this->__('Availability: In stock.'?></p>
<?php else: ?>
    
<class="availability"><?php echo $this->__('Availability: Out of stock.'?></p>
<?php endif; ?>

<?php 
echo $this->getPriceHtml($_product?>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top