moltin / gatsby-source-moltin

🚀 Gatsby source plugin for building Elastic Path Commerce Cloud powered eCommerce websites
https://www.gatsbyjs.org/packages/@moltin/gatsby-source-moltin
MIT License
21 stars 4 forks source link

Currency format is wrong #19

Closed shendriksza closed 5 years ago

shendriksza commented 5 years ago

I've changed the currency format on Moltin. The change is visible when I make curl request, but on GraphiQL the changes are not visible. I can only assume the gatsby-source-moltin library is at fault?

ynnoj commented 5 years ago

Have you rebuilt your store/Gatsby project since making the change at Moltin?

shendriksza commented 5 years ago

I did multiple times. I played around a bit now, and after changing the price on one of my items the format change kicked in on all products

ynnoj commented 5 years ago

You may have been hitting a cached product API response. Updating the currency should purge that cached response.

ynnoj commented 5 years ago

Sometimes you may also need to clear the Gatsby project .cache directory between builds. This is currently a known Gatsby issue.