WP Manifestindependent plugin directory
manifest / ecommerce / wp-progressbar

LSG Progressive Bar

Progressive bar personalis� � int�grer dans le mini panier

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/lucas-tsl/wp-progressbar/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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

  1. Download the plugin files.
  2. Place the progressbar folder in your WordPress wp-content/plugins directory.
  3. Activate the plugin from the WordPress admin dashboard.

Usage

  1. Add the block custom/freeshiping to your page or post.
  2. 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.