1
0
mirror of synced 2025-02-22 09:53:13 +03:00

fixed retailcrm-order-item

This commit is contained in:
Frosin 2019-09-18 13:13:07 +03:00
parent f698e1c7b2
commit 2358e0ec0a

View File

@ -23,7 +23,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
'offer' => array(), 'offer' => array(),
'productName' => '', 'productName' => '',
'initialPrice' => 0.00, 'initialPrice' => 0.00,
'quantity' => 0 'quantity' => 0.0
); );
/** /**
@ -53,7 +53,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
$data['productName'] = $item['name']; $data['productName'] = $item['name'];
$data['initialPrice'] = (float)$price; $data['initialPrice'] = (float)$price;
$data['quantity'] = $item['qty']; $data['quantity'] = (double)$item['qty'];
$this->set_data_fields($data); $this->set_data_fields($data);
$this->set_offer($item); $this->set_offer($item);
@ -126,7 +126,7 @@ class WC_Retailcrm_Order_Item extends WC_Retailcrm_Abstracts_Data
'offer' => array(), 'offer' => array(),
'productName' => '', 'productName' => '',
'initialPrice' => 0.00, 'initialPrice' => 0.00,
'quantity' => 0 'quantity' => 0.0
); );
} }
} }