Remove Add to Cart Button – How to Disable Add to Cart on All Frontend Pages in Magento 1.9

addtocartmagento-1.9

How to Remove "Add to cart" Button On all Frontend Pages And also want to know when "Add to cart" Button is Removed then Buyer Can Checkout or not?

I am using Magento 1.9.2.3 version.

Best Answer

Open cPanel or FTP and navigate to the following files:

app\design\frontend\tm_themes\themeXXXX\template\catalog\product\compare\list.phtml

app\design\frontend\tm_themes\themeXXXX\template\review\customer\list.phtml

app\design\frontend\tm_themes\themeXXXX\template\review\product\view\list.phtml

app\design\frontend\tm_themes\themeXXXX\template\tm\productlistgallery\list.phtml

app\design\frontend\tm_themes\themeXXXX\template\wishlist\item\list.phtml

Due to the fact the catalog pages can by viewed in either grid or list mode, there are two references to the Add to Cart button in the code within the list.phtml file. Make sure to comment out the code in both sections.

Look up this code and comment it: ?

<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>

Buyer can checkout even after removal of this add to cart button. Because whenever you click on the product from product list page it will take you to magento's product detail page.there you can add product to cart.then you can go to checkout that product.