配送方式程序显示问题

2016-07-07 15:30 来源:www.chinab4c.com 作者:ecshop专家

桔子 超级版主,快来一下呀

回答:
打开myship.php

查找到以下代码
else
{
$choose['country'] = isset($_POST['country']) ? $_POST['country'] : $_CFG['shop_country'];
$choose['province'] = isset($_POST['province']) ? $_POST['province'] : 2;
$choose['city'] = isset($_POST['city']) ? $_POST['city'] : 35;
$choose['district'] = isset($_POST['district']) ? $_POST['district'] : 417;

把2,35分别改成 网店省份,网店城市
如下
else
{
$choose['country'] = isset($_POST['country']) ? $_POST['country'] : $_CFG['shop_country'];
$choose['province'] = isset($_POST['province']) ? $_POST['province'] : $_CFG['shop_province'];
$choose['city'] = isset($_POST['city']) ? $_POST['city'] : $_CFG['shop_city'];
$choose['district'] = isset($_POST['district']) ? $_POST['district'] : 417;

这样解决是应该是权宜之计,现在网店正常了

  1. $choose['country'] = isset($_POST['country']) ? $_POST['country'] : $_CFG['shop_country'];
  2. $choose['province'] = isset($_POST['province']) ? $_POST['province'] :$_CFG['shop_province'];
  3. $choose['city'] = isset($_POST['city']) ? $_POST['city'] :$_CFG['shop_city'];
  4. $choose['district'] = isset($_POST['district']) ? $_POST['district'] : 417;
复制代码

配送重复了,是否有同一个配送方式,设置了多个配送区域,而且有些配送区域重复了,重新编辑下配送区域就可以了

3#正解