Jump to content

Import via CSV Combinations - How to associate pictures to combos?


Recommended Posts

Good Day,

I'm trying to use the import tool for my combinations. The procedure i use is that I upload the Product CSV (including referenced pictures) then the Combinations. Besides the other issues I have with combinations which I've previously posted about, the issue I'm having now is how to associate the picture to the combos without having to manually check them all off (as in the attached picture)

Thanks in advance

39401_NtidCNarlSRaFhHID3cO_t

Link to comment
Share on other sites

I have exactly same problem. My product comes in different colors but when I choose from dropdown list specific color it won't show any pictures because none of combinations are associated with images.
Is there any way to do that through import?

Associating each combination with specific image through admin panel would be nightmare.

Thank you for your reply.

Link to comment
Share on other sites

  • 1 month later...

Hi Forfun,

I figured out a way to do it. Open phpMyAdmin and run this command:

TRUNCATE `ps_product_attribute_image`;
INSERT INTO `ps_product_attribute_image` SELECT `id_product_attribute`, `id_image` FROM `ps_product_attribute` pa LEFT JOIN `ps_image` i ON (pa.`id_product` = i.`id_product`);


This will associate all pictures to all combos. If you've manually already done some this will write over any data that
's already in that table.

Hope this helps.

Link to comment
Share on other sites

  • 2 months later...

Actually this command is not assigning individual picture/image to individual combinations.
If you have upload your combinations via csv by running this command you assign all pictures to all the combinations.

Link to comment
Share on other sites

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...