|
@@ -150,6 +150,7 @@ function __construct(){
|
|
|
$row_total = [];
|
|
|
$tax_amount = [];
|
|
|
$discount_amount = [];
|
|
|
+ $product_ids = [];
|
|
|
foreach($v['line_items'] as $key=>$val)
|
|
|
{
|
|
|
$productNames .= ($key > 0)?','.$val['title']:$val['title'];
|
|
@@ -160,6 +161,7 @@ function __construct(){
|
|
|
// $row_total[] = $val['price'];
|
|
|
// $tax_amount[] = 0;
|
|
|
// $discount_amount[] =$val['total_discount'];
|
|
|
+ $product_ids[] = $val['product_id'];
|
|
|
|
|
|
}
|
|
|
if(strpos($v['name'],"#M-") !== false){
|
|
@@ -365,6 +367,7 @@ function __construct(){
|
|
|
// 'row_total'=>implode(",",$row_total),
|
|
|
// 'tax_amount'=>implode(",",$tax_amount),
|
|
|
// 'discount_amount'=>implode(",",$discount_amount),
|
|
|
+ 'product_ids' => implode(",",$product_ids),
|
|
|
'sku' => $skus,
|
|
|
'order_quantity' => $quantity,
|
|
|
'order_comment' => $khbz.addslashes($v['note']),//客户备注
|