I want to skip the base image from "More Views" – I know this can be done by exclding the image, but I have 20k+ products, alot of them with multiple pictures. I've tried to skip the first product from the media.phtml but that didn't work since some of the images are not in the correct order.
Could I somehow check for the main image, and skip this?
Best Answer
I know its not the best way to update the database directly, but in this case it might be the fastest way to set all default images to exclude so that you don't need a template hack.
With the following query you will set the base image (attribute image) to exclude (disable=1) in the media gallery:
Before running the query make sure you have a backup (and test it on your staging/test setup first). Also don't forget to add the table prefix if you are using that. I tested it on the Magento 1.9 sample data and it looks like it works.