Calculating Products Price by Length, Area, Box, Weight, and Volume
Add New Rule:
Go to WooCommerce > Price Calculator.
Click on “Add New Rule” to create a new pricing rule.
Title: Provide a unique title for the pricing rule for future reference.
Select Products and Categories:
- Choose the products you want to include in the price calculation.
- Select product categories for price calculation.
Select Measurement:
- Unit Text: Enter the text that will display the unit price. Use {unit} as a placeholder for the measurement unit in the text.
- Measurement: Choose the unit for price calculation from the dropdown. Options include:
- Weight
- Area (L * W)
- Area (Sq)
- Surface Area 2 (LW + LH + HW)
- Volume (L * W * H)
- Length
- Box (L * H)
1. Length
Select Unit: Choose a measurement unit for length
Select Input Field Type: Choose a method to show options for length to the user:
- Open Input Field:
- Select Input Measurement Unit: Choose a method to show measuring units to the user
- Use Price Measurement Unit
- Let Customer Select Measurement Unit:
- Select Unit: Choose the length unit you want to show the user
- Enable Min and Max Length: Check if you want to enable minimum and maximum length for measurement
- Min Length: Enter minimum length for measurement
- Max Length: Enter the maximum length for measurement
- Select Input Measurement Unit: Choose a method to show measuring units to the user
2. Area (L * W)
Select Unit for Area: Choose an area measurement unit for price calculation
Select Input Field Type: Choose a method to show options for an area to the user:
- Open Input Field:
- Select Input Measurement Unit: Choose a method to show measuring units to the user
- Use Price Measurement Unit
- Let Customer Select Measurement Unit:
- Select Unit: Choose the area unit you want to show the user
- Select Input Measurement Unit: Choose a method to show measuring units to the user
- Enable Min and Max for Input Fields: Check if you want to restrict the minimum and maximum vales for individual fields such as length, width
- Min Length: Enter the minimum length for area measurement
- Max Length: Enter the maximum length for area measurement
- Min Width: Enter minimum width for area measurement
- Max Width: Enter maximum width for area measurement
- Enable Min and Max Area Limit: Check if you want to enable an overall area limit for the user to buy the product
- Min Area: Enter minimum area limit
- Max Area: Enter the maximum area limit
- Show Specific Measurement in Dropdown:
- Select Input Type for Length: Choose a method to show options for length to user
- Show Open Input Field
- Show Specific Values in Dropdown
- Select Input Type for Width: Choose a method to show options for width to user
- Show Open Input Field
- Show Specific Values in Dropdown
- Select Input Type for Length: Choose a method to show options for length to user
3. Area (Sq)
Select Unit: Choose an area measurement unit for price calculation
Select Input Field Type: Choose a method to show options for an area to the user:
- Open Input Field:
- Select Input Measurement Unit: Choose a method to show measuring units to the user
- Use Price Measurement Unit
- Let Customer Select Measurement Unit:
- Select Unit: Choose the sq area unit you want to show the user
- Select Input Measurement Unit: Choose a method to show measuring units to the user
- Enable Min and Max Area Limit: Check if you want to enable an overall area limit for the user to buy the product
- Min Area: Enter minimum area limit
- Max Area: Enter the maximum area limit
- Show Specific Measurement in Dropdown:
- Enter Intervals: Enter intervals for weight separated by a comma “,”
4. Surface Area 2 (LW + LH + HW)
Select Unit: Choose a surface area measurement unit for price calculation
Select Input Field Type: Choose a method to show options for surface area to the user:
- Open Input Field:
- Select Input Measurement Unit: Choose a method to show measuring units to the user
- Use Price Measurement Unit
- Let Customer Select Measurement Unit:
- Select Unit: Choose the surface area unit you want to show the user
- Enable Min and Max Vales for Individuals: Check if you want to enable minimum and maximum limits for surface area such as length, width, height
- Min Length: Enter minimum length for surface area measurement
- Max Length: Enter the maximum length for surface area measurement
- Min Width: Enter minimum width for surface area measurement
- Max Width: Enter maximum width for surface area measurement
- Min Height: Enter minimum height for surface area measurement
- Max Height: Enter maximum height for surface area measurement
- Enable Min and Max Surface Area Limit: Check if you want to limit overall surface area for price calculation
- Min Surface Area: Enter minimum surface area for price calculation
- Max Surface Area: Enter maximum surface area for price calculation
- Select Input Measurement Unit: Choose a method to show measuring units to the user
5. Box (L * H)
Select Unit: Choose a measurement unit for box calculation
Select Input Field Type: Choose a method to show options for area to user:
- Open Input Field:
- Select Input Measurement Unit: Choose a method to show measuring units to the user
- Use Price Measurement Unit
- Let Customer Select Measurement Unit:
- Select Unit: Choose box unit you want to show user
- Enable Min and Max Area Limit: Check if you want to enable minimum and maximum area limit for box measurement
- Min Area: Enter minimum area for box measurement
- Max Area: Enter the maximum area for box measurement
- Select Input Measurement Unit: Choose a method to show measuring units to the user
6. Weight:
Select Unit: Choose a weight unit for price calculation:
- Grams
- Ounce
- Pounds (lbs)
- Kilo Grams
- Tonne
Select Input Field Type: Choose a method to show options for weight to user:
- Open Input Field:
- Select Input Measurement Unit: Choose a method to show options for weight to user
- Use Price Measurement Unit
- Let Customer Select Measurement Unit:
- Select Unit: Choose the weight unit you want to show the user
- Min Weight: Enter the minimum weight for the product the user must have to buy
- Max Weight: Enter the maximum weight for the product to buy
- Select Input Measurement Unit: Choose a method to show options for weight to user
- Show Specific Measurement in Dropdown:
- Enter Intervals: Enter intervals for weight separated by a comma “,”
7. Volume (L * W * H)
Select Unit: Choose a volume measurement unit
Select Input Field Type: Choose a method to show options for volume to the user:
- Open Input Field:
- Select Input Measurement Unit: Choose a method to show measuring units to the user
- Use Price Measurement Unit
- Let Customer Select Measurement Unit:
- Select Unit: Choose the volume unit you want to show the user
- Enable Min and Max Vales for Input Fields: Check if you want to enable minimum and maximum limit for volume for individual fields
- Min Length: Enter minimum length for volume measurement
- Max Length: Enter the maximum length for volume measurement
- Min Width: Enter minimum width for volume measurement
- Max Width: Enter maximum width for volume measurement
- Min Height: Enter minimum height for volume measurement
- Max Height: Enter maximum height for volume measurement
- Enable Min and Max Surface Area Limit: Check if you want to enable overall volume measurement
- Min Volume: Enter the minimum volume
- Max Volume: Enter the maximum volume
- Select Input Measurement Unit: Choose a method to show measuring units to the user
Save Draft or Publish:
Click on “Save Draft” if you want to save your rule without making it live immediately.
Click on “Publish” when you are ready to activate the rule and apply it to the selected products or categories.
By following these steps, you are configuring the Price Calculator for WooCommerce to calculate product prices based on the specified measurement units. This allows for a flexible and dynamic pricing structure depending on the attributes like length, area, box dimensions, weight, and volume of the selected products.