spott Posted August 1, 2009 Share Posted August 1, 2009 Hi in v1.2 I have now second problem - shipping price is calculated by default carrier, but default carrier is not checked during check out for the costumer. Why?Before it works fine - now is checked the last carrier. Link to comment Share on other sites More sharing options...
peej Posted August 8, 2009 Share Posted August 8, 2009 Hi in v1.2 I have now second problem - shipping price is calculated by default carrier, but default carrier is not checked during check out for the costumer. Why?Before it works fine - now is checked the last carrier. I can confirm as I have the same problem. /PJ Link to comment Share on other sites More sharing options...
octover Posted October 19, 2009 Share Posted October 19, 2009 I think I've tracked where the problem is, but not 100% sure how to fix it.in themes/$theme/order-carrier.tpl <input type="radio" name="id_carrier" value="{$carrier.id_carrier|intval}" id="id_carrier{$carrier.id_carrier|intval}" {if $carrier.id_carrier == $checked || ($checked == 0 && $i == 0) || ($carriers|@sizeof == 1)}checked="checked"{/if} /> It seems that in order.php the default carrier isn't set properly when one hasn't been chosen and so every carrier input radio gets checked="checked" put into it, resulting in the last carrier and not the default carrier in 1.2.4.0 to be selected. Link to comment Share on other sites More sharing options...
octover Posted October 19, 2009 Share Posted October 19, 2009 changing order.php line 364 fixed it for me } - if (!isset($checked)) + if (!isset($checked) || intval($checked) == 0) $checked = intval(Configuration::get('PS_CARRIER_DEFAULT')); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now