1

On all my product pages just below the main product images I have a static block called "block_product_img_bottom", which contains a small image.

All but one category must display this image, so how do I hide this static block on just one of my categories?

  • Which version of Magento do you have? – Andrea Aug 28 '16 at 14:08
  • Hi @Andrea, I am using Magento ver. 1.9.2.3. – j_granty Aug 28 '16 at 14:37
  • Take a look here or here, may help you – Andrea Aug 28 '16 at 15:03
  • @Andrea Thank you for the links but I still haven't solved it. I'll keep trying. – j_granty Aug 28 '16 at 18:00
3

You have to go to the specific category page in the Magento backend, then look custom design and there for XML Layout update.

Then there you put that code

<reference name="product.info">
   <remove name="block_product_img_bottom"/>
</reference>

That´s it already.

Update Try product.info instead of content. See code above. Also I realized when looking at your website that its for a specific product. So please open the product then click on design and add the code there under Custom Layout Update

  • in the Magento backend: admin/catalog_category/my_category in Custom Design it doesn't show an XML Layout update box? It does say Custom Layout Update though, so I added your code in there but it shows no change to the front end. I have all caches disabled. I am using Magento ver. 1.9.2.3. – j_granty Aug 28 '16 at 14:55
  • Here is a link to the live website. I just want to be able to hide the image (it looks like 3 images) shown below the product thumbnail. Any idea? – j_granty Aug 28 '16 at 17:53
  • I have updated the code above – Klettseb Aug 29 '16 at 8:16
  • thank you, unfortunately I can't get this to work with the updated code. Do you think this is the best method for hiding a block on a product page or am I going about this the wrong way? I just need to remove this block from a few pages, it needs to show on all the other product pages. – j_granty Aug 29 '16 at 13:13
  • See my update above please – Klettseb Aug 29 '16 at 13:16

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.