Jump to content

Estimating shipping costs... Carrier problem


Recommended Posts

Hi!

 

I already installed the Estimating shipping costs module and now im trying to get a carrier selected as default for every countries... I think the problem is in the following lines of the carriercompar.js but i don't know what exactly i need to modify to get a carrier selected as default... Here is the code:

 

if (json.length)
                {
                    for (carrier in json)
                    {
                        var html = '<tr class="'+(carrier % 2 ? 'alternate_' : '')+'item">'+
                                '<td class="carrier_action radio">'+
                                '<input type="radio" name="id_carrier" value="'+json[carrier].id_carrier+'" id="id_carrier'+json[carrier].id_carrier+'" '+(id_carrier == json[carrier].id_carrier ? 'checked="checked"' : '')+'/>'+
                                '</td>'+
                                '<td class="carrier_name">'+
                                '<label for="id_carrier'+json[carrier].id_carrier+'">'+
                                (json[carrier].img ? '<img src="'+json[carrier].img+'" alt="'+json[carrier].name+'" />' : json[carrier].name)+
                                '</label>'+
                            '</td>'+
                            '<td class="carrier_infos">'+((json[carrier].delay != null) ? json[carrier].delay : '') +'</td>'+
                            '<td class="carrier_price">';

 

 

 

Someone could help me with this? Thanks a lot!!

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...