I have used infinite ajax scrolling on product listing page.Its working but there are one issue.

Add to cart popup is not working after load product using infinite ajax scrolling.

Please check bellow URL:



  • I have same issue Apr 14, 2017 at 5:52
  • 1
    Can you add add to cart button code. I mean the JS code which is running after hitting the add to cart button. Apr 14, 2017 at 6:11

1 Answer 1


Please add this code to your ajax scroll function ajax call. It will work for you. Here is reference URL: Reference

$( "form[data-role='tocart-form']" ).catalogAddToCart(); 
  • TypeError: jQuery(...).catalogAddToCart is not a function
    – Magecode
    Sep 8, 2017 at 12:35
  • Same error faced TypeError: jQuery(...).catalogAddToCart is not a function Jan 24, 2019 at 15:42
  • @Jalpesh Patel, I am also facing the same issue, using Lof infinite scroll Feb 14, 2019 at 9:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.