pourplot

Home › Calculator widget

Put a material calculator on your own site

A free widget for garden centres, landscape yards and bulk suppliers. Your customers work out what they need on your page instead of leaving to find a calculator somewhere else.

Paste this where the calculator should go

<div class="pourplot-calc" data-material="mulch"></div>
<script src="https://pourplot.com/embed/v1.js" async></script>

That is the whole installation. The script is about 9 KB, loads asynchronously and does nothing until it finds a pourplot-calc element.

Live examples

These are running on this page right now, with different settings.

Mulch, default settings

<div class="pourplot-calc" data-material="mulch"></div>

Gravel, 4 in default depth, your own accent colour

<div class="pourplot-calc" data-material="gravel" data-depth="4" data-accent="#1a7f5a"></div>

Topsoil, sold in 1.5 cu ft bags

<div class="pourplot-calc" data-material="topsoil" data-bag="1.5"></div>

Options

AttributeValuesDefault
data-materialmulch · topsoil · compost · gravel · stonemulch
data-depthstarting depth, in inches (cm in metric)per material
data-bagbag size in cubic feet (litres in metric)per material
data-accentany CSS colour, to match your site#E8772E
data-unitsimperial · metricimperial
data-weightoff, to hide the weight lineshown

Put several on one page if you sell several materials. Each one is independent.

What it does not do

Weights

The weight line uses loose US short tons per cubic yard: mulch 0.3, topsoil 1.1, gravel and stone 1.4. These are the same defaults the pourplot calculators use, from SelectSG, Aggregate Markets and Inch Calculator. Material from your own quarry or yard can differ, so add data-weight="off" if you would rather not show it. Compost shows no weight, because we have no sourced figure for it.

Terms

Free to use on any site. The only condition is that the small “Calculator by pourplot” line stays visible underneath it. Please link to the script on this domain rather than hosting a copy, so you get fixes automatically.

Want the defaults set to the bag sizes and depths you actually sell? Email [email protected] and I will send you the exact snippet.