Below the code i have t0 create a product via api
$data = array(
'product' => $product,
'category_ids' => $cat->category_id,
'main_category' => $cat->category_id,
'price' => $row["RRP"],
'list_price' => $row["RRP"],
'tax_ids' => array(
$row["VAT"]
),
'company_id' => 1,
'status' => 'A',
'amount' => $row["StockQty"],
'product_code' => $row["SKU"],
'product_features' => array(
'1' => $row["UnitPrice"],
'2' => $brandmain
),
);
Product_feautures 2 is a type -> Select box:Brand/Manufacturer
The data of product_feature is inserting good.
But the data of $brandmain is not set in cs-cart. How can i adjust this to work?