Jump to content

 

necmettin

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

Topics I've Started

Api: Products: New Product: Add Images

02 July 2015 - 02:53 PM

Hi guys,

Trying to add product thru the API by posting to products.

I receive a product id from the API, the product is created. But the images are not pulled into Cscart and added to the products. The features are not added either but that's for another thread.

I tried to find the problem in Cscart source code, but to no avail. Too complex for me to follow.

Any ideas?
Thanks in advance guys.

Here's the array I'm sending:

Array
(
[product] => sdfsdf
[main_category] => 193
[price] => 113.27
[list_price] => 113.27
[amount] => 100
[full_description] =>
[company_id] => 1
[category_ids] => Array
(
[0] => 193
)

[features] => Array
(
[0] => Array
(
[company_id] => 1
[description] => Marka
[display_on_catalog] => Y
[display_on_product] => Y
[comparison] => Y
[value] => K&N
)

)

[main_pair] => Array
(
[http_image_path] => http://192.168.1.50/...26-33271900.jpg
[image_path] => http://192.168.1.50/...26-33271900.jpg
)
)

Create Product With Images

18 June 2015 - 09:53 AM

Hello,

I've been reading the Cs-cart API documentation (which is unfortunately very much lacking).

I'm trying to understand if it is possible to create a product with images through the API. As far as I can tell, it's not possible at the moment.

Any ideas or experience about this?