Details
Top cart UpdateThe module allows top cart update, similarly as using default Magento® 2 feature. |
![]() |
![]() |
Insert up-sells or cross-sells or related productsIt is possible to include to all ajax boxes related products or up-sell products or cross-sell products that are linked to the ajax added product. |
Loading animated imageLoading animated image uses CSS, which can be directly modified through admin configuration page. |
![]() |
J2T Ajax cart : Add items to cart without reloading your page!
To configure the module, please go to Admin > Store > Setting > Configuration > J2T Modules > Ajax Cart
Main features:
- add to cart waiting loading while product is being inserted to cart
- add to cart confirmation box
- related products shown on confirmation box
2.0.x versions
- v2.0.0: Introducing Magento® 2 version
Installation
1 - unzip de module in app/code/J2t/Ajaxcart
2 - enable module: bin/magento module:enable --clear-static-content J2t_Ajaxcart
3 - upgrade database: bin/magento setup:upgrade
4 - re-run compile command: bin/magento setup:di:compile
In order to deactivate the module bin/magento module:disable --clear-static-content J2t_Ajaxcart
In order to update static files: bin/magento setup:static-content:deploy
Important: make sure that php path is correct in bin/magento file
In order to configure the module, please go in admin > store > configuration > J2T Modules > Ajax Cart
When installation is complete, please make sure to insert the serial and activate (needs to be on specific store view - default will not work) the module in order for the module to operate.
Important: If you don't have any add to cart Ajax interaction and you are using Magento 2.1, it is greatly possible that you are facing Ajax cart issue introduced with this version of Magento. Reverting back to previous code will fix the issue: https://github.com/magento/magento2/blob/a5fa3af3b16bb03dcc01068aed0c58d8993fd092/app/code/Magento/Catalog/view/frontend/templates/product/view/addtocart.phtml#L54-L76
Please note that a patch seems to be added to developer branch of this version, therefore, if you upgrade to future release of Magento, Ajax feature should still work.