sooroos Posted September 2, 2013 Share Posted September 2, 2013 (edited) 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 cart-summary.js (line 223) looks like: 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 September 2, 2013 by sooroos (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 2, 2013 Share Posted September 2, 2013 Hi there! Well, it seems that the object stored in 'line' is missing the id attribute, can you find out what that object is? You might have removed that attribute by accident Link to comment Share on other sites More sharing options...
sooroos Posted September 2, 2013 Author Share Posted September 2, 2013 (edited) thanks for you answer how can i find what that object is? as an alternative solution i will disable that login box from opc, since a customer can log in from header account block Edited September 2, 2013 by sooroos (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts