Remove Magento Product Gallery If There’s Only One Product

by | Apr 8, 2013 | 0 comments

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!


Submit a Comment

Your email address will not be published. Required fields are marked *

elan creative

We’re like the in-house website design team you always dreamed of, able to tell your story like nobody else, and focus on your bottom line along with you….

Elan Creative
UK: +44 (0)121 288 3449
NL: +31 (0)20 893 2923

freelance-website-designer s


Get a free quote for your website design project: