AL-DEV Posted December 7, 2012 Share Posted December 7, 2012 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 More sharing options...
kirikou3222 Posted December 7, 2012 Share Posted December 7, 2012 Hello al-dev, I've had the similar issue but I've found an article that was very useful for me: http://www.prestashopmanager.com/useful-articles/tips-tricks/tips-on-how-to-import-prestashop-attributes Read it and I will be glad to hear that you resolved your problem. Link to comment Share on other sites More sharing options...
AL-DEV Posted December 7, 2012 Author Share Posted December 7, 2012 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 More sharing options...
AL-DEV Posted December 7, 2012 Author Share Posted December 7, 2012 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 More sharing options...
AL-DEV Posted January 29, 2013 Author Share Posted January 29, 2013 I've done it, by using the image position instead of image url, and changing a bit the code to make a for loop to take all the id_image to associate. Link to comment Share on other sites More sharing options...
inercia Posted April 8, 2013 Share Posted April 8, 2013 how? please Link to comment Share on other sites More sharing options...
andrew_fisher Posted January 18, 2014 Share Posted January 18, 2014 AL-DEV...can you please help with a tip on how you did solve this problem? I've sent you also a priv. message...thanks Link to comment Share on other sites More sharing options...
AL-DEV Posted January 21, 2014 Author Share Posted January 21, 2014 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 More sharing options...
andrew_fisher Posted January 22, 2014 Share Posted January 22, 2014 (edited) 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 January 22, 2014 by andrew_fisher (see edit history) Link to comment Share on other sites More sharing options...
AL-DEV Posted January 22, 2014 Author Share Posted January 22, 2014 It doesn't needs any changes in the code. Put the array of the image position and it works. Bye Link to comment Share on other sites More sharing options...
andrew_fisher Posted January 22, 2014 Share Posted January 22, 2014 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) Link to comment Share on other sites More sharing options...
RBLD Posted February 16, 2014 Share Posted February 16, 2014 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) Link to comment Share on other sites More sharing options...
J.Sahu Posted April 24, 2014 Share Posted April 24, 2014 (edited) I'm also having same problem only one image can be assigned to a attribute. If we give more that one image url then it creates image with blank fields. Edited April 24, 2014 by J.Sahu (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts