在ecshop后台加产品默认非上架状态
ecshop默许增加新商品后默许为“上架”状况,出于某种思考,可让新增加商品后默许为“下架”状况,在后台预览满足后,再批量上架。
查找/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(), // 扩大分类 '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', //默许为“下架”状况 'is_alone_sale' => '1', 'is_shipping' => '0', 'other_cat' => array(), // 扩大分类 '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 );
下一篇: 屏蔽ecshop云提示no_license 上一篇: 处理ecshop忘记超级管理的又一快捷方法
赞 (0)