Categories

Featured templates

Magento. How to put a shop into catalog mode

Ray Taylor February 18, 2015
Rating: 5.0. From 1 vote.
Please wait...

In this tutorial you will learn how to remove add to cart and checkout options in Magento.

Magento. How to put a shop into catalog mode

  1. Unfortunately, there is no such option to enable a Catalog Mode in Magento by default, therefore, we are going to edit files and manually delete add to cart buttons.

  2. First of all, let’s remove My Cart and Checkout from the frontend:

    magento_catalog_0

    magento_catalog_0a

  3. Log into your Magento admin panel and navigate to System >> Configuration >> Advanced. Disable the Mage_Checkout option:

    magento_catalog_1

  4. In order to remove add to cart buttons from Product pages and Category pages, connect to your server using an FTP client or access your files via Hosting Cpanel file manager.

  5. Navigate to /app/design/frontend/default/themeXXX/template/catalog/product directory.

  6. We are going to alter the following files:

    1. new.phtml

    2. list.phtml

    3. view.phtml

  7. Open new.phtml file to remove add to cart button from the New Products section on home page. Locate and remove the following line:

     <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_catalog_2

  8. Open list.phtml file to remove add to cart buttons from the Category pages. Locate and remove the following line:

    <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_catalog_3

  9. Open view.phtml file to remove add to cart button from the Product view pages. Locate and remove the following line:

    <?php echo $this->getChildHtml('addtocart') ?>

    magento_catalog_4

  10. In case you also need to hide/remove product prices, this can be easily done by applying the following rule to the styles.css file located in skin/frontend/default/themeXXX/css/ folder:

    .price-box {display: none;}
  11. Sometimes it’s required to clean the Magento cache.

  12. Open your website and refresh the page (Ctrl+F5).

Thank you. Now you know how to remove add to cart and checkout options in Magento.

Feel free to check the detailed video tutorial below:

Magento. How to put a shop into catalog mode

Best Magento Templates
This entry was posted in Magento Tutorials and tagged catalog, Magento, mode. 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

Live Chat
We help you to choose the right product.