LSG Progressive Bar
Progressive bar personalis� � int�grer dans le mini panier
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/lucas-tsl/wp-progressbar/archive/refs/heads/main.zipReadme
LSG Progressive Bar
Description
LSG Progressive Bar is a WordPress plugin that adds a customizable progress bar to the mini cart. It visually indicates how close the user is to qualifying for free shipping.
Features
- Displays a progress bar in the mini cart.
- Dynamically updates based on the cart subtotal.
- Customizable block for free shipping progress bar.
- Includes separate CSS and JavaScript files for better organization.
Installation
- Download the plugin files.
- Place the
progressbarfolder in your WordPresswp-content/pluginsdirectory. - Activate the plugin from the WordPress admin dashboard.
Usage
- Add the block
custom/freeshipingto your page or post. - The progress bar will automatically update based on the cart subtotal.
Development
Enqueue Scripts and Styles
- JavaScript files are located in
assets/js/. - CSS files are located in
assets/css/.
JavaScript Files
progress-bar.js: Handles DOM manipulation and updates the progress bar dynamically.block-registration.js: Registers the custom block for the progress bar.
CSS File
style.css: Contains styles for the progress bar and its container.
Support
If you encounter any issues, feel free to open an issue on the repository or contact the author.
Author
Lucas Troteseil
License
This plugin is licensed under the GPLv2 or later.