福州网站建设>网站新闻>php技术

ecshop怎么添加新的配送方式插件

发布日期:2017-12-20浏览次数:964 来源:福州网站建设

====方法很简单,大概的操作步骤以下几条=============

步骤1.打开includesmodulesshipping文件夹,把sto_express.php复制多一份,重名为tt_express.php;

步骤2.打开tt_express.php,ctrl+F调出“查找替换框”将所有“sto_express.php”替换成“tt_express.php” ,所有“申通快递”替换成“天天快递”;(有图片在部修改)

步骤3.打开languageszh_cnshipping文件夹,把sto_express.php复制多一份,重命名为tt_express.php;

步骤4.再将打开我们重命名好的tt_express.php,ctrl+F调出“查找替换框”将所有“sto_express.php”替换成“tt_express.php” ,所有“申通快递”替换成“天天快递”;(说明:步骤3.4是创建中文语言包,如果需要创建英文和繁体的语言包,请自行打开languagesen_usshipping和languageszh_twshipping进行步骤3.4的操作)

还需再修改:第16行:$_LANG['sto_express']            = '申通快递';
 
改为:$_LANG['tt_express']            = '韵达快递';

步骤5.Includes/inc_c**tant.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 emplatesshipping_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' }

步骤7. 进入后台更新网站缓存,完成插件添加。

以上是由福州网站建设的小编为你分享了"ecshop怎么添加新的配送方式插件"文章,如果你在这方面有什么问题,随时联系我们

php技术有关的文章
如果您有什么问题,欢迎咨询我们客服! 点击QQ咨询