|
@@ -298,7 +298,7 @@ class product_importer
|
|
$general['goods_vat'] = strtolower($item['has_invoice']) ? 1 : 0;
|
|
$general['goods_vat'] = strtolower($item['has_invoice']) ? 1 : 0;
|
|
$general['is_virtual'] = strtolower($item['is_virtual']) ? 1 : 0;
|
|
$general['is_virtual'] = strtolower($item['is_virtual']) ? 1 : 0;
|
|
$general['store_name'] = $item['nick'];
|
|
$general['store_name'] = $item['nick'];
|
|
- $general['goods_serial'] = not_null($item['outer_id']);
|
|
|
|
|
|
+ $general['goods_serial_tm'] = not_null($item['outer_id']);
|
|
$general['goods_addtime'] = strtotime($item['created']);
|
|
$general['goods_addtime'] = strtotime($item['created']);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -463,7 +463,7 @@ class product_importer
|
|
$goods = $general;
|
|
$goods = $general;
|
|
|
|
|
|
$goods['goods_edittime'] = strtotime($item['modified']);
|
|
$goods['goods_edittime'] = strtotime($item['modified']);
|
|
- $goods['goods_serial'] = not_null($item['outer_id']);
|
|
|
|
|
|
+ $goods['goods_serial_tm'] = not_null($item['outer_id']);
|
|
$goods['goods_price'] = $item['price'];
|
|
$goods['goods_price'] = $item['price'];
|
|
$goods['goods_addtime'] = strtotime($item['created']);
|
|
$goods['goods_addtime'] = strtotime($item['created']);
|
|
$goods['goods_storage'] = empty($item['quantity']) ? 0 : $item['quantity'];
|
|
$goods['goods_storage'] = empty($item['quantity']) ? 0 : $item['quantity'];
|
|
@@ -493,7 +493,7 @@ class product_importer
|
|
$goods['goods_spec'] = serialize($goods_spec);
|
|
$goods['goods_spec'] = serialize($goods_spec);
|
|
$goods['goods_image'] = $main_pic;
|
|
$goods['goods_image'] = $main_pic;
|
|
$goods['color_id'] = $this->goods_colorid($cid,$sku['properties']);
|
|
$goods['color_id'] = $this->goods_colorid($cid,$sku['properties']);
|
|
- $goods['goods_serial'] = not_null($sku['outer_id']);
|
|
|
|
|
|
+ $goods['goods_serial_tm'] = not_null($sku['outer_id']);
|
|
|
|
|
|
|
|
|
|
$gd_id = $this->mod_goods->addGoods($goods);
|
|
$gd_id = $this->mod_goods->addGoods($goods);
|