Jump to content

Can't assign more than one image to a combination importing CSV


Recommended Posts

Hi all,

 

I'm having problems importing the combinations from CSV.

 

I've loaded all my photo product in the product CSV, now I want to assign these photos to the combination product, but:

 

- if I write a list of number like: 1, 2, 4, 8 . Is assigned only the first image to the combination product.

- if I repeat the combination product each with a different image position, it takes only the last.

 

I've tried to understand how is working in AdminImportController.php but I can't find where it saves the images.

 

 

Another test is:

 

I've assigned in the BO more images to one combination product. I've checked in the ps_product_attribute_image table to understand how it saves the images associated to the same combination. I've found that it just create more row with same id_product_attribute.

 

So seems that when importing CSV the system overwrite the images instead of insert more.

 

Anyone can help me if I'm doing wrong?

This problems just driving me crazy.

 

Thanks in advance

Ale

Link to comment
Share on other sites

Hi kirikou,

 

I've looked at your link but I think that it's not a solution for my problem.

 

I'm using Prestashop 1.5.2, I'm able to create the attributes and combination, but I can't assign more than one image to each combination.

 

Ale

Link to comment
Share on other sites

I can't believe that anyone have had this problem.

 

I've to sell t-shirt.

 

Different color, different size and different model.

 

I create the product CSV with the different models.

 

Then I create the combination CSV for colors and size.

 

But I want to assign 4 photos for each combination to see different color when is selected.

 

Prestashop doesn't give anything to make this? is it possible that it can associate only one image?

 

I've to manage 1000 combinations I can't make it by hand.

 

Please help.

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 9 months later...

Sorry andrew_fisher I don't have much time in this period. To solve the problem you have to insert in the CSV file the position of the image not the url. So you load the images in the product than link each combination to them using the position of the image in the CSV.

 

Ale

Link to comment
Share on other sites

ok so:

load all the images in product import ( not in combination import)

use the position in combination.csv..but this field is supposed to be a single value, not an array right? here comes the coding I guess...(?) as you mentioned in your first post here I was trying to see where in this file AdminImportController.php it's possible to treat these fields as an array instead of a single value...but no luck so far

 

if I want for the combination [color:red - size:35],[color:red - size:36], etc to show a group of 4 images I should be able to use [1,2,3,4] in the 'image position' fields and than [5,6,7,8] at the change of color...but it does'nt looks like it can work this way.

 

we've also purchased a module which I don't recommend since it's not working...
( http://addons.prestashop.com/en/bulk-update-prestashop-modules/3535-products-and-combinations-manager.html )

 

Thanks for your time if you can still give me  a little boost ...I'm in HUGE HUGE  troubles........

Edited by andrew_fisher (see edit history)
Link to comment
Share on other sites

Hi ALE,

I did exactly that procedure...

-product import is ok, with all the images in places

-all the combinations are created leaving the 'image field' blank OK

-but only the first of the set is checked and showed in frot-end as default image for the color combination, not the 4 I used (1,2,3,4)(5,6,7,8) etc

you can see it here: http://bortoli.cinqueterre.com/donna/1002-1002-scarpa-elegante-tacco-23456.html

...any idea ? or...are we making something wrong ( after one month of attempts I'm getting crazy)
 

screenshot.jpg

Link to comment
Share on other sites

  • 4 weeks later...

I have the same problem with this!!

 

 

 

Hi ALE,

I did exactly that procedure...

-product import is ok, with all the images in places

-all the combinations are created leaving the 'image field' blank OK

-but only the first of the set is checked and showed in frot-end as default image for the color combination, not the 4 I used (1,2,3,4)(5,6,7,8) etc

you can see it here: http://bortoli.cinqueterre.com/donna/1002-1002-scarpa-elegante-tacco-23456.html

...any idea ? or...are we making something wrong ( after one month of attempts I'm getting crazy)
 

screenshot.jpg

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...