How can I set my default shipping method in the shopping cart to the country where my store is?
For instance, I want to set the default shipping method to the UK when the customer are on the shopping cart page.
By Magento default, you have to select your country where you want to ship your order to. Then you have to hit the button 'Get a quote' for the 'Estimate Shipping and Tax'. But I want to skip this step by setting the default shipping method to the UK automatically when you are on this page.
Is it possible?
I tried with this code below,
$shippingAddress = $this->getQuote()->getShippingAddress(); $shippingAddress->setCountryId('UK')->setShippingMethod('tablerate_bestway')->save();
But you have to refresh the shopping cart page for a couple of times before it sets the shipping method to the UK.
I need it set the shipping method to the UK as soon as you land on the shopping cart page though, is it possible?