Configuring product price meta tag formatting on PDP
FastStore lets you control how the
product:price:amount meta tag is formatted on Product Detail Pages (PDPs). Use the minPriceAmountFractionDigits setting in discovery.config.js to define the minimum number of decimal places displayed in this meta tag. This is useful to ensure consistency between:- The Open Graph meta tag (
product:price:amount). - The structured data included in the PDP HTML (
ProductJsonLdschema). - External integrations such as Google Merchant Center.
Step 1: Review recommendations
Before applying this setting, make sure you actually need to enforce a fixed number of decimal places in your SEO metadata. This configuration directly affects how the
product:price:amount meta tag is rendered, and its value must be consistent with the product price used in the schema on the PDP (<script type="application/ld+json">).
If the number of decimal places differs between the meta tag and the structured data, platforms such as Google Merchant Center may flag a price mismatch issue. To avoid this, choose a value that aligns with your store's currency format and pricing strategy.For example:
- ✅ Schema price:
3.20→ Meta tag:3.20 - ❌ Schema price:
3.20→ Meta tag:3.2
Step 2: Update discovery.config.js
-
Open your FastStore project and locate the
discovery.config.jsfile. -
In the
seosection, addminPriceAmountFractionDigitswith the number of decimal places you want to enforce._10seo: {_10// ..._10pdp: {_10titleTemplate: '%s | FastStore PDP',_10descriptionTemplate: '%s products on FastStore Product Detail Page',_10minPriceAmountFractionDigits: 2,_10},_10}, -
Deploy the change above.
Step 3: Validate the result
-
Open a PDP in your store.
-
Open your browser's DevTools (or use View Page Source).
-
Confirm that the
<meta property="product:price:amount">value uses the configured number of decimal places. For example:_10<meta property="product:price:amount" content="3.20" /> -
On the same page, search for
application/ld+jsonand check the productoffers.pricevalue in the PDP schema. -
Confirm that
product:price:amountand schemaoffers.priceuse the same formatting and precision (for example,3.20, not3.2).
Validate more than one PDP after deployment to confirm consistent formatting between the meta tag and schema values.