Jump to content

Default carrier is not checked at checkout v1.2


Recommended Posts

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

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

  • 2 months later...

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

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
×
×
  • Create New...