Page 1 of 1

Auto select shipping option when only 1 option available

Posted: Fri Mar 05, 2010 5:44 pm
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

Re: Auto select shipping option when only 1 option available

Posted: Fri Mar 05, 2010 9:30 pm
by CharlieFoxtrot
Brilliant!

(Timid customers are indeed frustrating.)

Re: Auto select shipping option when only 1 option available

Posted: Tue Jun 08, 2010 7:06 pm
by wtodd
Helped me also - thanks

Re: Auto select shipping option when only 1 option available

Posted: Fri Jun 11, 2010 8:39 am
by bus del cu
Many thanks for this. Very helpful indeed.