ecmall系统设置是,开店后上传商品的前提必须是选择了支付方式和配送方式:如果你的网站仅仅只是让商家展示自己商品而已,开启支付方式和配送方式就没有必要了。 下面我教大家实
ecmall系统设置是,开店后上传商品的前提必须是选择了支付方式和配送方式:如果你的网站仅仅只是让商家展示自己商品而已,开启支付方式和配送方式就没有必要了。
下面我教大家实现不选择这两种方式也能发商品:
找到 app/my_goods.app.php
1540行左右!
检测支付方式:
$payment_mod =& m('payment');
$payments = $payment_mod->get_enabled($this->_store_id);
if (empty($payments))
{
$this->show_warning('please_install_payment', 'go_payment', 'index.php?app=my_payment');
return false;
}
检测配送方式:
$shipping_mod =& m('shipping');
$shippings = $shipping_mod->find("store_id = '{$this->_store_id}' AND enabled = 1");
if (empty($shippings))
{
$this->show_warning('please_install_shipping', 'go_shipping', 'index.php?app=my_shipping');
return false;
}
上面已经标明,自己选择是否删除吧!
下面我教大家实现不选择这两种方式也能发商品:
找到 app/my_goods.app.php
1540行左右!
检测支付方式:
$payment_mod =& m('payment');
$payments = $payment_mod->get_enabled($this->_store_id);
if (empty($payments))
{
$this->show_warning('please_install_payment', 'go_payment', 'index.php?app=my_payment');
return false;
}
检测配送方式:
$shipping_mod =& m('shipping');
$shippings = $shipping_mod->find("store_id = '{$this->_store_id}' AND enabled = 1");
if (empty($shippings))
{
$this->show_warning('please_install_shipping', 'go_shipping', 'index.php?app=my_shipping');
return false;
}
上面已经标明,自己选择是否删除吧!
转载请说明出处
知优网 » ecmall申请开店时跳过选择支付方式和配送方式的方法
知优网 » ecmall申请开店时跳过选择支付方式和配送方式的方法