Jump to content

need help with error in opc


Recommended Posts

hi,
 
i am using ps 1.5.4.1, default theme but customized by me and i have noticed i have this error in cart-summary.js (line 223):
 
with mozzila:
TypeError: line.attr(...) is undefined

 

...ass('address_' + id_address_delivery).find('span[id^=cart_quantity_custom_], spa...

 
with chrome:
Uncaught TypeError: Cannot call method 'replace' of undefined
 
line.attr('id', line.attr('id').replace(/_\d+$/, '_' + id_address_delivery)).removeClass('address_' + old_id_address_delivery).addClass('address_' + id_address_delivery).find('span[id^=cart_quantity_custom_], span[id^=total_product_price_], input[name^=quantity_], .cart_quantity_down, .cart_quantity_up, .cart_quantity_delete').each(function(){
        if (typeof($(this).attr('name')) != 'undefined')
            $(this).attr('name', $(this).attr('name').replace(/_\d+(_hidden|)$/, '_' + id_address_delivery));
        if (typeof($(this).attr('id')) != 'undefined')
            $(this).attr('id', $(this).attr('id').replace(/_\d+$/, '_' + id_address_delivery));
        if (typeof($(this).attr('href')) != 'undefined')
            $(this).attr('href', $(this).attr('href').replace(/id_address_delivery=\d+/, 'id_address_delivery=' + id_address_delivery));
    });

 
how does it manifest:
when a customer is logging in from opc page his address and his billing address are not shown, but if i refresh the page everything is fine
 
any suggestion?
 
Edited by sooroos (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...