Mastering Tile Sales: How to Sell by Square Meter (m²) on Shopify While Shipping in Boxes
Hey everyone,
Ever found yourself scratching your head trying to sell tiles or flooring on Shopify? It's a classic scenario: customers think in square meters (m²), but you're shipping boxes. That disconnect can be a real headache, leading to confusion, abandoned carts, and extra customer service tickets. But guess what? The amazing Shopify community recently tackled this head-on, and I've got some fantastic insights to share from their discussion!
The Tile Trouble: M² vs. Boxes
The original post from @nw2 perfectly laid out the challenge. They needed to display prices per m² (e.g., 399 SEK/m²) but sell only full boxes, with each box covering a specific, often unique, m² (e.g., 1 box = 1.44 m²). The goal? Let customers enter their required m², have the system automatically calculate and round up to the nearest full box, and then charge for those boxes (e.g., 574.56 SEK per box). It's a common need for anyone in the building materials space.
The Community's Two-Pronged Solution: Native Power & Smart Customization
The beauty of the Shopify community is how different experts bring their unique perspectives. After sifting through the replies, a powerful, two-part strategy emerged that combines Shopify's built-in features with a touch of custom code. This approach ensures both a seamless customer experience and accurate inventory management.
Part 1: Consistent Pricing Display with Shopify's Native Unit Price
This was a brilliant point raised by @lumine. Many merchants overlook Shopify's native "Unit price" feature, which is perfect for this exact scenario. Why use it? Because a custom calculator's m² price display usually stops at the product page. But the native Unit Price carries through to your collection pages, the cart, checkout, and even the order confirmation emails. This consistency is key to avoiding customer confusion and those pesky pricing support tickets.
How to Set Up Shopify's Unit Price:
- First, make sure your product's primary price is set to the full box price (e.g., 574.56 SEK). Remember, Shopify will always charge for whole boxes at checkout.
- Go to your product in the Shopify admin. In the "Pricing" card, look for the "Unit price" option. It might be a small link or button.
- Click on it, and you'll be able to set the "Total measurement" (e.g., 1.44 m²) and the "Base measure" (e.g., 1 m²).
- Shopify will then automatically calculate and display the price per m² (e.g., 399 SEK/m²) for you, and critically, it will show up everywhere it needs to!
Pro Tip: This feature is set per variant, so if your tiles come in different box sizes or coverages, you'll need to set it for each variant. Also, ensure your store's default unit system is set to metric if you're working with m².
Part 2: The Smart M² Calculator for Quantity Automation
While Shopify's Unit Price handles the display, you still need that interactive element where customers can input their required m² and have the quantity automatically adjust. This is where a small, custom Liquid/JavaScript solution shines, as detailed by @Ploqo and echoed by @Custom-Cursor and @Steve_TopNewYork.
Implementing the M²-to-Box Calculator:
This approach involves two main steps: adding a metafield to store your box coverage and then adding a Custom Liquid block to your product page with the calculator code.
-
Add a Metafield for "M² per box":
- Go to
Settings > Custom data > Productsin your Shopify admin. - Click "Add definition."
- Name it something like "M2 per box."
- Set the "Namespace and key" to
custom.m2_per_box. - Choose "Decimal" as the type.
- Save your definition.
- Now, go to each tile product and enter its specific coverage (e.g.,
1.44for a box covering 1.44 m²).
- Go to
-
Add the Custom Liquid Calculator to Your Product Page:
- Go to
Online Store > Themes. - Find your current theme, click "Customize."
- Navigate to a product page in the theme editor.
- In the left sidebar, click "Add block" and search for "Custom Liquid."
- Drag this block to where you want the calculator to appear on your product page (usually near the quantity selector).
- Paste the following code into the "Custom Liquid" box:
{%- assign cov = product.metafields.custom.m2_per_box | plus: 0.0 -%} {%- if cov > 0 -%}{%- endif -%}{{ product.price | divided_by: cov | money }} per m²
1 box = {{ cov }} m²
- Click "Save."
This script will dynamically calculate the number of boxes needed based on the customer's m² input, round it up, and update the quantity selector on the product page. It also displays the total m² coverage and the total price for the selected boxes, giving your customer full transparency. The example given in the thread was: "Buyer enters 5 m2, so 5 divided by 1.44 is 3.47, rounded up to 4 boxes, the quantity becomes 4, and checkout charges 4 x 574.56."
"But What If I'm Not a Coder?" - Exploring App Solutions
If diving into custom Liquid and JavaScript feels a bit daunting, don't worry! As @Easify-Jennifer and @Steve_TopNewYork pointed out, the Shopify App Store has a range of "measurement," "area calculator," or "quantity calculator" apps designed for exactly this purpose. These apps often provide a user-friendly interface to set up your m²-to-box conversions without touching any code. While they might come with a monthly subscription, the convenience and dedicated support can be well worth it if custom development isn't in your wheelhouse.
If you're just starting your journey into e-commerce with a tile or flooring business, Shopify provides a robust platform that, with these insights, can handle even complex pricing models like selling by m².
So there you have it! The community really delivered on this one. By combining Shopify's native Unit Price feature for consistent display and a smart custom calculator for interactive quantity adjustment, you can create a smooth, transparent shopping experience for your tile customers. It's all about making it easy for them to buy exactly what they need, without any hidden surprises. Happy selling!
- Go to



