1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Sergey 2019-09-25 17:21:47 +03:00
commit 23d2dbdd6b

View file

@ -23,7 +23,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
'offer' => array(),
'productName' => '',
'initialPrice' => 0.00,
'quantity' => 0
'quantity' => 0.00
);
/**
@ -56,7 +56,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
$data['externalId'] = $itemId . '_' . $item->get_id();
$data['productName'] = $item['name'];
$data['initialPrice'] = (float)$price;
$data['quantity'] = $item['qty'];
$data['quantity'] = (double)$item['qty'];
$this->set_data_fields($data);
$this->set_offer($item);
@ -129,7 +129,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
'offer' => array(),
'productName' => '',
'initialPrice' => 0.00,
'quantity' => 0
'quantity' => 0.00
);
}
}