mario.schillermann Posted March 10, 2017 Share Posted March 10, 2017 (edited) XHR finished loading: POST "http://my-shop.local/admin181knv5c0/index.php?controller=AdminCarts&token=46327d921ecb274f7cdab7d50b565cba" send @ jquery-1.11.0.min.js:4 ajax @ jquery-1.11.0.min.js:4 duplicateOrder @ index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1232 (anonymous) @ index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1025 dispatch @ jquery-1.11.0.min.js:3 r.handle @ jquery-1.11.0.min.js:3 jquery-1.11.0.min.js:2 Uncaught TypeError: Cannot read property 'length' of undefined at Function.each (jquery-1.11.0.min.js:2) at Object.<anonymous> (index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1591) at Function.each (jquery-1.11.0.min.js:2) at updateCartProducts (index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1579) at displaySummary (index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1664) at Object.success (index.php?controller=AdminOrders&addorder&token=9d8bf3a…:1249) at j (jquery-1.11.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2) at x (jquery-1.11.0.min.js:4) at XMLHttpRequest.b (jquery-1.11.0.min.js:4) function updateCartProducts(products, gifts, id_address_delivery) { ... $.each(this.customized_datas[this.id_product][this.id_product_attribute][id_address_delivery], function() { ... } ... } In my example the id_address_delivery is 50. The address id is correct, but my object has the index number 0. So here is the bug and problem with customize fields in the products. How can i fix the problem? Edited March 10, 2017 by mario.schillermann (see edit history) 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