Faq

FAQ

Frequently asked questions about Measurement Price Calculator for WooCommerce.

General

What does this plugin do?

It lets you sell WooCommerce products based on customer-provided measurements. Customers enter dimensions (length, width, height, weight, etc.) on the product page, and the plugin calculates the price in real time based on your per-unit pricing.

Is this plugin really free?

Yes. Every feature is available from day one at no cost. There is no premium version, no feature restrictions, and no upsells.

What are the requirements?

  • WordPress 6.0 or higher
  • WooCommerce 8.0 or higher
  • PHP 7.4 or higher

Does it work with the block-based cart and checkout?

Yes. The plugin is fully compatible with both the WooCommerce block-based and classic shortcode-based cart and checkout pages. See Compatibility for details.

Does it work with my theme?

The plugin works with any WooCommerce-compatible theme. It uses standard WooCommerce hooks for display. See Compatibility for tested themes.


Setup

How do I enable the calculator on a product?

  • Edit any WooCommerce product.
  • Go to the Measurement tab in the Product Data section.
  • Select a Calculator Type.
  • Set the Pricing Unit and configure other settings.
  • Save the product.
See Getting Started for a complete walkthrough.

Do I need to configure global settings first?

No. Global settings are optional. You can start by configuring individual products right away. Global settings just provide defaults to save time when creating new products.

How do I set the price per unit?

Set the product's Regular Price in the General tab as usual. This becomes the price per measurement unit. For example, if you set $4.50 and the pricing unit is "sq ft", customers pay $4.50 per square foot.

Can I have different prices for different measurement ranges?

Yes. Use pricing tables to define tiered pricing. See Pricing Tables.


Calculator

What calculator types are available?

The plugin includes 10 built-in types:

  • Dimension - Single length
  • Area (L×W) - Length × Width
  • Area (Direct) - Customer enters area directly
  • Perimeter - 2(L + W)
  • Surface Area - 2(LW + LH + WH)
  • Volume - L × W × H
  • Volume (A×H) - Area × Height
  • Weight - Direct weight
  • Room Walls - Distance × Height
  • Custom Formula - Any formula you define
See Calculator Types for details on each.

Can I create custom formulas?

Yes. The custom formula builder supports variables, basic math operators, parentheses, and functions including round, ceil, floor, min, max, sqrt, and abs. See Custom Formulas.

Does it support fractional input?

Yes. Customers can enter fractions like "8 1/2" or decimals like "8.5". Both formats are automatically converted to the correct value.

Can customers use dropdown menus instead of typing?

Yes. Each input field can be configured as Free (number input), Dropdown (select menu), or Hybrid (dropdown with a "Custom..." option). See Custom Formulas for input type details.

Are measurements remembered while browsing?

Yes. The plugin uses sessionStorage to save calculator inputs. If a customer leaves the product page and comes back during the same browsing session, their values are restored.


Pricing

Can I set a minimum order price?

Yes. Set a Minimum Price on each product in the Measurement tab. If the calculated price is below the minimum, the minimum price is charged instead.

What is the overage percentage?

Overage adds a waste buffer to the calculated measurement. For example, 10% overage on 100 sq ft means the customer is charged for 110 sq ft. This is common for flooring, fabric, and paint.

The overage is displayed transparently in the calculator results.

Can I have sale prices on pricing tiers?

Yes. Each pricing tier supports a sale price with optional start and end dates. See Pricing Tables.

How does pricing work with variable products?

Each variation can inherit the parent's pricing or override with its own pricing unit, minimum price, and overage. The variation's regular price is used as the base per-unit price. See Variable Products.

Can I add surcharges for oversized items?

Yes. Use conditional logic to add percentage or fixed surcharges when measurements exceed thresholds. See Conditional Logic.


Variable products

Does it work with variable products?

Yes. You can enable, disable, or customize the calculator for each individual variation. See Variable Products.

Can some variations have the calculator and others not?

Yes. Set the calculator to "Disabled" on specific variations while keeping it "Enabled" or "Inherit" on others. This is useful for offering both custom-size and standard-size options in the same product.

