Jump to content

 

necmettin

Member Since 18 Jun 2015
Offline Last Active Jul 08 2015 08:11 AM
-----

#221754 Api: Products: New Product: Add Images

Posted by necmettin on 06 July 2015 - 11:57 AM

array (content explained below)

This part is confusing because there is no 'below', no indentation.

I have managed to have the main image created, but not the secondary images.

Here is the current data I'm sending:
Array
(
[product] => test - xxx
[main_category] => 221
[price] => 22.22
[list_price] => 22.22
[amount] => 500
[full_description] => adsa
[company_id] => 1
[category_ids] => Array
(
[0] => 221
)
[lang_code] => tr
[product_features] => Array
(
[18] => Array
(
[feature_id] => 18
[feature_code] =>
[company_id] => 1
[feature_type] => E
[parent_id] => 0
[display_on_product] => N
[display_on_catalog] => N
[display_on_header] => Y
[description] => Marka
[lang_code] => tr
[prefix] =>
[suffix] =>
[categories_path] =>
[full_description] =>
[status] => A
[comparison] => N
[position] => 0
[variant_id] => 146
)

)

[main_pair] => Array
(
[detailed] => Array
(
[http_image_path] => http://192.168.1.50/...18-77822800.jpg
[image_path] => http://192.168.1.50/...18-77822800.jpg
)

)

[image_pairs] => Array
(
[0] => Array
(
[detailed] => Array
(
[http_image_path] => http://192.168.1.50/...39-15438300.jpg
[image_path] => http://192.168.1.50/...39-15438300.jpg
)

)

)

)

The image is there, made sure of it; main pair is downloaded into Cscart, everything is updated; but the image_pairs are not processed. It says image pair ID must be the key, but does not mention what must be done when the image pair is new. The representation above says key 0 but in actuality there are no keys there. I tried to read the code but too complex for me.