Remove Magento Product Gallery If There’s Only One Product

This FAQ shows you how to remove the product image gallery when there’s only one product image. Some templates do not take care of this automatically, so this is what you need to do.

Make the following change in media.phtml file:

count($this->getGalleryImages()) > 0

change this to:

count($this->getGalleryImages()) > 1

That’s it!

Nina Young About the author

I studied mathematics at university, taught myself software development, honed my skills with multinational companies such as IBM and have set up and sold my own businesses. My perspective covers the all important period when a business moves from small and successful to substantial and market-leading, and my personal experience allows me to provide online solutions that give business leaders mastery of their online presence and control over business development.

No Comments

Leave a Comment: