{"id":11365,"date":"2025-04-04T14:00:00","date_gmt":"2025-04-04T14:00:00","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/?p=11365"},"modified":"2025-10-03T15:45:35","modified_gmt":"2025-10-03T10:15:35","slug":"invalid-floating-point-number-in-property-price-in-shopify","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/invalid-floating-point-number-in-property-price-in-shopify\/","title":{"rendered":"How to Fix Invalid Floating Point Number in Property \u201cPrice\u201d in Shopify?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Technical errors on your site can make the products disappear from Google. One such issue with Shopify stores is the Invalid Floating Point Number in Property \u201cPrice\u201d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you get this error in GSC or Merchant Center, fix it ASAP!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This critical error affects the product&#8217;s visibility and ranking on Google.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"309\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/1-Invalid-Floating-Point-Number-in-Property-Price-error-shown.png\" alt=\"Invalid Floating Point Number in Property Price Error Shown\" class=\"wp-image-11367\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/1-Invalid-Floating-Point-Number-in-Property-Price-error-shown.png 950w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/1-Invalid-Floating-Point-Number-in-Property-Price-error-shown-250x81.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/1-Invalid-Floating-Point-Number-in-Property-Price-error-shown-700x228.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/1-Invalid-Floating-Point-Number-in-Property-Price-error-shown-768x250.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/1-Invalid-Floating-Point-Number-in-Property-Price-error-shown-403x131.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/1-Invalid-Floating-Point-Number-in-Property-Price-error-shown-120x39.png 120w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">In this blog post, I share everything you need to fix the error in your Shopify store.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What Does it Mean?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s related to invalid price formatting in the structured data added to the products. Structured data or schema markup is the code that Google uses to understand the read attributes like name, price, ratings, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google expects the price attribute value to be a floating point without any special characters or currency symbols. However, some themes may include the currency symbol or a comma in the price value.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For e.g.:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>2799,00<\/li>\n\n\n\n<li>\u00a32799.00<\/li>\n\n\n\n<li>2799 Euro<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The correct value of \u201cprice\u201d in schema markup should be: <strong>2799.0<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s a common error for stores using commas for decimal points in the price currency.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Shopify Fix for Invalid Price Format in Property \u201cPrice\u201d in Offers<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Our team regularly fixes this type of schema markup issue in Shopify stores. Here&#8217;s the step-by-step method to fix the Invalid Floating Point Number in Property \u201cPrice\u201d issue in Shopify:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Review the Structured Data<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <a href=\"https:\/\/search.google.com\/test\/rich-results\" target=\"_blank\" rel=\"noopener\">Google Rich Results Test<\/a> tool and test a product page URL from your Shopify store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the results, navigate to the <strong>Invalid Floating Point Number in Property \u201cPrice\u201d issue<\/strong> and check the price value.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"868\" height=\"297\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/2-Review-the-Structured-Data.png\" alt=\"Review the Structure Data\" class=\"wp-image-11369\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/2-Review-the-Structured-Data.png 868w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/2-Review-the-Structured-Data-250x86.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/2-Review-the-Structured-Data-700x240.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/2-Review-the-Structured-Data-768x263.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/2-Review-the-Structured-Data-403x138.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/2-Review-the-Structured-Data-120x41.png 120w\" sizes=\"auto, (max-width: 868px) 100vw, 868px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Fix the Issue in Theme File<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Log into your Shopify admin and go to <strong>Online Store &gt; Themes<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click the three dots beside the customize button and click <strong>Edit code<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"321\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/3-Edit-Code-by-Clicking-Three-Dots.png\" alt=\"Edit Code by Clicking Three Dots\" class=\"wp-image-11371\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/3-Edit-Code-by-Clicking-Three-Dots.png 924w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/3-Edit-Code-by-Clicking-Three-Dots-250x87.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/3-Edit-Code-by-Clicking-Three-Dots-700x243.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/3-Edit-Code-by-Clicking-Three-Dots-768x267.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/3-Edit-Code-by-Clicking-Three-Dots-403x140.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/3-Edit-Code-by-Clicking-Three-Dots-120x42.png 120w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Caution: <\/strong>Editing theme files without any technical expertise can break your site. Do it at your own risk or consult an expert.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now, look for the liquid file that\u2019s generating the structured data for the products. The product schema markup code look like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"484\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/4-Product-Schema-Markup-Code.png\" alt=\"Products Schema Markup Code\" class=\"wp-image-11373\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/4-Product-Schema-Markup-Code.png 974w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/4-Product-Schema-Markup-Code-250x124.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/4-Product-Schema-Markup-Code-700x348.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/4-Product-Schema-Markup-Code-768x382.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/4-Product-Schema-Markup-Code-403x200.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/4-Product-Schema-Markup-Code-964x479.png 964w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/4-Product-Schema-Markup-Code-120x60.png 120w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">It could be inside the <strong>theme.liquid<\/strong>, <strong>main-product.liquid<\/strong>, or even a custom liquid file. Open the liquid files, and search for \u201cld+json\u201d to see if it contains the schema markup code or not.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Expert Tip:<\/strong> If the code is not present inside the theme.liquid or main-product.liquid files, it must be coming from a custom snippet. These snippets are rendered inside the theme or product liquid files using syntax like {% render \u2018custom-liquid-file\u2019 %}<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have the product schema markup code in Shopify, modify the \u201cprice\u201d attribute line value to display the correct price without any currency symbol or commas.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s the correct liquid syntax:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;price&#8221;: {{ product.price | money_without_currency | replace: &#8216;,&#8217;, &#8216;.&#8217; | json }},<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the above code:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>product.price:<\/strong> Outputs the price in cents (e.g., 279900 for $2799.00).<\/li>\n\n\n\n<li><strong>| money_without_currency:<\/strong> Converts it to a decimal without the currency symbol (e.g., 2799.00 or 2799,00, depending on locale).<\/li>\n\n\n\n<li><strong>| replace: &#8216;,&#8217;, &#8216;.&#8217;:<\/strong> Ensures the decimal separator is a dot (.), replacing any commas (,).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Then, save the liquid file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Verify &amp; Submit for Validation<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <a href=\"https:\/\/search.google.com\/test\/rich-results\" target=\"_blank\" rel=\"noopener\">Google Rich Results Test<\/a> tool and test the product page again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You should see the critical issue fixed in the test.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"615\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/5-Verify-Submit-for-Validation.png\" alt=\"Verify Submit for Validation\" class=\"wp-image-11375\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/5-Verify-Submit-for-Validation.png 948w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/5-Verify-Submit-for-Validation-250x162.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/5-Verify-Submit-for-Validation-700x454.png 700w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/5-Verify-Submit-for-Validation-768x498.png 768w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/5-Verify-Submit-for-Validation-403x261.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/5-Verify-Submit-for-Validation-120x78.png 120w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Once verified, open Google Search Console, and go to <strong>Shopping &gt; Merchant listings<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"325\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/6-Select-Merchant-Lisitng-Under-Shopping.png\" alt=\"Select Merchant Listing Under Shopping\" class=\"wp-image-11377\" srcset=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/6-Select-Merchant-Lisitng-Under-Shopping.png 495w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/6-Select-Merchant-Lisitng-Under-Shopping-250x164.png 250w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/6-Select-Merchant-Lisitng-Under-Shopping-403x265.png 403w, https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2025\/04\/6-Select-Merchant-Lisitng-Under-Shopping-120x79.png 120w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Select the <strong>Invalid floating point number in property &#8220;price&#8221; (in &#8220;offers&#8221;) <\/strong>issue and submit it for Validation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, Google will verify the fixes over time and on a successful validation, the issue will be solved automatically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Mistakes to Avoid<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Fixing the Google Search Console issues in Shopify is a good decision. But, there are some pointers to consider while doing it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Not testing changes &#8211; <\/strong>Every time you modify Shopify liquid files, make sure to test the pages manually. Look for any layout issues or errors at the very bottom of the page.<\/li>\n\n\n\n<li><strong>Editing live theme &#8211; <\/strong>For major updates or if you\u2019re a beginner, it\u2019s recommended that you copy the live theme and test the changes in the copied theme to prevent any major issues.<\/li>\n\n\n\n<li><strong>Following non-experts &#8211; <\/strong>Blindly following the so-called experts on Shopify forums or on the internet can put you in trouble.<\/li>\n\n\n\n<li><strong>Ignoring the issue &#8211; <\/strong>This error can affect the overall rankings of the site and your products may not appear on Google. Meaning, a lost business opportunity.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Fix all Schema Markup Issues<\/strong><strong>at Just $100<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>FAQs<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. How Long Does it Take for the Issue to Fix?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It can take up to 1-2 weeks for Google to validate and mark the issues as fixed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Do I Need Coding Language to Fix the Issue?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, you need Shopify Liquid knowledge to fix the Invalid Floating Point Number in Property \u201cPrice\u201d error. In case you\u2019re not familiar with it, we suggest contacting us.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Missing field &#8220;shippingDetails&#8221; (in &#8220;offers&#8221;) &#8211; How to Fix it?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The above error means that shipping details are not mentioned in the product schema. They\u2019re required for Google Merchant Center to display the products in the shopping tab.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. What are the Recommended Schema Markups for Shopify?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We suggest these schema markup types for Shopify stores:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Products<\/li>\n\n\n\n<li>Reviews &amp; ratings<\/li>\n\n\n\n<li>Returns &amp; shipping policy<\/li>\n\n\n\n<li>Organization<\/li>\n\n\n\n<li>Website<\/li>\n<\/ul>\n\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"How Long Does it Take for the Issue to Fix?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"It can take up to 1-2 weeks for Google to validate and mark the issues as fixed.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Do I Need Coding Language to Fix the Issue?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Yes, you need Shopify Liquid knowledge to fix the Invalid Floating Point Number in Property \u201cPrice\u201d error. In case you\u2019re not familiar with it, we suggest contacting us.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Missing field \u201cshippingDetails\u201d (in \u201coffers\u201d) \u2013 How to Fix it?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"The above error means that shipping details are not mentioned in the product schema. They\u2019re required for Google Merchant Center to display the products in the shopping tab.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What are the Recommended Schema Markups for Shopify?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"We suggest these schema markup types for Shopify stores: Products, Reviews & ratings, Returns & shipping policy, Organization, Website.\"\n      }\n    }\n  ]\n}\n<\/script>\n\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Helpful Resources for Shopify SEO<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Keep going! Here are some of our expert articles to read for Shopify SEO:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/meetanshi.com\/blog\/shopify-seo-issues\/\">Common Shopify SEO Issues<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/meetanshi.com\/blog\/how-to-fix-shopify-duplicate-content\/\">Fix for Duplicate Content in Shopify<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/meetanshi.com\/blog\/shopify-seo-checklist\/\">Shopify SEO Checklist<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Technical errors on your site can make the products disappear from Google. One such issue with Shopify stores is the Invalid Floating Point Number in&#8230;<\/p>\n","protected":false},"author":32,"featured_media":11387,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[787],"tags":[],"class_list":["post-11365","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shopify"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/11365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=11365"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/11365\/revisions"}],"predecessor-version":[{"id":23158,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/11365\/revisions\/23158"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media\/11387"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=11365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=11365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=11365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}