Jump to content

Ajax not working on product page


Recommended Posts

You are having javascript errors, see attached image

 

Thanks!

 

I don’t know why I had that error, I didn’t change anything on that file.

 

Anyway, if it helps someone, I just deleted this code:

if (typeof minimalQuantity != 'undefined' && minimalQuantity)
{
	checkMinimalQuantity();
	$(document).on('keyup', 'input[name=qty]', function(e){
		checkMinimalQuantity(minimalQuantity);
	});
}

Because I don’t use minimal quantities on my shop, and it worked again.

 

Thanks again!!

Link to comment
Share on other sites

each product page function works now well?

deleting code is not the best way to "fix" things, because you can affect other stuff

it's worth to intensively test product page

 

Yes, know they are all working fine. 

 

The file is from default-bootstrap theme and I didn't change anything on it before, so I don't know why it's happening.

 

If you have any other idea I can try..

 

Thanks!

Link to comment
Share on other sites

×
×
  • Create New...