Jump to content

Script to select all images for product attributes.


mytheory.

Recommended Posts

Hi,

I was wondering if somebody could help me write a MySQL query or php script that will automatically select multiple images for all the product attributes.

So if I know the product id, and that product has multiple images uploaded and several attributes... how can I easily (all at once) update each attribute and select the available images for that product?

If the product has only a handful of attributes editing each once and modifying it would be fine... but some of our products have 50+ attributes for each product, and if we have 2+ images for each of these attributes it takes a tremendous amount of time to go through the list and update each one.... I haven't been able to find a module or script that would easily update this.

And better yet, is there a way to modify the code to automatically select all the images when the attributes are generated?

THANKS!!

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...