Jump to content

Problem when I delete items in block cart


Zet4

Recommended Posts

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.

post-180336-0-89212000-1438175652_thumb.png

Edited by Zet4 (see edit history)
Link to comment
Share on other sites

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.

:unsure:  :unsure:

 

Any help is appreciated.

 

Thanks.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...