Square meter calculator

Price calculation, Width and Height, Dimensional limits, Unit of measurement, Value block, Custom products

Description: Allows configuring products so that the final price is automatically calculated based on the dimensions (width and height) entered by the customer.

What is it for? (Practical examples)

This tool is essential for selling products that are provided "custom-made" and whose cost is directly proportional to the requested surface area.

  • Sale of materials by length: Use it to sell fabrics, carpets, or films, allowing the customer to specify exactly the desired width and height.
  • Quotes for surfaces: Ideal for companies supplying glass, wooden panels, or customized surfaces, where the base price is defined per square meter.
  • Management of size limits: Allows defining minimum and maximum production limits for width and height, ensuring orders fall within operational parameters.

Main features

The square meter calculator transforms a fixed-price product into a customizable product based on its dimensions.

  • Automatic price calculation: The system multiplies the calculated surface area (Width x Height) by the unit price per square meter defined on the product or variant.
  • Definition of dimensional parameters: It is possible to set minimum, maximum, and default values for Width and Height.
  • Choice of unit of measurement: You can decide whether the input fields for the customer should accept values in Meters (m) or Centimeters (cm).
  • Value locking: It is possible to make Width or Height unmodifiable by the customer, useful if one of the two dimensions is standard (e.g., a roll with fixed width).

How to configure

Configuration is done within the edit tab of each individual product, in a dedicated panel called Square Meter Calculator.

OptionDescription
Enable payment per square meterActivates or deactivates the feature for the specific product. If disabled, the product returns to the normal price calculation.
Select unit of measurementDefines the unit of measurement the customer must use to enter the dimensions (Meters or Centimeters).
Width (Minimum / Maximum)Sets the dimensional limits accepted by the system for Width. If the customer enters a value outside this range, the system will automatically apply the nearest limit.
Width (Default Value)The value that automatically appears in the Width field when the customer views the product.
Width (Unmodifiable Value)If selected, the customer cannot modify the Width value (which will be set to the Default Value).
Height (Minimum / Maximum / Default / Unmodifiable)Same configurations applied to the Height dimension.

> Note: The base price per square meter (or per square centimeter, depending on the chosen unit) must be set in the Price field of the product or variant.

Automatic integrations

The Square Meter Calculator automatically integrates with the e-commerce purchase and management process.

Product display

When the feature is enabled, the product page will automatically show two new input fields for the customer:

1. Width (with the specified unit of measurement).

2. Height (with the specified unit of measurement).

Cart and order update

  • Real-time calculation: After the customer enters the dimensions, the system recalculates the total product cost before it is added to the cart.
  • Order details: The Width and Height dimensions chosen by the customer are saved and clearly displayed as product attributes both in the cart and in the order confirmation and order management panel.