[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

Magento. How to remove “Add to Cart” buttons from catalog pages

This tutorial shows how to remove Add to Cart buttons from the catalog pages of Magento store themes.

Magento._How_to_remove_Add_to_Cart_buttons_from_catalog_pages_1

  1. 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

    where themeXXXX is your theme number.

    Magento._How_to_remove_Add_to_Cart_buttons_from_catalog_pages_2

  2. 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 delete the code in both sections.

    Look up this code and delete 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>

    Magento._How_to_remove_Add_to_Cart_buttons_from_catalog_pages_3

  3. Clear Magento cache and refresh the website page to see the changes.

Feel free to check the detailed video tutorial below:

Magento. How to remove “Add to Cart” buttons from catalog pages