I have various shipping methods configured and would like to select a default one based on country of the visitor or something.
For example if the user is from Spain (Or spanish Locale) then default shipping is … and if from another country then International shipping.
Can anybody help me out here? I don't have a clue where to start.
Also I want it to be applied by default, because we have an PayPal express checkout and if I click on it without entering the cart and selecting the Shipping method from the Estimate section, the shipping cost's are not applied when Paying by PayPal… This is a problem..
Thanks,
Best Answer
You need to create your custom shipping method.
To do so, create a custom class extended from
Mage_Shipping_Model_Carrier_Abstract
, and start writing your business logic code inside overloadedcollectRates
method.You also may want to read this article.