Page 1 of 1

Select first shipping method in list as default

PostPosted: Thu Mar 01, 2018 12:24 pm
by loppan
Hi,

I know that I have the option to set the default shipping method on my checkout page as "none", the cheapest or the most expensive one.

I would actually like to have the first shipping method on my list (set by "List Order" in VM shipping methods config) selected as default.

I used to have the most expensive option selected as default, but now I'm configuring a new shipping method that - depending on the weight - can be amongst the cheapest of my availble methods - and this is the one I want my customers to chose, because it's safe and hassle free on my part ;).

Is there a quick and dirty way to achieve this? For now I have it set to "None", it works, but I would much prefer to have the first method in my list selected instead :).

Best wishes

Peter

Re: Select first shipping method in list as default

PostPosted: Thu Apr 12, 2018 1:59 pm
by admin
hello Peter, if you are in EU, it's quite possible that it's required by law "not to preselect" any shipping or payment by default so that customer must always click a method to choose from - for this case there is the "none" which creates a new "invalid" option of "please choose a shipping method" that can be shown as radio or drop down (if tranform is used).

it's quite complicated to choose the first one since there are complex methods which may not render the code as the standard weight countries. also opc cannot know which one is the first one without calling the function to display it (and thus run "check conditions" ) if opc did this twice redering would be twice slower.

best regards, stan