Timeline for Magento 2 - Add to cart not working after products loaded by ajax
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 8, 2023 at 11:53 | comment | added | Sagar Dobariya | Thank you this is working for me. | |
Jan 4, 2022 at 15:06 | comment | added | Abdul Rafay | require(['jquery','domReady!','Magento_Catalog/js/catalog-add-to-cart'], function ($) { jQuery( "form[data-role='tocart-form']" ).catalogAddToCart(); }); | |
Aug 28, 2021 at 5:07 | comment | added | soofz | this code showing error Uncaught TypeError: $(...).catalogAddToCart is not a function. How to solve this? | |
Aug 27, 2020 at 9:20 | comment | added | Raul Sanchez | mmmm, not sure about this... catalogAddToCart() as a jQuery function? | |
Dec 24, 2019 at 10:16 | vote | accept | Muhammad Hasham | ||
Dec 24, 2019 at 10:15 | history | answered | Muhammad Hasham | CC BY-SA 4.0 |