Metaobjects - Custom data type money is returning an unexpected value

Metaobjects - Custom data type money is returning an unexpected value

Rakkie
Shopify Partner
6 0 1

In my metafield, I create one metafield type money then I inserted 1 in USD as default value. My store available 3 markets places which's EUR, USD and CNY
When query metaobject to get that metafield there was an unexpected result on that such as: 
1. when query language in EN-EN (USD) value display: 

{
  "data": {
    "metaobjects": {
      "nodes": [
        {
          "handle": ".....",
          "fields": [
            {
              "key": "money",
              "value": "{\"amount\":\"1.0\",\"currency_code\":\"USD\"}",
              "type": "money"
            }
          ]
        }
      ]
    }
  },
  "extensions": {
    "context": {
      "country": "EN",
      "language": "EN"
    }
  }
}

2. when query language in DE-DE (EUR) value display:

{
  "data": {
    "metaobjects": {
      "nodes": [
        {
          "handle": ".....",
          "fields": [
            {
              "key": "money",
              "value": "{\"amount\":\"1.95\",\"currency_code\":\"EUR\"}",
              "type": "money"
            }
          ]
        }
      ]
    }
  },
  "extensions": {
    "context": {
      "country": "DE",
      "language": "DE"
    }
  }
}



3. when query language in CN-ZH (CNY) value display: 

{
  "data": {
    "metaobjects": {
      "nodes": [
        {
          "handle": ".....",
          "fields": [
            {
              "key": "money",
              "value": "{\"amount\":\"8.0\",\"currency_code\":\"CNY\"}",
              "type": "money"
            }
          ]
        }
      ]
    }
  },
  "extensions": {
    "context": {
      "country": "CN",
      "language": "ZH"
    }
  }
}

 

The issue is by the shopify automatically exchange rate conversion not correctly on 1 USD = 1.95 EUR.
Anyone here can help with issue that I mention?

Thanks

Replies 0 (0)