Auto select shipping option when only 1 option available

For articles specific to version 5.x
Post Reply
Tony Barnes
Posts: 744
Joined: Thu Jun 18, 2009 8:59 am

Auto select shipping option when only 1 option available

Post by Tony Barnes »

We only have 1 shipping option, so up until now you would have to click the radio button, then click continue. After a phone call today where a lady couldn't figure this out, it may be costing us some sales, so put in a very quick and easy change.

Copy templates/_master/snippets/ExpressCheckoutShippingMethod.html to your default folder, open it up, change it to this:
<li>
<label id="shippingMethod_%%GLOBAL_VendorId%%_%%GLOBAL_AddressId%%_%%GLOBAL_ShippingQuoteId%%"><input type="radio" name="selectedShippingMethod[%%GLOBAL_VendorId%%][%%GLOBAL_AddressId%%]" id="shippingCheck_%%GLOBAL_VendorId%%_%%GLOBAL_AddressId%%" value="%%GLOBAL_ShippingQuoteId%%" checked/> <span class="ShipperName">%%GLOBAL_ShipperName%%</span> %%GLOBAL_TransitTime%% <em class="ShipperPrice ProductPrice">%%GLOBAL_ShippingPrice%%</em></label>
</li>
Basically all you're doing is adding "checked" to the <input>

Do the same for ShippingProviderItem.html (i.e. put "checked" in the <input> label, file contents are different!) and you've sorted multi-page checkout too.

Simple as that :D
CharlieFoxtrot
Confirmed
Confirmed
Posts: 413
Joined: Sun Aug 09, 2009 1:23 pm

Re: Auto select shipping option when only 1 option available

Post by CharlieFoxtrot »

Brilliant!

(Timid customers are indeed frustrating.)
ISC 4.0.7

"... and let's be honest that whole "by design" thing is getting old too."
wtodd
Posts: 10
Joined: Mon May 17, 2010 7:09 pm

Re: Auto select shipping option when only 1 option available

Post by wtodd »

Helped me also - thanks
bus del cu
Posts: 58
Joined: Wed May 05, 2010 3:01 pm

Re: Auto select shipping option when only 1 option available

Post by bus del cu »

Many thanks for this. Very helpful indeed.
If Micro$oft made cars you would have to buy a new one every time they repainted the lines in the road.
Post Reply