Back to Projects

Grasslook Calculator

Grasslook 2025 WooCommerce Developer
WordPress WooCommerce PHP JavaScript
Grasslook, a Belgian artificial grass specialist operating since 2003, needed a calculator on their product pages that helps customers figure out exactly how much grass they need and what extras to add, then adds everything to the WooCommerce cart in one go.
I built the calculator from the ground up. It takes the area dimensions with a 4-meter default width and a length input that steps at 0.05m increments, auto-rounding values that aren’t divisible and calculates the surface area and perimeter. Based on those measurements, three fields pre-fill automatically with formulas tied to area and perimeter, giving customers a starting point they can adjust. The extra price labels update dynamically as values change.
For additional options like underlay and installation accessories, I added quantity fields so customers can decide how much of each to add, with hoverable help icons explaining what each option is. I wired all calculated data into the WooCommerce cart and order data, so the admin sees the full breakdown. I also added a safeguard that prevents accidental form submission while the customer is still editing the length or width fields. All code was structured with a clean separation between PHP logic and JavaScript.

Key Highlights

  • Area calculator with 4m default width, 0.05m length step, and auto-rounding
  • Formula-driven prefilled fields calculated from area and perimeter
  • Extra options with quantity fields, dynamic pricing, and hover tooltips
  • Calculated data passed through to WooCommerce cart and order

Screenshots