magento 添加快递运送模块

本文详细介绍了如何在Magento中为国内站点添加顺丰快递方式,包括修改配置文件、数据库表结构调整以及设置运费规则等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

有时magento会做国内的站,这时就需要添加国内的快递方式,就拿顺丰举例,仿照magento自带的Table Rate 首先把这4个文件放到对应路径下 文件下载 打开app\code\core\Mage\Shipping\etc\config.xml,找到并添加如下代码
<shipping_mysql4>
<class>Mage_Shipping_Model_Mysql4</class>
<entities>
<tablerate>
<table>shipping_tablerate</table>
</tablerate>
<sf><table>shipping_sf</table></sf>
</entities>
</shipping_mysql4>
  ......
<tablerate>
   ......
</tablerate>
<sf>
<active>0</active>
<sallowspecific>0</sallowspecific>
<condition_name>package_weight</condition_name>
<include_virtual_price>1</include_virtual_price>
<model>shipping/carrier_sf</model>
<name>SF Rate</name>
<title>Best Way</title>
<specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
<handling_type>F</handling_type>
</sf>
继续打开app\code\core\Mage\Shipping\etc\system.xml
<tablerate translate="label">
                    <label>Table Rates</label>
                    ......
</tablerate>//复制这段代码,将其改成
<sf translate="label">
                    <label>顺丰快递</label>
                    ......
</sf>
最后,打开数据库,复制表shipping_tablerate改名为shipping_sf,可以试试效果了 这里有个运费表的设置问题,可参考 Magento table rates表运费设置Magento中国地区运费表设置 国际编码参考 http://zh.wikipedia.org/zh-cn/ISO_3166-1

转载于:https://my.oschina.net/liufeng815/blog/353539

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值