A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 源码技巧 > Ecshop > 修改ecshop后台添加新商品后默认不上架

修改ecshop后台添加新商品后默认不上架

时间:2015-07-20 11:45作者:fang人气:33

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,后台,添加,新商品,商品,默认,上架,e

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

公众号