在Magento应用程序中,我们使用Fedex进行发货。我们提供以下允许的方法:
1. Home Delivery
2. Express Saver
3. 2Day
3. 2Day AM
4. Standard Overnight
显示正确。
但是现在我们要显示no。送货上门和快递服务所需的天数,即我们希望显示:
1. Home Delivery (2 - 3 Working Days)
2. Express saver (1 - 2 Working Days)
我们怎么做?
答案 0 :(得分:2)
转到 app / code / core / Mage / Usa / Model / Shipping / Carrier / Fedex.php
第738行,你已经拥有了所有的方法和标签。
$codes = array(
'method' => array(
'EUROPE_FIRST_INTERNATIONAL_PRIORITY' => Mage::helper('usa')->__('Europe First Priority'),
'FEDEX_1_DAY_FREIGHT' => Mage::helper('usa')->__('1 Day Freight'),
'FEDEX_2_DAY_FREIGHT' => Mage::helper('usa')->__('2 Day Freight'),
'FEDEX_2_DAY' => Mage::helper('usa')->__('2 Day'),
'FEDEX_2_DAY_AM' => Mage::helper('usa')->__('2 Day AM'),
'FEDEX_3_DAY_FREIGHT' => Mage::helper('usa')->__('3 Day Freight'),
'FEDEX_EXPRESS_SAVER' => Mage::helper('usa')->__('Express Saver'),
'FEDEX_GROUND' => Mage::helper('usa')->__('Ground'),
'FIRST_OVERNIGHT' => Mage::helper('usa')->__('First Overnight'),
'GROUND_HOME_DELIVERY' => Mage::helper('usa')->__('Home Delivery'),
'INTERNATIONAL_ECONOMY' => Mage::helper('usa')->__('International Economy'),
'INTERNATIONAL_ECONOMY_FREIGHT' => Mage::helper('usa')->__('Intl Economy Freight'),
'INTERNATIONAL_FIRST' => Mage::helper('usa')->__('International First'),
'INTERNATIONAL_GROUND' => Mage::helper('usa')->__('International Ground'),
'INTERNATIONAL_PRIORITY' => Mage::helper('usa')->__('International Priority'),
'INTERNATIONAL_PRIORITY_FREIGHT' => Mage::helper('usa')->__('Intl Priority Freight'),
'PRIORITY_OVERNIGHT' => Mage::helper('usa')->__('Priority Overnight'),
'SMART_POST' => Mage::helper('usa')->__('Smart Post'),
'STANDARD_OVERNIGHT' => Mage::helper('usa')->__('Standard Overnight'),
'FEDEX_FREIGHT' => Mage::helper('usa')->__('Freight'),
'FEDEX_NATIONAL_FREIGHT' => Mage::helper('usa')->__('National Freight'),
),
因此,对于Express Saver,它将是:
=> Mage::helper('usa')->__('Express saver (1 - 2 Working Days)'),
答案 1 :(得分:0)
如果您正在使用网络服务,您可以进行“费率报价”交易,并且您应该获得该地址返回的邮政编码的时间,当然“快递服务”是自我解释的。希望这会有所帮助。