Categories

Featured templates

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

Rating: 5.0/5. From 2 votes.
Please wait...

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
Top Magento Themes
This entry was posted in Magento Tutorials and tagged add to cart, button, catalog, Magento, remove. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket