sarwana Posted September 6, 2014 Share Posted September 6, 2014 Hi, I have setup Attributes e.g. Colours. I have now added new product and I have upload the images to this product. What I like to do is import combinations to my colour and assign images to these colours. I have already setup colours and upload images and also I have setup combination. How do I assign image to each colour. Please show each setup I can do to do this. I have checked the import combinations help but i dont understand it, as why its asking for all that info. Thank you in advance Link to comment Share on other sites More sharing options...
NemoPS Posted September 6, 2014 Share Posted September 6, 2014 As far as I know, the only way to do this is to click on the combinations tab in the product back office, then go through the list and modify each of theme, selecting the right images Link to comment Share on other sites More sharing options...
sarwana Posted September 6, 2014 Author Share Posted September 6, 2014 This is what I try to do but it failed. Product ID*;Attribute (Name:Type:Position)*;Value (Value:Position)*;Image URL;Delete existing images (0 = No, 1 = Yes) 15;Color:colour:0,Size:select:1;Black:0,L:1;http://domain.co.uk/img/p/2/3/9/239-cart_default.jpg;0; This is the error I get. [PrestaShopException]Property ProductSupplier->product_supplier_reference length (61) must be between 0 and 32at line 846 in file classes/ObjectModel.php 840.841. $message = $this->validateField($field, $this->$field);842. if ($message !== true)843. {844. if ($die)845. throw new PrestaShopException($message);846. return $error_return ? $message : false;847. }848. }849.850. return true; ObjectModelCore->validateFields - [line 260 - classes/ObjectModel.php] ObjectModelCore->getFields - [line 464 - classes/ObjectModel.php] ObjectModelCore->add - [line 425 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 1413 - classes/Product.php] ProductCore->addSupplierReference - [line 2125 - controllers/admin/AdminImportController.php] - [3 Arguments] AdminImportControllerCore->attributeImport - [line 3274 - controllers/admin/AdminImportController.php] AdminImportControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
sarwana Posted September 6, 2014 Author Share Posted September 6, 2014 As far as I know, the only way to do this is to click on the combinations tab in the product back office, then go through the list and modify each of theme, selecting the right images I am doing this but it just taking very long time to do this. They must be easy way to assign images to each colour. Link to comment Share on other sites More sharing options...
NemoPS Posted September 8, 2014 Share Posted September 8, 2014 For the error, you are adding a reference which is too long you can increase the value if you need, though, by modifying the ProductSupplier class as for the rest, no, that's the only way you have, without using third party modules Link to comment Share on other sites More sharing options...
musicmaster Posted September 8, 2014 Share Posted September 8, 2014 I am doing this but it just taking very long time to do this. They must be easy way to assign images to each colour. The free Triple Edit script offers a way to that faster. http://www.prestashop.com/forums/topic/185401-free-script-product-mass-edit-category-multi-edit-order-edit/ 2 Link to comment Share on other sites More sharing options...
sarwana Posted September 8, 2014 Author Share Posted September 8, 2014 The free Triple Edit script offers a way to that faster. http://www.prestashop.com/forums/topic/185401-free-script-product-mass-edit-category-multi-edit-order-edit/ This is great thank you. It works. I playing with it and if I have any problem I report it. Once again thank you for your help Link to comment Share on other sites More sharing options...
sarwana Posted September 8, 2014 Author Share Posted September 8, 2014 For the error, you are adding a reference which is too long you can increase the value if you need, though, by modifying the ProductSupplier class as for the rest, no, that's the only way you have, without using third party modules Thank you for your help. musicmaster soloution does make it easy to assign images Link to comment Share on other sites More sharing options...
Recommended Posts