|
@@ -146,12 +146,21 @@ function __construct(){
|
|
$skus = '';
|
|
$skus = '';
|
|
$quantity = '';
|
|
$quantity = '';
|
|
$thislink = '';
|
|
$thislink = '';
|
|
|
|
+ $price = [];
|
|
|
|
+ $row_total = [];
|
|
|
|
+ $tax_amount = [];
|
|
|
|
+ $discount_amount = [];
|
|
foreach($v['line_items'] as $key=>$val)
|
|
foreach($v['line_items'] as $key=>$val)
|
|
{
|
|
{
|
|
$productNames .= ($key > 0)?','.$val['name']:$val['name'];
|
|
$productNames .= ($key > 0)?','.$val['name']:$val['name'];
|
|
$skus .= ($key > 0)?','.$val['sku']:$val['sku'];
|
|
$skus .= ($key > 0)?','.$val['sku']:$val['sku'];
|
|
$quantity .= floor($val['quantity']).';';
|
|
$quantity .= floor($val['quantity']).';';
|
|
$parameters[] = $val['variant_title'];
|
|
$parameters[] = $val['variant_title'];
|
|
|
|
+ // $price[] = $val['price_set']['shop_money']['amount'];
|
|
|
|
+ // $row_total[] = $val['price'];
|
|
|
|
+ // $tax_amount[] = 0;
|
|
|
|
+ // $discount_amount[] =$val['total_discount'];
|
|
|
|
+
|
|
}
|
|
}
|
|
if(strpos($v['name'],"#M-") !== false){
|
|
if(strpos($v['name'],"#M-") !== false){
|
|
continue;
|
|
continue;
|
|
@@ -346,6 +355,10 @@ function __construct(){
|
|
'grand_total' => $v['total_price_set']['shop_money']['amount'],//币种支付金额
|
|
'grand_total' => $v['total_price_set']['shop_money']['amount'],//币种支付金额
|
|
'isstatus' => 'processing',//$v['order_status'],//默认processing待发货状态
|
|
'isstatus' => 'processing',//$v['order_status'],//默认processing待发货状态
|
|
'isparameter' => implode(';',$parameters),
|
|
'isparameter' => implode(';',$parameters),
|
|
|
|
+ // 'price'=>implode(",",$price),
|
|
|
|
+ // 'row_total'=>implode(",",$row_total),
|
|
|
|
+ // 'tax_amount'=>implode(",",$tax_amount),
|
|
|
|
+ // 'discount_amount'=>implode(",",$discount_amount),
|
|
'sku' => $skus,
|
|
'sku' => $skus,
|
|
'order_quantity' => $quantity,
|
|
'order_quantity' => $quantity,
|
|
'order_comment' => $khbz.addslashes($v['note']),//客户备注
|
|
'order_comment' => $khbz.addslashes($v['note']),//客户备注
|