4

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:

https://magento.minidisc.com.au/headphones/open-headphones

Thanks

  • I have same issue – Jalpesh Patel Apr 14 '17 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. – Kingshuk Deb Apr 14 '17 at 6:11
2

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(); 
| improve this answer | |
  • TypeError: jQuery(...).catalogAddToCart is not a function – Magecode Sep 8 '17 at 12:35
  • Same error faced TypeError: jQuery(...).catalogAddToCart is not a function – Shashank Gupta Jan 24 '19 at 15:42
  • @Jalpesh Patel, I am also facing the same issue, using Lof infinite scroll – jafar pinjar Feb 14 '19 at 9:30

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