{"id":407290,"date":"2026-11-19T20:02:22","date_gmt":"2026-11-19T20:02:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/pilequote-material-calculator\/"},"modified":"2026-11-19T20:02:06","modified_gmt":"2026-11-19T20:02:06","slug":"pilequote-material-calculator","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/pilequote-material-calculator\/","author":23606477,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.0","stable_tag":"0.1.0","tested":"7.1.5","requires":"6.3","requires_php":"7.4","requires_plugins":null,"header_name":"PileQuote Material Calculator","header_author":"Jesse-py","header_description":"Lets visitors work out how many cubic yards or tons of mulch, topsoil, gravel, sand, or concrete they need, priced with your own rates and rounded the way you sell. Shortcode [pilequote] or the block.","last_updated":"2026-11-19 20:02:06","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/jesse-py.github.io\/diy-project-calculators\/","header_author_uri":"https:\/\/github.com\/Jesse-py","rating":0,"author_block_rating":0,"active_installs":0,"downloads":39,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"smalltoolshop","date":"2026-11-19 20:02:06","revision":3812354}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3812354,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3812354,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3812354,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3812354,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3812354,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"meta\":{\"title\":\"PileQuote Material Calculator demo\",\"description\":\"A demo supply-yard page with example prices, a rounding step, a minimum order, and a quote button.\",\"author\":\"smalltoolshop\"},\"landingPage\":\"\\\/material-calculator\\\/\",\"preferredVersions\":{\"php\":\"8.3\",\"wp\":\"latest\"},\"features\":{\"networking\":false},\"steps\":[{\"step\":\"login\"},{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"pilequote-material-calculator\"},\"options\":{\"activate\":true}},{\"step\":\"setSiteOptions\",\"options\":{\"blogname\":\"Example Supply Yard\",\"permalink_structure\":\"\\\/%postname%\\\/\"}},{\"step\":\"runPHP\",\"code\":\"<?php\\nrequire '\\\/wordpress\\\/wp-load.php';\\n$o = pilequote_get_settings();\\n$o['materials']['gravel']['label'] = '#57 crushed stone';\\n$o['materials']['gravel']['price'] = 38;\\n$o['materials']['gravel']['step'] = 0.5;\\n$o['materials']['gravel']['min'] = 1;\\n$o['materials']['mulch']['label'] = 'Double-shredded hardwood mulch';\\n$o['materials']['mulch']['price'] = 34;\\n$o['materials']['topsoil']['price'] = 30;\\n$o['materials']['concrete']['price'] = 165;\\n$o['quote_url'] = home_url('\\\/contact\\\/');\\nupdate_option('pilequote_settings', $o);\\n$intro = '<!-- wp:paragraph --><p>This is a demo of the PileQuote Material Calculator plugin. The prices, the half-ton rounding on gravel, and the 1-ton minimum are examples. Change them in the dashboard under Settings, then Material Calculator, and reload this page.<\\\/p><!-- \\\/wp:paragraph -->';\\nwp_insert_post(array('post_type' => 'page', 'post_status' => 'publish', 'post_name' => 'material-calculator', 'post_title' => 'Material calculator', 'post_content' => $intro . \\\"\\\\n[pilequote]\\\"));\\nwp_insert_post(array('post_type' => 'page', 'post_status' => 'publish', 'post_name' => 'gravel', 'post_title' => 'Gravel delivery calculator', 'post_content' => '[pilequote material=\\\"gravel\\\"]'));\\nwp_insert_post(array('post_type' => 'page', 'post_status' => 'publish', 'post_name' => 'contact', 'post_title' => 'Contact', 'post_content' => '<!-- wp:paragraph --><p>On a real site, this is where the quote button sends visitors.<\\\/p><!-- \\\/wp:paragraph -->'));\\nflush_rewrite_rules();\\n\"}]}"}},"all_blocks":{"pilequote-material-calculator\/calculator":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"pilequote-material-calculator\/calculator","version":"0.1.0","title":"Material Calculator","category":"widgets","icon":"calculator","description":"Lets visitors work out how much mulch, soil, gravel, sand, or concrete they need, priced with your rates.","keywords":["mulch","gravel","concrete","cubic yard","calculator"],"textdomain":"pilequote-material-calculator","attributes":{"material":{"type":"string","default":"all"}},"supports":{"html":false,"align":["wide"],"spacing":{"margin":true,"padding":true}},"editorScript":"file:.\/index.js","render":"file:.\/render.php"}},"tagged_versions":["0.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3812354,"resolution":"1","location":"assets","locale":"","width":820,"height":838},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3812354,"resolution":"2","location":"assets","locale":"","width":820,"height":936},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3812354,"resolution":"3","location":"assets","locale":"","width":920,"height":1155}},"screenshots":{"1":"A gravel page sold by the ton: the order is rounded up to the supplier's half-ton step, priced, with a quote button.","2":"All materials in one calculator: a concrete slab, with the same job in 40, 60, and 80 lb bags of premix.","3":"Settings &gt; Material Calculator: units, prices, rounding, minimum orders, and the quote page."}},"plugin_section":[],"plugin_tags":[170172,294014,294013,258373,294012],"plugin_category":[],"plugin_contributors":[294015],"plugin_business_model":[],"class_list":["post-407290","plugin","type-plugin","status-publish","hentry","plugin_tags-concrete-calculator","plugin_tags-cubic-yard","plugin_tags-gravel-calculator","plugin_tags-landscaping","plugin_tags-mulch-calculator","plugin_contributors-smalltoolshop","plugin_committers-smalltoolshop"],"banners":{"banner":"https:\/\/ps.w.org\/pilequote-material-calculator\/assets\/banner-772x250.png?rev=3812354","banner_2x":"https:\/\/ps.w.org\/pilequote-material-calculator\/assets\/banner-1544x500.png?rev=3812354","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/pilequote-material-calculator\/assets\/icon-128x128.png?rev=3812354","icon_2x":"https:\/\/ps.w.org\/pilequote-material-calculator\/assets\/icon-256x256.png?rev=3812354","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/pilequote-material-calculator\/assets\/screenshot-1.png?rev=3812354","caption":"A gravel page sold by the ton: the order is rounded up to the supplier's half-ton step, priced, with a quote button."},{"src":"https:\/\/ps.w.org\/pilequote-material-calculator\/assets\/screenshot-2.png?rev=3812354","caption":"All materials in one calculator: a concrete slab, with the same job in 40, 60, and 80 lb bags of premix."},{"src":"https:\/\/ps.w.org\/pilequote-material-calculator\/assets\/screenshot-3.png?rev=3812354","caption":"Settings &gt; Material Calculator: units, prices, rounding, minimum orders, and the quote page."}],"raw_content":"<!--section=description-->\n<p>Built for landscape supply yards, gravel and topsoil suppliers, garden centers, and contractors. A visitor enters the size of the\narea and the depth, and the calculator shows how much to order, rounded the way you sell it, with an estimated price and a button\nto your quote or order page.<\/p>\n\n<ul>\n<li><strong>Six materials:<\/strong> mulch, topsoil, compost, gravel \/ crushed stone, sand, and concrete. Rename them, hide the ones you don't sell,\nor show a single material on its own page.<\/li>\n<li><strong>Sold by volume or weight:<\/strong> cubic yards or tons (or cubic meters and tonnes). Enter your own density for each material, since\nstone weight varies.<\/li>\n<li><strong>Your prices and rules:<\/strong> price per unit, round orders up to 1\/4, 1\/2, or whole units, a minimum order, and an extra\npercentage for waste and settling.<\/li>\n<li><strong>Four area shapes:<\/strong> rectangle, circle, triangle, or a known area.<\/li>\n<li><strong>Concrete bags:<\/strong> optionally shows how many 40, 60, and 80 lb bags of premix the same job takes.<\/li>\n<li><strong>Quote button:<\/strong> links the result to your contact, quote, or shop page.<\/li>\n<li><strong>Imperial or metric.<\/strong><\/li>\n<li>A block and a shortcode, <code>[pilequote]<\/code>, or <code>[pilequote material=\"gravel\"]<\/code> for one material.<\/li>\n<\/ul>\n\n<p>Private and light: the math runs in the visitor's browser. The plugin sends nothing anywhere, sets no cookies, adds no tracking,\nand loads its small script and stylesheet only on pages that show a calculator.<\/p>\n\n<h4>How the numbers are worked out<\/h4>\n\n<ul>\n<li>Volume = area x depth. A cubic yard is 27 cubic feet; a cubic meter is 100 x 100 x 100 cm.<\/li>\n<li>Weight = volume x the density you set. The gravel and sand default, 1.35 tons per cubic yard (1.6 tonnes per cubic meter), is a\n50 lb bag filling 0.5 cubic feet, the figure retailers list for QUIKRETE all-purpose gravel. Use your own figure.<\/li>\n<li>Concrete bags use the yields on the QUIKRETE Concrete Mix data sheet: 0.30, 0.45, and 0.60 cubic feet for 40, 60, and 80 lb bags.<\/li>\n<li>Unit conversions use NIST Handbook 44 (1 short ton = 0.90718474 tonnes, 1 cubic yard = 0.764554857984 cubic meters).<\/li>\n<\/ul>\n\n<p>Results are estimates for planning an order. Compaction, moisture, and uneven ground change the real amount, so the extra\npercentage setting is there for you to cover it.<\/p>\n\n<p>The calculator code is tested against hand-worked examples and against the engine behind the free\n<a href=\"https:\/\/jesse-py.github.io\/diy-project-calculators\/\">DIY Project Calculators<\/a> site.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install from Plugins &gt; Add New, or upload the <code>pilequote-material-calculator<\/code> folder to <code>\/wp-content\/plugins\/<\/code>, then activate it.<\/li>\n<li>Go to Settings &gt; Material Calculator. Pick your units, enter prices if you want them shown, and add your quote page link.<\/li>\n<li>Add the Material Calculator block to a page, or paste <code>[pilequote]<\/code>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20with%20my%20theme%20or%20page%20builder%3F\"><h3>Does it work with my theme or page builder?<\/h3><\/dt>\n<dd><p>It uses your theme's fonts and colors and works anywhere a shortcode or block works, including the classic editor.<\/p><\/dd>\n<dt id=\"can%20i%20show%20only%20one%20material%3F\"><h3>Can I show only one material?<\/h3><\/dt>\n<dd><p>Yes. In the block, pick the material in the sidebar. With the shortcode, add <code>material=\"mulch\"<\/code> (or topsoil, compost, gravel,\nsand, concrete).<\/p><\/dd>\n<dt id=\"i%20sell%20gravel%20by%20the%20ton.\"><h3>I sell gravel by the ton.<\/h3><\/dt>\n<dd><p>In Settings &gt; Material Calculator, set Gravel to \"Sold by: ton\" and enter the density your quarry gives you (tons per cubic yard).<\/p><\/dd>\n<dt id=\"does%20it%20collect%20visitor%20data%3F\"><h3>Does it collect visitor data?<\/h3><\/dt>\n<dd><p>No. Nothing the visitor types leaves their browser.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Let customers work out how many yards or tons of mulch, topsoil, gravel, sand, or concrete they need, priced with your rates.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/407290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=407290"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/smalltoolshop"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=407290"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=407290"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=407290"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=407290"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=407290"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=407290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}