I want to add a "free shipping" bar to Magento 2 (version 2.4) that shows users how much they have left to add to their cart to get free shipping. I tried several ready-made modules, but most of them either have problems updating the amount in real time, or they conflict with the custom theme. I also thought about implementing it through blocks and JavaScript, but I can't correctly extract the cart amount and dynamically update the message. Maybe someone has already done this?
top of page
Call Us Now! 423-825-6247
To test this feature, visit your live site.
1 Comment
bottom of page
The free shipping indicator can be implemented using blocks and JavaScript, but to properly update the amount in real time, it will require integration with the cart and events that track changes in the cart. Using ready-made modules can lead to conflicts, especially if they do not take into account your custom theme. It is recommended to implement this through a custom module that will dynamically update the free shipping information using JavaScript and AJAX. Amasty specialists can help with the implementation of such functionality in Magento 2, and also offer suitable solutions, including their magento 2 product review extension , if you need to improve the functionality of product reviews.