1

在 Magento 应用程序中,我们使用 Fedex 进行运输。我们提供以下允许的方法:

1. Home Delivery
2. Express Saver
3. 2Day
3. 2Day AM
4. Standard Overnight

它显示正确。

但是现在我们要显示编号。Home Delivery 和 Express Saver 所需的天数,即我们希望显示:

1. Home Delivery (2 - 3 Working Days)
2. Express saver (1 - 2 Working Days)

我们应该怎么做?

4

2 回答 2

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)'),
于 2013-08-29T13:44:33.017 回答
0

如果您使用网络服务,您可以进行“报价”交易,并且您应该在运输途中获得返回地面的邮政编码的时间,当然“快递服务”是自我解释的。希望这可以帮助。

于 2013-06-10T20:19:58.660 回答