0

How can I hide or remove product image area for a company selling only virtual products? Trying to remove or hide Thumbnail, Small Image, Base Image, And Media image, if possible.

Thank you!!!

  • Are you looking at removing the images from displaying from the front end, or for also removing images from product view in the admin area. – Bobadevv Aug 5 '15 at 14:29
  • I would like to remove the images from displaying from the front end. Thank you... – Columbus1 Aug 6 '15 at 12:34
  • See the answer below plus the comment I left for removing product images within the product list and cart – Bobadevv Aug 6 '15 at 12:45
1

You can achieve this using local.xml file in your theme's layout folder. Removing media from product page would look like this(Not tested, should work, if handle "product.info.media" not customized in theme):

<catalog_product_view>
    <reference name="content">
        <remove name="product.info.media" />
    </reference>
</catalog_product_view>

Similar process can be carried out for all other places(Category and Cart pages). To remove images from category pages and cart pages, you'd need to modify the templates.

Create a copy in your theme's template folder of catalog/product/list.phtml and checkout/cart/item/default.phtml files and replace/comment img tags appropriately. This should be sufficient for simple products throughout the site as I can't recall any more default place where these images are called, if I can have the liberty of neglecting those sidebars.

  • You can remove the media from the product view page using the above, for product list and cart you will need to remove the images from the template files template/catalog/product/list.phtml and checkout/cart/item/default.phtml – Bobadevv Aug 6 '15 at 12:45
  • @Bobadevv, yes you are right. I'll soon update the answer. – Prateek Aug 6 '15 at 16:27
  • You can consider it as your Triumph Card against Magento! !! – Prateek Aug 7 '15 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.