Contents
Requirements
The plugin requires this shortcode:
[ woocommerce_cart ]
to be present on the page set in WooCommerce as Cart.
The plugin will not work as it should if the Cart page is built with the blocks (introduced in WooCommerce 8.3.0).
Features
The Flexible Quantity Calculator for WooCommerce plugin allows you to:
- Add a new unit of measure for the WooCommerce product
- Dynamically calculate the price depending on the quantity of the new unit of measure
- Simply enter the weight or dimensions by customers (PRO)
- Make the price dependent on the quantity and dimensions of the purchased unit (PRO)
- Change a shipping class depending on the unit quantity (PRO)
Settings templates can be used to create calculator settings. Individual setting templates can also be assigned to products, product categories, and tags.
Template settings
To enable the Flexible Quantity Calculator, Add and configure a new template.
New unit of measure
Unit Field Label - enter the name for the unit field label. It will be visible on the product page.
Unit of measure - choose the new unit of measure for the product. It will be visible on the product page.
Price - set up the price for the new unit of measure.
Sale Price - set up the sale price for the new unit.
Increment - choose an increase for the new unit.
Minimum quantity - the minimum quantity of product required that can be added to the cart by the customer.
Maximum quantity - the maximum quantity of product required, that can be added to the cart by the customer.
Adding custom units
Option available in PRO
To add custom unit got to Flexible Quantity → Custom units.
Then add name to the custom unit and click Save settinngs.
To add another custom unit click "plus". To delete custom unit click "minus".
The new custom unit appears in the calculator setting.
Inventory settings
Calculate Inventory - enable to define the inventory per unit and calculate inventory based on the product unit. If you enable this checkbox, product inventory will be managed per unit, regardless of the quantity of the new unit of the product purchased.
Sold individually - allow a customer to buy only one item of the product.
Advanced calculator settings
Option available in PRO
Enable Advanced Calculator Settings - Enable price to calculate price dynamically depending on weight values or dimensions of a unit of measurement entered by the client.
Settings for weight units
PRO Settings for weight units:
- Fixed value - the value specified by the store administrator.
- User value - the value can be entered by the customer on the product page.
For option "User value" you will see additional settings like:
- Increment
- Minimum value
- Maximum value
PRO Field label - enter the name for the unit field label.
PRO Unit of measure - choose the new unit of measure for the product. It will be visible on the product page.
If gram has been selected as the measurement unit in the main calculator settings, only gram can be set in the advanced settings. If you select a measurement unit that can be converted into smaller units, they will appear in the list in the selection field of the new unit.
The following units are available for weight units:
- g - gram,
- kg - kilogram,
- t - tonne/metric ton,
- oz - ounce,
- lbs - pound,
- tn - short ton = 2000 lbs.
Settings for length units
PRO Settings for length units:
- Fixed value - the value specified by the store administrator.
- User value - the value can be entered by the customer on the product page.
For option "User value" you will see additional settings like:
- Increment
- Minimum value
- Maximum value
PRO Field label - enter the name for the unit field label.
PRO Unit of measure - choose the new unit of measure of the product. It will be visible on the product page.
If mm has been selected as the measurement unit in the main calculator settings, only mm can be set in the advanced settings. If you select a measurement unit that can be converted into smaller units, they will appear in the list in the selection field of the new unit.
The following units are available for length units:
- mm - millimeter,
- cm - centimeter,
- m - meter,
- km - kilometer,
- in - inch,
- ft - foot,
- yd - yard,
- mi - mile.
Settings for area units
For area units, you will see two new dimensions: length and width.
PRO Settings for area units:
- Fixed value - the value specified by the store administrator.
- User value - the value can be entered by the customer on the product page.
For option "User value" you will see additional settings like:
- Increment
- Minimum value
- Maximum value
PRO Field label - enter the name for the unit field label.
PRO Unit of measure - choose the new unit of measure for the product. It will be visible on the product page.
If sq mm has been selected as the measurement unit in the main calculator settings, only mm can be set in the advanced settings. If you select a measurement unit that can be converted into smaller units, they will appear in the list in the selection field of the new unit.
The following units are available for area units:
- sq mm - square millimeter,
- sq cm - square centimeter,
- sq m - square meter,
- ha - hectare,
- sq km - square kilometer,
- sq in - square inch,
- sq ft - square foot,
- sq yd - square yard,
- sq mi - square mile.
Example:
You sell the product by square meters in your store but allow customers to enter dimensions in centimeters.
First, choose a new area unit in the main settings - sq m. Set up the price of the unit of measure and the increment. In this example, you will find the price set up as $ 10 and increment as 1. This means that every 1 square meter customer will be charged $10. When buying 3 square meters, the customer will pay $30.
Then enable the checkbox Enable Advanced Calculator Settings.
After that, you will see settings for two dimensions: length and width.
If you want customers to be able to enter their values, please select "User Value" in the settings. You can enter your name for width and length. Then select cm as the new unit of measure.
Set up increment if needed. The increment is the "step" value for the input; for example, an increment of 1 would only allow values in multiples of 1, such as 1.0 or 2.0, but not 0.5.
If you set a minimum or maximum value, customers will not be able to order quantities outside that range and will get an error message.
After that, you will see that on the product page price is calculated dynamically.
Settings for Volume units
PRO Settings for Volume units::
- Fixed value - the value specified by the store administrator.
- User value - the value can be entered by the customer on the product page.
For option "User value" you will see additional settings like:
- Increment
- Minimum value
- Maximum value
PRO Field label - enter the name for the unit field label.
PRO Unit of measure - choose the new unit of measure for the product. It will be visible on the product page.
If ml has been selected as the measurement unit in the main calculator settings, only ml can be set in the advanced settings. If you select a measurement unit that can be converted into smaller units, they will appear in the list in the selection field of the new unit.
The following units are available for volume units:
- ml - milliliter,
- l - liter,
- cup - cup,
- pt - pint,
- qt - quart,
- gal - gallon,
- fl oz - unce.
Settings for Volume units (LxWxH)
For these Volume units, you will see three new dimensions: length, width, and height.
PRO Settings for Volume (LxWxH) units:
- Fixed value - the value specified by the store administrator.
- User value - the value can be entered by the customer on the product page.
For option "User value" you will see additional settings like:
- Increment
- Minimum value
- Maximum value
PRO Field label - enter the name for the unit field label.
PRO Unit of measure - choose the new unit of measure of the product. It will be visible on the product page.
If cu cm has been selected as the measurement unit in the main calculator settings, only cu cm can be set in the advanced settings. If you select a measurement unit that can be converted into smaller units, they will appear in the list in the selection field of the new unit.
The following units are available for Volume units:
- cu cm - cubic centimeter,
- cu m - cubic meter,
- cu in -cubic inch,
- cu ft - cubic foot,
- cu yd - cubic yard.
Example:
You sell the product by cubic meters in your store but allow customers to enter dimensions in centimeters.
First, choose a new area unit in the main settings - cu cm. Set up the price of the unit of measure and the increment. In this example, you will find the price set up as $ 10 and increment as 1. This means that every 1 square meter customer will be charged $10. When buying 3 cubic meters, the customer will pay $30.
Then enable the checkbox Enable Advanced Calculator Settings.
After that, you will see settings for three dimensions: length, width, and height.
If you want customers to be able to enter their values, please select "User Value" in the settings. You can enter your name for width, length, and height. Then select cm as the new unit of measure.
Set up increment if needed. The increment is the "step" value for the input; for example, an increment of 1 would only allow values in multiples of 1, such as 1.0 or 2.0, but not 0.5.
If you set a minimum or maximum value, customers will not be able to order quantities outside that range and will get an error message.
After that, you will see that on the product page price is calculated dynamically.
Pricing table
Option available in PRO
The Pricing Table feature allows you to have product prices based on the product unit measurement: dimension, area, volume, volume (LxWxH), or weight, depending on the measurement calculator settings.
PRO Enable Pricing Table - turn on the pricing table for setting different prices based on the quantity of the product's new unit of measure.
PRO From - set up starting value of the price range.
PRO To - set up the maximum value of the price range.
PRO Price - a pricing rule for set up range.
PRO Sale Price - a sale pricing rule for set up range.
Shipping class table
Option available in PRO
The shipping class table makes it possible for you to assign a specific shipping class based on the quantity of the unit of measure.
PRO Enable Shipping Class Table - enable the use of Shipping Class Table.
PRO From - set up minimum value for the new unit of measure of the product for this shipping class.
PRO To - set up maximum value for the new unit of measure of the product for this shipping class.
Free vs. PRO Feature Comparison
To make it even easier for you to see the difference between the free and pro versions of the Flexible Quantity for WooCommerce plugin, we've prepared for you a summary table of all the features. Take a look and decide which version you choose.
Feature | FREE → | PRO → |
Select the unit of measure | ✅ | ✅ |
Cost calculator based on unit, weight, dimension, area, and volume | ✅ | ✅ |
Price based on weight (g, kg, t, oz, lbs, tn) | ✅ | ✅ |
Price based on dimension (mm, cm, m, km, in, ft, yd, mi) | ✅ | ✅ |
Price based on area measures (sq mm, sq cm, sq m, sq km, acs, ha, sq. in., sq. ft., sq. yd.) | ✅ | ✅ |
Price based on product volume (ml, l, cup, pt, qt, gal, fl. oz., cu cm, cu m, cu. in, cu. ft., cu. yt.) | ✅ | ✅ |
Set new units and prices | ✅ | ✅ |
Enable the unit dimensions and unit measurement price calculator | ❌ | ✅ |
Add the label for the unit dimension field | ❌ | ✅ |
Fixed or user-based value of the dimension | ❌ | ✅ |
Set the minimum and maximum values for the unit dimensions | ❌ | ✅ |
Define the dimension increment value for flexible price calculation formulas | ❌ | ✅ |
Choose different units of measure for unit dimensions | ❌ | ✅ |
Product pricing based on the dimension and dynamic unit measurement calculations | ❌ | ✅ |
Define the unit dimensions names | ❌ | ✅ |
See the product price upfront based on the customer input | ❌ | ✅ |
Enable pricing table for ranges | ❌ | ✅ |
Shipping class based on the product quantity | ❌ | ✅ |
WooCommerce quantity based product pricing and flexible shipping cost | ❌ | ✅ |
Dynamic Price per quantity | ❌ | ✅ |
Add custom units of measure, for example, box, bundle, or pallet | ❌ | ✅ |