WP Manifestindependent plugin directory
manifest / ecommerce / wp-progressbar

LSG Progressive Bar

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

by Lucas Troteseil · github.com/lucas-tsl/wp-progressbar

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.zip

Readme

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

  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.

Read the full README on GitHub →