Description
Alondra allows you to easily set up tiered pricing and quantity discounts to be used on your WooCommerce products. You can decide when to use the prices you define using the powerful included rules editor so you will be able to offer exclusive prices to users, roles, product categories and more.
This tool will allow you to configure the functionalities you need for your B2B/B2C, retailer, wholesaler or service provider business in a very short time to improve your sales using a friendly and intuitive interface.
Features
- Set fixed prices to be used for a product quantity range.
- Compatible with products and variations.
- Dashboard for managing prices and rules that follows WordPress design and user experience.
- Define rules to apply prices when some criteria are met. You can select one or more products, any categories, tags, users or roles.
- Show product prices to customers in a table layout on the product page.
- Allows customer to click on the pricing options to quickly set the quantity value to add to cart.
- Highlights active price among available options for better user experience.
- Overrides the default product price that is shown to customers with a value according to the active rules and prices.
Requirements
- WooCommerce 10.4.0 or greater. With an older version the plugin does nothing and shows a notice in the administration area.
- Multisite compatibility has not been tested.
Source code & build tools
The plugin ships the compiled assets/js/*.js and assets/css/*.css files together with the sources and tooling they are built from, so every distributed file can be reproduced:
- JavaScript sources:
assets/js/src/(bundled by webpack, entry pointsadmin.jsandfront.js). - Stylesheet sources:
assets/css/scss/(compiled by Dart Sass, then autoprefixed by PostCSS). - Build configuration:
package.json,package-lock.json,webpack.config.js,babel.config.json,postcss.config.js. - Autoloader configuration:
composer.json,composer.lock. The plugin has no runtime dependency, so Composer only generates the class autoloader.
To rebuild the assets from the plugin directory:
npm install
npm run build
npm run dev produces the same files unminified and with source maps, and `composer install` regenerates the autoloader.
Our test suites and code quality configuration are development tools rather than part of the plugin, so they are not included here. They live in the source repository together with everything above.
Installation
Automatic installation
- Log into your WordPress admin panel and go to Plugins > Add New.
- Enter “Alondra” into the search field.
- Once you’ve located the plugin, click Install Now.
- Click Activate.
- Create your prices by going to WooCommerce > Tiered Pricing.
Manual installation
- Download the plugin file to your computer and unzip it.
- Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation’s
wp-content/plugins/directory on the server. - Log into your WordPress admin panel and activate the plugin from the Plugins menu.
- Create your prices by going to WooCommerce > Tiered Pricing.
FAQ
-
Where do I create the prices?
-
In WooCommerce > Tiered Pricing. Each group holds a list of quantity ranges with their price, plus the rules that decide when the group applies.
-
Is it possible to apply discount based on User roles?
-
Yes. You can offer discounts for individual users or for users who have a role.
-
Is it possible to offer free products to customers with this plugin?
-
Yes, you can define a row with price 0 when you define the pricing settings in the group.
-
How can I increase the value of certain products?
-
You can define a fixed price higher than the original one when you configure the row.
-
Does the plugin have a settings page?
-
No. The plugin works with sensible defaults and has no options screen. If you need to change one of them, use the
alondra_default_prefsfilter from your theme or a small plugin:add_filter( 'alondra_default_prefs', function ( $prefs ) { // Where the prices table is rendered in the product page. Accepted values: // hide, before_add_to_cart_btn, after_add_to_cart_btn, before_add_to_cart_form, // after_add_to_cart_form, before_title, before_summary, after_summary, // tab_additional_info. $prefs['layout_pos'] = 'after_add_to_cart_form'; // Colors of the prices table. Hex only, either #rgb or #rrggbb; any // other notation falls back to the default shown here. $prefs['color'] = '#000000'; $prefs['bg_color'] = '#ffffff'; $prefs['border_color'] = '#000000'; $prefs['highlight_color'] = '#ffffff'; $prefs['highlight_bg_color'] = '#007cba'; $prefs['highlight_border_color'] = '#000000'; // Set to '0' to turn any of these off. $prefs['clickable_layout'] = '1'; // Click a row to set the quantity. $prefs['highlight_pricing'] = '1'; // Highlight the active row. $prefs['overwrite_product_price'] = '1'; // Replace the price shown for the product. $prefs['disable_styles'] = '0'; // Set to '1' to load none of the plugin CSS. return $prefs; } ); -
Will it work with my theme?
-
We have tested the plugin with the most popular themes and builders on the market, ensuring that the components that display the price on the front-end are displayed correctly. You can also restyle the prices table with the filter above, or turn the plugin CSS off entirely and write your own.
-
What happens to my prices if I uninstall the plugin?
-
Uninstalling removes the plugin options but keeps the pricing tables, so reinstalling finds your groups and rules intact.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Alondra” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Alondra” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- First release.