关于在ecshop后台加产品默认非上架状态
2016-09-11 20:39 来源:www.chinab4c.com 作者: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
- );
最近更新
常用插件
- ecshop2.7.1邮件发送插件
ecshop2.7.1邮件发送插件:该插件主要的开发思想是源于ecshop短信发送系统...
- ecshop二次开发商品购买增
图片1香...
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop最小购买数量控制插
ecshop最小购买数量控制插件,这个插件主要是为我们提供一个十分方便...
- ecshop2.7.2生成虚拟订单2.
以前我们开发过ecshop下的虚拟订单,就是客户在访问的时候,会自动生...
ecshop热门问答
ecshop热门资料
ecshop组成
ecshop选购中心
ecshophome
ecshop3个星号
ecshop问卷调查
ecshop页面
ecshopvancl
ecshop无法连接
ecshop经常
ecshopVPS主机
ecshop邮费
ecshop插入flsh
ecshopie6
ecshopelement
ecshop机器
ecshopEcshop图片上传问题
ecshop可以
ecshopexecution
ecshop韵达速递
ecshop发布
ecshop登录方式
ecshop信用
ecshop购买记录缩写
ecshopcard
ecmall管理员
ecshop小女子
ecshoprul重写
ecshopwithin
ecshop饮食
ecshopFastCGI