presty Posted August 16, 2012 Share Posted August 16, 2012 (edited) Hi, I'm developing a simple module to be able to add multiple products from a table to the cart via ajax. Right now, I have a jquery .each() iterator that process all the rows from a table. Each row contains one product. Inside the .each() function I have this call: // use the PS ajaxCart function, from ajax-cart.js ajaxCart.add( idProduct, idCombination, addedFromProductPage, callerElement, quantity, wishlist ); The problem is that the ajax-cart works randomly, and many times it adds the product to the cart but displays the following error as an alert: TECHNICAL ERROR: unable to add the product. Details: Error thrown: [object Object] Text status: error The "random errors" appear more frequently when the table contains many products (>5). Has someone faced a similar problem with the ajax-cart.add() function? Edited August 16, 2012 by presty (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