Can different variations have different pricing units?

Yes. Check Override Pricing on a variation to set a different pricing unit, label, minimum price, or overage.


Inventory and shipping

Can I track stock by measurement?

Yes. Enable Calculated Inventory on a product. Stock is tracked in measurement units instead of product quantities. For example, if you have 500 feet of fabric in stock, the plugin deducts the actual measurement sold.

Does it affect shipping weight?

Yes. Enable Calculated Weight to dynamically adjust the cart item's weight based on the measurement. This lets WooCommerce shipping methods calculate accurate rates.


Import and export

Can I copy calculator settings between products?

Yes. Use the JSON export/import in the Measurement tab to download settings from one product and import them to another. See Import & Export.

Does it work with WooCommerce CSV import/export?

Yes. Calculator settings and pricing rules are included as JSON columns in the WooCommerce product CSV export and automatically mapped on import.

Can I move settings between sites?

Yes. Export the JSON file from one site and import it on another. The file is self-contained and portable.


Conditional logic

What can conditional logic do?

  • Show or hide input fields based on other field values
  • Add percentage or fixed surcharges
  • Switch to a different formula
See Conditional Logic.

Are surcharges applied server-side?

Yes. All conditions are evaluated both in the browser (for real-time display) and on the server (when adding to cart). This prevents manipulation.


REST API

Does the plugin have a REST API?

Yes. Five endpoints are available:

  • POST /calculate - Calculate price from measurements
  • GET /products/{id}/calculator - Get calculator configuration
  • GET /products/{id}/pricing-table - Get pricing tiers
  • POST /products/{id}/calculator - Save settings (admin)
  • GET /units - Get available units
See REST API for full documentation.

Can I build a headless storefront with this?

Yes. The REST API provides everything needed to build a custom calculator interface. Fetch the configuration, build your UI, and calculate prices via the API.


Templates and customization

Can I customize the calculator appearance?

Yes. Three approaches:

  • CSS - Override styles using the .mpwc- prefixed CSS classes.
  • Template overrides - Copy templates to your theme at yourtheme/mpwc-calculator/.
  • Hooks and filters - Over 50 hooks available for developers.

What templates can I override?

TemplateDescription
calculator.phpMain calculator wrapper and results
calculator-field.phpIndividual input field
pricing-table.phpTiered pricing table
measurement-data.phpCart line item details
Scroll to see all columns →
Copy from plugins/measurement-price-calculator-for-woocommerce/templates/ to yourtheme/mpwc-calculator/.

Does it support shortcodes?

Yes. The [mpwc_pricing_table id="123"] shortcode embeds a product's pricing table anywhere. See Shortcodes.


Troubleshooting

Calculator not showing on the product page

  • Verify the product has a calculator type selected in the Measurement tab.
  • Check the product is published (not a draft).
  • If it's a variable product, select a variation and check its calculator setting.
  • Try switching to the Storefront theme temporarily to rule out theme conflicts.
  • Check the browser console for JavaScript errors.

Price not calculating

  • Verify the product has a Regular Price set in the General tab.
  • Check that measurement inputs are within the min/max range.
  • If using pricing tables, make sure the measurement falls within a tier's range.
  • Clear browser cache and try again.

Wrong price in the cart

  • The cart recalculates prices server-side. Check that the product's settings are saved correctly.
  • If using pricing tables, verify the tier boundaries are correct.
  • If using conditional surcharges, check the conditions are configured properly.
  • Clear WooCommerce transients and refresh.

"Add to Cart" button not working

  • The calculator validates all inputs before allowing add to cart. Check for error messages on the fields.
  • Make sure all required measurements are filled in.
  • Check that values are within the allowed min/max range.

Support

Where can I get help?

How do I report a bug?

Visit Themology Support and include:

  • Your WordPress and WooCommerce versions
  • The plugin version
  • Steps to reproduce the issue
  • Screenshots if applicable
  • Any error messages from the browser console

Is the plugin actively maintained?

Yes. The plugin receives regular updates for compatibility with new WordPress and WooCommerce releases, bug fixes, and new features.