您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程

ecshop添加配送方式的方法步骤教程

梁兴力2025-02-06 17:04:19ecshop商城教程已有人查阅

导读步骤1.打开includes\modules\shipping文件夹,把sto_express.php复制多一份,重名为tt_express.php;步骤2.打开tt_express.php,ctrl+F调出“查找替换框”将所有“sto_express.php

步骤1.打开includes\modules\shipping文件夹,把sto_express.php复制多一份,重名为tt_express.php;
步骤2.打开tt_express.php,ctrl+F调出“查找替换框”将所有“sto_express.php”替换成“tt_express.php” ,所有“申通快递”替换成“天天快递”;
步骤3.打开languages\zh_cn\shipping文件夹,把sto_express.php复制多一份,重命名为tt_express.php;
步骤4.再将打开我们重命名好的tt_express.php,ctrl+F调出“查找替换框”将所有“sto_express.php”替换成“tt_express.php” ,所有“申通快递”替换成“天天快递”(说明:步骤3.4是创建中文语言包,如果需要创建英文和繁体的语言包,请自行打开languages\en_us\shipping和languages\zh_tw\shipping进行步骤3.4的操作)
步骤5.Includes/inc_constant.php第237行加上相应如“|tt_express”
原程序为:
/* 配送方式 */
define('SHIP_LIST', 'cac|city_express|ems|flat|fpd|post_express|post_mail|presswork|sf_express|sto_express|yto|zto');
修改后程序为:
define('SHIP_LIST', 'cac|city_express|ems|flat|fpd|post_express|post_mail|presswork|sf_express|sto_express| tt_express|yto|zto');
步骤6. admin\templates\shipping_area_info.ht第12行加上相应如
“|| $shipping_area.shipping_code =='tt_express'”
原程序为:
{if $shipping_area.shipping_code =='ems' || $shipping_area.shipping_code =='yto' || $shipping_area.shipping_code =='zto' || $shipping_area.shipping_code =='sto_express' || $shipping_area.shipping_code =='post_mail' || $shipping_area.shipping_code =='sf_express' || $shipping_area.shipping_code =='post_express' }
修改后程序为:
{if $shipping_area.shipping_code =='ems' || $shipping_area.shipping_code =='yto' || $shipping_area.shipping_code =='zto' || $shipping_area.shipping_code =='sto_express' || $shipping_area.shipping_code =='post_mail' || $shipping_area.shipping_code =='sf_express' || $shipping_area.shipping_code =='tt_express' ||$shipping_area.shipping_code =='post_express' }
补充一点:
在步骤一的位置
class name1{
function name2(){}
}
name1与name2 较好与文件名一致,因为在订单-》配送方式里面会用到。

本文标签:

很赞哦! ()

留言与评论 (共有 条评论)
验证码:

本栏推荐

相关标签