The WB Price Slider module provides a customizable and responsive price slider for Magento 2, allowing users to filter products by price on the category page. The slider is easy to integrate, supports multiple stores and currencies, and includes a "Clear" button to reset the filter.
- Customizable price slider that displays minimum and maximum prices.
- Fully responsive design for desktop, tablet, and mobile views.
- "Clear" button to reset the filter and reload the page.
- Supports different base currencies on multiple store views within the same website.
- Module can be enabled or disabled from the Magento Admin Store Configuration.
- Download the module package and extract it.
- Copy the extracted files to the
app/code/WB/PriceSlider
directory of your Magento 2 installation.
Alternatively, you can install the module via Composer (assuming it's available via a repository).
composer require wb/price-slider
After installing, you need to enable the module and run the Magento upgrade script.
php bin/magento module:enable WB_PriceSlider
php bin/magento setup:upgrade
php bin/magento cache:clean
- Navigate to the Magento Admin Panel.
- Go to
Stores > Configuration > WB Extensions > Price Slider
. - From here, you can enable or disable the module for your store. You can also choose to enable the slider for specific store views.
- After installation and enabling the module from the configuration, navigate to a category page where the price slider will be displayed.
- The slider allows you to select a minimum and maximum price to filter products.
- Click "Apply filter" to filter the products based on the selected price range.
- Use the "Clear" button to reset the filter and reload the page.
- The module supports different base currencies on multiple store views within the same website.
- Works seamlessly across various devices with a responsive design.
You can customize the appearance and behavior of the price slider by modifying the following files:
view/frontend/templates/slider.phtml
: The main template file for the slider.view/frontend/web/css/price-slider.css
: Custom CSS for styling the slider.view/frontend/web/js/price-slider.js
: JavaScript file for handling slider functionality.
To uninstall the module, you can disable it and remove the files.
php bin/magento module:disable WB_PriceSlider
rm -rf app/code/WB/PriceSlider
php bin/magento setup:upgrade
php bin/magento cache:clean
While this module provides a robust price slider solution, there may still be areas for improvement. Feedback and suggestions are welcome to enhance its functionality and compatibility further.
If you encounter any issues with this module, please create an issue on the repository or contact the module's support team.
This module is licensed under the MIT License.
-
Store Configuration:
- Added a section under "Configuration" that explains how the module can be enabled or disabled from the Magento Admin Store Configuration.
-
Compatibility:
- Highlighted the module's compatibility with different base currencies on multiple store views within the same website.
-
Improvements Needed:
- Included a section acknowledging that further improvements may be needed and encouraging feedback.