Jump to content



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

Topics I've Started

I Am Getting Issue While Creating "brand" Feature In Cs Cart Using Cs Cart Api

05 October 2017 - 08:16 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

Brand List And Vat

04 October 2017 - 08:15 PM

I am using cs cart api and I am adding brands to "Brand" list, PLease let me know how to add new brand in the list using api as I have tried with the cs cart api documentation but it is not properly documentated which let me know, how to add brands in "Brand" list. And other features into the dropdown list of particular product and also "VAT" option checked using api.
The coding language I am using is PHP
Please help me to sort the issue