🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Fix Invalid Floating Point Number in Property “Price” in Shopify?

By Vishal DaveUpdated on Apr 04, 2025 6 min read

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 “Price”.

If you get this error in GSC or Merchant Center, fix it ASAP!

This critical error affects the product’s visibility and ranking on Google.

Invalid Floating Point Number in Property Price Error Shown

In this blog post, I share everything you need to fix the error in your Shopify store.

What Does it Mean?

It’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.

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.

For e.g.:

  • 2799,00
  • £2799.00
  • 2799 Euro

The correct value of “price” in schema markup should be: 2799.0

It’s a common error for stores using commas for decimal points in the price currency.

Shopify Fix for Invalid Price Format in Property “Price” in Offers

Our team regularly fixes this type of schema markup issue in Shopify stores. Here’s the step-by-step method to fix the Invalid Floating Point Number in Property “Price” issue in Shopify:

Step 1: Review the Structured Data

Go to Google Rich Results Test tool and test a product page URL from your Shopify store.

In the results, navigate to the Invalid Floating Point Number in Property “Price” issue and check the price value.

Review the Structure Data

Step 2: Fix the Issue in Theme File

Log into your Shopify admin and go to Online Store > Themes.

Click the three dots beside the customize button and click Edit code.

Edit Code by Clicking Three Dots
Caution: Editing theme files without any technical expertise can break your site. Do it at your own risk or consult an expert.

Now, look for the liquid file that’s generating the structured data for the products. The product schema markup code look like this:

Products Schema Markup Code

It could be inside the theme.liquid, main-product.liquid, or even a custom liquid file. Open the liquid files, and search for “ld+json” to see if it contains the schema markup code or not.

Expert Tip: 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 ‘custom-liquid-file’ %}

Once you have the product schema markup code in Shopify, modify the “price” attribute line value to display the correct price without any currency symbol or commas.

Here’s the correct liquid syntax:

“price”: {{ product.price | money_without_currency | replace: ‘,’, ‘.’ | json }},

In the above code:

  • product.price: Outputs the price in cents (e.g., 279900 for $2799.00).
  • | money_without_currency: Converts it to a decimal without the currency symbol (e.g., 2799.00 or 2799,00, depending on locale).
  • | replace: ‘,’, ‘.’: Ensures the decimal separator is a dot (.), replacing any commas (,).

Then, save the liquid file.

Step 3: Verify & Submit for Validation

Go to Google Rich Results Test tool and test the product page again.

You should see the critical issue fixed in the test.

Verify Submit for Validation

Once verified, open Google Search Console, and go to Shopping > Merchant listings.

Select Merchant Listing Under Shopping

Select the Invalid floating point number in property “price” (in “offers”) issue and submit it for Validation.

Now, Google will verify the fixes over time and on a successful validation, the issue will be solved automatically.

Mistakes to Avoid

Fixing the Google Search Console issues in Shopify is a good decision. But, there are some pointers to consider while doing it:

  • Not testing changes – 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.
  • Editing live theme – For major updates or if you’re a beginner, it’s recommended that you copy the live theme and test the changes in the copied theme to prevent any major issues.
  • Following non-experts – Blindly following the so-called experts on Shopify forums or on the internet can put you in trouble.
  • Ignoring the issue – This error can affect the overall rankings of the site and your products may not appear on Google. Meaning, a lost business opportunity.
Fix all Schema Markup Issuesat Just $100

FAQs

1. How Long Does it Take for the Issue to Fix?

It can take up to 1-2 weeks for Google to validate and mark the issues as fixed.

2. Do I Need Coding Language to Fix the Issue?

Yes, you need Shopify Liquid knowledge to fix the Invalid Floating Point Number in Property “Price” error. In case you’re not familiar with it, we suggest contacting us.

3. Missing field “shippingDetails” (in “offers”) – How to Fix it?

The above error means that shipping details are not mentioned in the product schema. They’re required for Google Merchant Center to display the products in the shopping tab.

4. What are the Recommended Schema Markups for Shopify?

We suggest these schema markup types for Shopify stores:

  • Products
  • Reviews & ratings
  • Returns & shipping policy
  • Organization
  • Website

Helpful Resources for Shopify SEO

Keep going! Here are some of our expert articles to read for Shopify SEO:

Thanks!

Vishal Dave Full Image
Article byVishal Dave

Vishal is a technical writer, editor, and digital marketer with over four years of experience. On weekends, you can find him enjoying sunsets or reading books.