{"id":246951,"date":"2025-09-03T19:49:52","date_gmt":"2025-09-03T19:49:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/dynamic-metal-price-calculator\/"},"modified":"2026-09-03T13:57:26","modified_gmt":"2026-09-03T13:57:26","slug":"dynamic-metal-price-calculator","status":"publish","type":"plugin","link":"https:\/\/sv.wordpress.org\/plugins\/dynamic-metal-price-calculator\/","author":23347879,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"4.0.1","stable_tag":"4.0.1","tested":"7.1.2","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Dynamic Metal Price Calculator","header_author":"aolo","header_description":"Calculate jewellery product prices dynamically in WooCommerce using today's metal rates, base price, weight, wastage, making charge and markup.","assets_banners_color":"","last_updated":"2026-09-03 13:57:26","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/tresifylab.com\/","header_plugin_uri":"https:\/\/tresifylab.com\/case-studies\/dynamic-metal-price-calculator","header_author_uri":"https:\/\/tresifylab.com\/","rating":0,"author_block_rating":0,"active_installs":50,"downloads":1478,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.2":{"tag":"1.0.2","author":"aolo","date":"2026-06-03 05:59:40","revision":3558822},"2.0.1":{"tag":"2.0.1","author":"aolo","date":"2026-06-03 05:59:40","revision":3558822},"2.2.1":{"tag":"2.2.1","author":"aolo","date":"2026-06-03 05:59:40","revision":3558822},"3.0.0":{"tag":"3.0.0","author":"aolo","date":"2026-06-03 05:59:40","revision":3558822},"3.0.1":{"tag":"3.0.1","author":"aolo","date":"2026-06-03 05:59:40","revision":3558822},"3.0.2":{"tag":"3.0.2","author":"aolo","date":"2026-06-03 05:59:40","revision":3558822},"3.0.3":{"tag":"3.0.3","author":"aolo","date":"2026-06-03 11:09:15","revision":3559257},"4.0.1":{"tag":"4.0.1","author":"aolo","date":"2026-09-03 13:57:26","revision":3679849}},"upgrade_notice":{"4.0.1":"<p>Upgrade to 4.0.1 for authoritative price rounding, full Metals &amp; Purities catalog management, product-level metal controls, and enhanced security. Fully backward-compatible with all existing products and rates.<\/p>"},"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3557521,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.2","2.0.1","2.2.1","3.0.0","3.0.1","3.0.2","3.0.3","4.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Metal Rates and Setup Checklist admin screen","2":"Metals &amp; Purities Manager with custom options and usage tracking","3":"Authoritative Price Rounding configuration","4":"Product-level allowed metal selection and dynamic pricing fields","5":"Frontend product display with optional transparent price breakdown"}},"plugin_section":[],"plugin_tags":[15510,173471,237298,15511,286],"plugin_category":[45],"plugin_contributors":[256179],"plugin_business_model":[],"class_list":["post-246951","plugin","type-plugin","status-publish","hentry","plugin_tags-gold","plugin_tags-jewellery","plugin_tags-jewelry","plugin_tags-silver","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-aolo","plugin_committers-aolo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/dynamic-metal-price-calculator\/assets\/icon-256x256.png?rev=3557521","icon_2x":"https:\/\/ps.w.org\/dynamic-metal-price-calculator\/assets\/icon-256x256.png?rev=3557521","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Dynamic Metal Price Calculator provides live market-rate pricing for WooCommerce jewellery and precious metals. It automatically computes product prices based on daily gold and silver rates, metal purity (karat), product weight, and store pricing rules.<\/p>\n\n<h4>Core Highlights<\/h4>\n\n<ul>\n<li><strong>Daily Metal Rates<\/strong>: Set daily 24K Gold and Silver base prices per gram from your admin dashboard.<\/li>\n<li><strong>Metals &amp; Purities<\/strong>: Complete catalog management for 24K, 22K, 18K, 14K, Silver, Platinum, and custom formulas or fixed rates.<\/li>\n<li><strong>Deterministic Pricing<\/strong>: (Metal Rate * Purity % * Weight) + Base Price + Making Charges + Wastage + Markup + Tax + Shipping.<\/li>\n<li><strong>Authoritative Price Rounding<\/strong>: Clean up odd price totals into shopper-friendly figures (None, Nearest 10, 50, 100, or Custom) across cart and checkout.<\/li>\n<li><strong>Product Whitelists<\/strong>: Restrict metal selections per product.<\/li>\n<li><strong>Variable Products<\/strong>: Set custom weights, metals, and charges per variation.<\/li>\n<li><strong>Automatic Sale Pricing<\/strong>: Displays dynamic metal prices as sale prices with strikethrough regular prices.<\/li>\n<li><strong>100% Private<\/strong>: Fully self-contained on your server with zero external calls and zero tracking.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Log in to your WordPress administrator dashboard.<\/li>\n<li>Navigate to <strong>Plugins<\/strong> -&gt; <strong>Add New<\/strong>.<\/li>\n<li>Click <strong>Upload Plugin<\/strong> and select the <code>dynamic-metal-price-calculator.zip<\/code> package, or search for <code>Dynamic Metal Price Calculator<\/code>.<\/li>\n<li>Click <strong>Install Now<\/strong>, then click <strong>Activate<\/strong>.<\/li>\n<li>Open <strong>Metal Prices<\/strong> -&gt; <strong>Metal Rates<\/strong> in your admin menu.<\/li>\n<li>Enter current 24K Gold and Silver rates per gram and save.<\/li>\n<li>Open any WooCommerce product to assign metal type, weight, and pricing rules.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20does%20the%20pricing%20calculation%20work%3F\"><h3>How does the pricing calculation work?<\/h3><\/dt>\n<dd><p>The pricing engine computes the product price deterministically:\n1. Resolves base metal rate (e.g. Gold Rate * Purity % \/ 100).\n2. Multiplies rate by item weight in grams.\n3. Adds fixed base price (e.g. stones, diamonds, packaging).\n4. Adds percentage making\/labour charge.\n5. Adds percentage wastage allowance.\n6. Adds percentage retail markup.\n7. Adds percentage GST \/ sales tax.\n8. Adds flat shipping fees.\n9. Applies authoritative price rounding (Nearest 10, 50, 100, or Custom increment).<\/p><\/dd>\n<dt id=\"what%20is%20the%20difference%20between%20active%20and%20show%20in%20dropdown%3F\"><h3>What is the difference between Active and Show in Dropdown?<\/h3><\/dt>\n<dd><ul>\n<li><strong>Active (On\/Off)<\/strong>: Master switch. Inactive metals cannot be used in calculations for new items.<\/li>\n<li><strong>Show in Dropdown (On\/Off)<\/strong>: Visibility switch. Turning this OFF hides the metal from new product selectors while allowing existing products using this metal to continue calculating prices accurately.<\/li>\n<\/ul><\/dd>\n<dt id=\"how%20do%20i%20restrict%20available%20metals%20for%20a%20specific%20product%3F\"><h3>How do I restrict available metals for a specific product?<\/h3><\/dt>\n<dd><p>On the product edit screen, use the <strong>Allowed Metals for this Product<\/strong> checklist. Leaving all unchecked allows all globally active metals. Checking one or more metals restricts that product and its variations to only the checked options.<\/p><\/dd>\n<dt id=\"how%20does%20price%20rounding%20work%3F\"><h3>How does Price Rounding work?<\/h3><\/dt>\n<dd><p>Price rounding is applied once to the final calculated price using standard half-up arithmetic:\n* <strong>None<\/strong>: Exact calculated price.\n* <strong>Nearest 10<\/strong>: e.g. 2,254 -&gt; 2,250; 2,256 -&gt; 2,260.\n* <strong>Nearest 50<\/strong>: e.g. 2,201 -&gt; 2,200; 2,249 -&gt; 2,250; 2,276 -&gt; 2,300.\n* <strong>Nearest 100<\/strong>: e.g. 2,249 -&gt; 2,200; 2,250 -&gt; 2,300.\n* <strong>Custom Increment<\/strong>: Any numeric increment (e.g. 25, 5, or 0.50).\nRounding is authoritative and carries through into the cart, checkout, payment gateway, and placed orders.<\/p><\/dd>\n<dt id=\"how%20do%20i%20configure%20variable%20products%3F\"><h3>How do I configure Variable Products?<\/h3><\/dt>\n<dd><ol>\n<li>In a Variable Product, go to the <strong>Variations<\/strong> tab and expand a variation.<\/li>\n<li>Check the box: <strong>\"Use Dynamic Metal Price Calculator for this variation\"<\/strong>.<\/li>\n<li>Select the metal type and enter the variation's weight in grams.<\/li>\n<li>Leave charge fields blank to inherit parent product or global defaults.<\/li>\n<li>Save variations.<\/li>\n<\/ol><\/dd>\n<dt id=\"can%20i%20use%20custom%20formulas%20or%20fixed%20rates%3F\"><h3>Can I use custom formulas or fixed rates?<\/h3><\/dt>\n<dd><p>Yes. In the Metals &amp; Purities Manager, choose the <strong>Custom<\/strong> group:\n* Enter a mathematical formula referencing variables <code>gold_rate<\/code> or <code>silver_rate<\/code> with <code>+<\/code>, <code>-<\/code>, <code>*<\/code>, <code>\/<\/code>, <code>(<\/code>, <code>)<\/code> (e.g. <code>gold_rate * 1.25<\/code>).\n* Or simply enter a fixed rate (e.g. <code>500<\/code>) without any formula.\nAll formulas are parsed using a safe Reverse Polish Notation (RPN) stack with zero arbitrary code execution.<\/p><\/dd>\n<dt id=\"what%20if%20a%20metal%20option%20does%20not%20appear%20in%20the%20product%20dropdown%3F\"><h3>What if a metal option does not appear in the product dropdown?<\/h3><\/dt>\n<dd><ol>\n<li>Verify that the metal is <strong>Active<\/strong> and <strong>Show in Dropdown<\/strong> is enabled in the Metals &amp; Purities Manager.<\/li>\n<li>Check if the product has an <strong>Allowed Metals<\/strong> whitelist that excludes this metal.<\/li>\n<li>Save settings and refresh the product editor page.<\/li>\n<\/ol><\/dd>\n<dt id=\"does%20this%20plugin%20fetch%20live%20rates%20from%20an%20external%20api%3F\"><h3>Does this plugin fetch live rates from an external API?<\/h3><\/dt>\n<dd><p>No. Store owners enter manual daily rates in <strong>Metal Prices<\/strong> -&gt; <strong>Metal Rates<\/strong>. This gives merchants absolute control over pricing without relying on third-party API keys or rate limits.<\/p><\/dd>\n<dt id=\"can%20i%20hide%20certain%20charge%20details%20from%20shoppers%20on%20the%20product%20page%3F\"><h3>Can I hide certain charge details from shoppers on the product page?<\/h3><\/dt>\n<dd><p>Yes. In <strong>Metal Prices<\/strong> -&gt; <strong>Frontend Display Controls<\/strong>, toggle individual components on or off. Hidden components remain active in the background calculation.<\/p><\/dd>\n<dt id=\"does%20this%20plugin%20send%20data%20outside%20my%20server%3F\"><h3>Does this plugin send data outside my server?<\/h3><\/dt>\n<dd><p>No. Dynamic Metal Price Calculator is 100% self-contained. It makes zero external HTTP requests, contains zero tracking, and does not collect or transmit store or customer data.<\/p><\/dd>\n<dt id=\"is%20the%20plugin%20compatible%20with%20high-performance%20order%20storage%20%28hpos%29%3F\"><h3>Is the plugin compatible with High-Performance Order Storage (HPOS)?<\/h3><\/dt>\n<dd><p>Yes. The plugin declares official compatibility with WooCommerce HPOS (<code>custom_order_tables<\/code>) and WooCommerce Cart &amp; Checkout Blocks.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>4.0.1<\/h4>\n\n<ul>\n<li>Feature: Added authoritative Price Rounding on final calculated prices with None, Nearest 10, Nearest 50, Nearest 100, and Custom increment modes.<\/li>\n<li>Feature: Complete Metals &amp; Purities Manager allowing store owners to add, edit, rename, activate, deactivate, and safely delete metal options.<\/li>\n<li>Feature: Product-Level Metal Selection whitelist allowing individual products to restrict available metals.<\/li>\n<li>Feature: Decoupled Active status from Dropdown visibility controls.<\/li>\n<li>Feature: Safe In-Use deletion guard preventing data corruption on referenced metals.<\/li>\n<li>Feature: Built-in options (Gold, Silver, Karats) can be managed, disabled, or safely deleted when unused.<\/li>\n<li>Feature: Safe formula evaluator using Reverse Polish Notation (RPN) with zero eval() execution.<\/li>\n<li>Privacy: 100% self-contained architecture with zero external requests, no external tracking, and no external popups.<\/li>\n<li>Privacy: Added registered WordPress Privacy Policy guide via wp_add_privacy_policy_content().<\/li>\n<li>Security: Hardened variation save nonce verification and capability checks on all product saves.<\/li>\n<li>UX: Redesigned admin interface with setup checklist, collapsible sections, usage badges, and admin footer credits.<\/li>\n<\/ul>\n\n<h4>3.0.3<\/h4>\n\n<ul>\n<li>Improved admin panel layout with collapsible sections<\/li>\n<li>Clearer field explanations and setup guidance<\/li>\n<li>Fixed WooCommerce regular\/sale price display for dynamic metal pricing products<\/li>\n<li>Added automatic calculated sale price behavior when manual sale price is blank<\/li>\n<\/ul>\n\n<h4>3.0.2<\/h4>\n\n<ul>\n<li>Added frontend extra charges display settings to selectively hide or show breakdown components<\/li>\n<\/ul>\n\n<h4>3.0.1<\/h4>\n\n<ul>\n<li>Updated documentation and confirmed compatibility with WordPress 7.0<\/li>\n<\/ul>\n\n<h4>3.0.0<\/h4>\n\n<ul>\n<li>Major update: Added full variable product support with variation-level pricing fields<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>Added per-product shipping override<\/li>\n<li>Improved sanitization of input fields<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Introduced markup percentage option<\/li>\n<li>Performance improvements<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Initial public release<\/li>\n<\/ul>","raw_excerpt":"Live metal pricing for WooCommerce jewellery with karat, weight, GST, markup, shipping, price rounding, and full metal management.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/246951","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=246951"}],"author":[{"embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/aolo"}],"wp:attachment":[{"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=246951"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=246951"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=246951"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=246951"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=246951"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sv.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=246951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}