Jump to content
Sign in to follow this  
Moxamint

How to automatically select the the first shipping method if no shipping method has been selected

Recommended Posts

Hi All,

If shipping method has not yet been selected, how do I make the method with least sort order of display (the first shipping method) automatically selected?

Currently the system would use the cheapest method.  Thank you in advance if you can give me a hint.

Cheers, Eddy

Share this post


Link to post
Share on other sites

The new code works as expected.  Thank you very much!  Since get_first() will replace cheapest() in the core checout_shipping.php, does it means you do not consider cheapest() being a reasonable default?

Cheers, Eddy

Edited by Moxamint

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×