Zet4 Posted July 29, 2015 Share Posted July 29, 2015 (edited) Hi, I have a problem when I try to delete a item in my block cart(I can delete in checkout process) but when I try to delete by ajax block cart but it is not work. Using Chrome's inspector shows where is the error and going to the line 169 I see this: // Common product management if (!customizationId) { //retrieve idProduct and idCombination from the displayed product in the block cart var firstCut = $(this).parent().data('id').replace('cart_block_product_', ''); //ERROR firstCut = firstCut.replace('deleteCustomizableProduct_', ''); ids = firstCut.split('_'); productId = parseInt(ids[0]); if (typeof(ids[1]) != 'undefined') productAttributeId = parseInt(ids[1]); if (typeof(ids[2]) != 'undefined') idAddressDelivery = parseInt(ids[2]); } The line 169 caused the problem. I try to replace this file with the file by default of Prestashop and I replaced just one part as well... but no results. Can anyone help me? Thanks. Edited July 29, 2015 by Zet4 (see edit history) Link to comment Share on other sites More sharing options...
Zet4 Posted July 30, 2015 Author Share Posted July 30, 2015 Anybody can help me? I have headache with this problem, I don't know what to check for solve. I replace chunks of code with default prestashop file ajax-cart.js, but it still not working. Any help is appreciated. Thanks. Link to comment Share on other sites More sharing options...
vekia Posted July 30, 2015 Share Posted July 30, 2015 what is the error text from your chrome? Link to comment Share on other sites More sharing options...
Zet4 Posted July 31, 2015 Author Share Posted July 31, 2015 what is the error text from your chrome? You can see in the attached file. Is point to the chunk of code I wrote, line 169. Link to comment Share on other sites More sharing options...
Zet4 Posted August 4, 2015 Author Share Posted August 4, 2015 up 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