I'm looking to know the best way to perform two operations in bulk (from a list of product IDs):
- Add an image with DisplayOrder = 0 so that the image becomes the new thumbnail
- Change the reference across many products to use the same image
Geschrieben: 10 April 2020 - 00:04
I'm looking to know the best way to perform two operations in bulk (from a list of product IDs):
Geschrieben: 13 April 2020 - 16:43
Marcus Gesing
Smartstore AG
Geschrieben: 21 April 2020 - 16:46
Just curious, for #2, is there a reason I couldn't just run a direct SQL update on the Product_Picture_Mapping table where I update all products with PictureId = X to PictureId = Y? I suppose I'd have to clear the cache as well after this.
UPDATE Product_Picture_Mapping SET PictureId = Y WHERE PictureId = X AND ProductId IN (<List>)
Geschrieben: 21 April 2020 - 19:02
Marcus Gesing
Smartstore AG