Jump to content



Member Since 04 Oct 2017
Offline Last Active Oct 08 2017 11:43 PM

Posts I've Made

In Topic: Brand List And Vat

05 October 2017 - 05:37 AM


I am getting issue while creating "Brand" feature in cs cart using cs cart API

I am using like below

$URL= http://example.com/api/products/250

$data = '{"product_features": {"28": {"feature_type": "E", "value": "test"}}}';

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $URL);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

curl_setopt($ch, CURLOPT_POST, TRUE);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");

curl_setopt($ch, CURLOPT_POSTFIELDS,$data);

curl_setopt($ch, CURLOPT_HTTPHEADER,$header);

// curl_setopt($ch, CURLOPT_HEADER,true);



$re = json_decode($result,true);


I am getting "product_id" in response but no feature is adding. I have checked the feature id again and it is ok. Please help me to sort the issue

Thanks in advance