mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-24 06:06:06 +03:00
Update apihelper.php
Add export option in crm
This commit is contained in:
parent
72919a236b
commit
292cf1487c
@ -122,6 +122,16 @@ class ApiHelper
|
||||
$orderProducts = isset($data['products']) ? $data['products'] : $data['order_product'];
|
||||
|
||||
foreach ($orderProducts as $product) {
|
||||
$properties = array();
|
||||
if(isset($product['option']) && count($product['option']) > 0){
|
||||
foreach ($product['option'] as $option) {
|
||||
$properties[]=array(
|
||||
"code" =>$option['product_option_id']
|
||||
,"name" =>$option['name']
|
||||
,"value"=>$option['value']
|
||||
);
|
||||
}
|
||||
}
|
||||
$order['items'][] = array(
|
||||
'productId' => $product['product_id'],
|
||||
'productName' => $product['name'],
|
||||
|
Loading…
Reference in New Issue
Block a user