Categories
PrestaShop

How to Sell Tiles and Flooring by the Box in PrestaShop

Your PrestaShop store sells tiles by the box, but customers usually know how many square metres they need — not how many boxes to order.

You could display the coverage of each box and let customers do the math. But once you add cutting waste and rounding, it’s surprisingly easy to get the quantity wrong.

The calculation itself isn’t complicated. The interesting part is making sure the correct number of boxes ends up in the cart.

How Many Boxes for 7 m² of Tiles?

Let’s take an example from my Product Area Calculator demo.

A customer is renovating a bathroom and needs 7 m² of porcelain tiles. Each box covers 1.44 m², and the customer wants another 10% for cuts and waste.

Here’s the calculation:

Calculation
Required area7.00 m²
Add 10% waste7 × 1.10 = 7.70 m²
Coverage per box1.44 m²
Boxes needed7.70 ÷ 1.44 = 5.35
Rounded up6 boxes

Six boxes cover 8.64 m² in total.

At $57.16 per box, the final price is $342.96.

The extra coverage isn’t a mistake. You can’t normally order 5.35 sealed boxes, so the quantity has to be rounded up.

Why Waste Allowance Comes Before Rounding

There’s a small detail here that makes a difference: add the waste allowance before rounding to complete boxes.

Without waste, the calculation looks like this:

7 ÷ 1.44 = 4.86 → 5 boxes.

Five boxes cover 7.20 m² — enough for the measured floor, but with almost nothing left for cuts.

With 10% extra material, the result becomes six boxes.

Waste allowance and rounding solve different problems. One accounts for cutting and installation losses; the other converts the required area into complete packages.

Mixing up those steps can leave customers with too little material.

The PrestaShop Cart Still Needs a Product Quantity

This is the part I find more interesting from a development perspective.

The area calculation is straightforward. But what happens next?

The customer enters square metres, while PrestaShop still expects a product quantity.

For tiles sold in boxes, that quantity must be the number of complete boxes.

In our example:

  • Customer enters 7 m².
  • Calculator adds 10% waste.
  • Required quantity becomes 6 boxes.
  • PrestaShop receives a cart quantity of 6.

If you pass the measured area instead, the product page might show a perfectly correct calculation while the order contains the wrong quantity.

You can still display the price per square metre to help customers compare products. But the cart quantity and total price must reflect the packages being sold.

That’s how I approached it in my Product Area Calculator for PrestaShop. The customer works with area measurements, and the calculator converts them into complete boxes before adding the product to the cart.

Final Thoughts

The customer asked for 7 m² of tiles. The store received an order for six boxes.

That’s exactly how this type of calculation should work: customers deal with measurements, while PrestaShop deals with actual products and quantities.

The same principle applies to laminate flooring, wallpaper rolls, and other materials sold in complete packages.

Leave a Reply

Your email address will not be published. Required fields are marked *