← Back to team overview

openerp-connector-community team mailing list archive

Re: How to configure shipping methods

 

On 04/09/2014 09:04 AM, Lorenzo Battistini wrote:
> On 04/08/2014 08:50 PM, Dylan Frankland wrote:
>> Inside of your Magento installation you can look at the Models of the
>> the Shipping Methods provided.
>> I am not so sure about DHL, FedEx, UPS, and USPS because I don't use
>> them, but the other shipping methods I am quite sure of.
>>
>> app/code/core/Mage/Usa/Model/Shipping/Carrier/
>>
>>   * Dhl.php line 45
>>       o const CODE = 'dhl';
>>       o *Magento Carrier Code: dhl*
>>   * Fedex.php line 44
>>       o const CODE = 'fedex';
>>       o *Magento Carrier Code: fedex*
>>   * Ups.php line 45
>>       o const CODE = 'ups';
>>       o *Magento Carrier Code: ups*
>>   * Usps.php line 67
>>      o
>>
>>       o const CODE = 'usps';
>>       o *Magento Carrier Code: usps*
>>
>> app/code/core/Mage/Shipping/Model/Carrier/
>>
>>   * Flatrate.php
>>       o Line 40: protected $_code = 'flatrate';
>>       o Line 93: $method->setMethod('flatrate');
>>       o *Magento Carrier Code: flatrate_flatrate*
>>   * Freeshipping.php
>>       o Line 45: protected $_code = 'freeshipping';
>>       o Line 79: $method->setMethod('freeshipping');
>>       o *Magento Carrier Code: freeshipping_freeshipping*
>>   * Pickup.php
>>       o Line 33: protected $_code = 'pickup';
>>       o Line 56: $method->setMethod('store');
>>       o *Magento Carrier Code: pickup_store*
>>   * Tablerate.php
>>       o Line 40: protected $_code = 'tablerate';
>>       o Line 157: $method->setMethod('bestway');
>>       o *Magento Carrier Code: tablerate_bestway*
>>
>> Cheers,
>> Dylan
> 
> 
> Thank you Dylan
> 
> 
> 
> 

Also, note that if a code is missing or wrong, it will be created on the
fly when a sales order is imported. It is still preferable to create
them beforehand to ensure that they are configured properly (partner and
product especially).

-- 
Guewen Baconnier
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 39
Office: +41 21 619 10 10
http://www.camptocamp.com/


References