ecshop默認(rèn)添加新商品后默認(rèn)為“上架”狀態(tài),出于某種考慮,可讓新添加商品后默認(rèn)為“下架”狀態(tài),在后臺(tái)預(yù)覽滿意后,再批量上架。
查找/admin/goods.php
$goods = array(
'goods_id' => 0,
'goods_desc' => '',
'cat_id' => $last_choose[0],
'brand_id' => $last_choose[1],
'is_on_sale' => '1',
'is_alone_sale' => '1',
'is_shipping' => '0',
'other_cat' => array(), // 擴(kuò)展分類
'goods_type' => 0, // 商品類型
'shop_price' => 0,
'promote_price' => 0,
'market_price' => 0,
'integral' => 0,
'goods_number' => $_CFG['default_storage'],
'warn_number' => 1,
'promote_start_date' => local_date('Y-m-d'),
'promote_end_date' => local_date('Y-m-d', local_strtotime('+1 month')),
'goods_weight' => 0,
'give_integral' => -1,
'rank_integral' => -1
);
修改為
$goods = array(
'goods_id' => 0,
'goods_desc' => '',
'cat_id' => $last_choose[0],
'brand_id' => $last_choose[1],
'is_on_sale' => '0', //默認(rèn)為“下架”狀態(tài)
'is_alone_sale' => '1',
'is_shipping' => '0',
'other_cat' => array(), // 擴(kuò)展分類
'goods_type' => 0, // 商品類型
'shop_price' => 0,
'promote_price' => 0,
'market_price' => 0,
'integral' => 0,
'goods_number' => $_CFG['default_storage'],
'warn_number' => 1,
'promote_start_date' => local_date('Y-m-d'),
'promote_end_date' => local_date('Y-m-d', local_strtotime('+1 month')),
'goods_weight' => 0,
'give_integral' => -1,
'rank_integral' => -1
);
新聞熱點(diǎn)
疑難解答
圖片精選