0

In a Gatsby project, combined with a Contentful Space, I have a decimal field for setting a product price (see image below)

You see the price with a comma (Dutch locale f.i.), while I need it with a decimal point, to process the decimal number further. What should I do to accept the (en-US) decimal point?

Contentful

@Gordon Burgett: This is what I entered on the command line, and the result: curl Contentful {follow the link; the picture is not showing}

@GordonBurgett: Well, I see the price with a decimal point. But now the question lies with Snipcart; I test my app, deployed to Netlify. And Snipcart verifies the price, and then it goes wrong. For some reason, it does not recognize the price.

GraphiQL

Ad Rienks
  • 400
  • 1
  • 6
  • 15
  • would you please post what this entry looks like when you access it via the API? `curl -H "Authorization: Bearer $CONTENTFUL_ACCESS_TOKEN" https://cdn.contentful.com/spaces/$CONTENTFUL_SPACE_ID/entries/{the entry id}?locale=*` – Gordon Burgett Mar 20 '20 at 14:06
  • @GordonBurgett: "The resource could not be found" – Ad Rienks Mar 20 '20 at 18:57
  • That means it's not published. When you do `gatsby develop`, can you query the price in the graphIQL editor? What is the result? – Gordon Burgett Mar 20 '20 at 19:45

0 Answers0