You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to fetch the data with currencyCode in the URL but have no success, only default currency is returned
It is stated in the documentation that: The default strategy is to return the price in the currency of the current session request context, which is determined firstly by any ?currencyCode=XXX query parameter on the request, and secondly by the defaultCurrencyCode of the Channel.
To Reproduce
Steps to reproduce the behavior:
Configure multiple currencies in the channel
Add prices on the product variant in different currencies
Open postman or any other HTTP client and execute the query
http://localhost:3000/shop-api?languageCode=en¤cyCode=EUR
query Search {
search(input: { collectionId: "12" }) {
totalItems
items {
productName
price {
... on PriceRange {
min
max
}
... on SinglePrice {
value
}
}
currencyCode
priceWithTax {
... on PriceRange {
min
max
}
... on SinglePrice {
value
}
}
}
}
}
Describe the bug
I'm trying to fetch the data with currencyCode in the URL but have no success, only default currency is returned
It is stated in the documentation that: The default strategy is to return the price in the currency of the current session request context, which is determined firstly by any ?currencyCode=XXX query parameter on the request, and secondly by the defaultCurrencyCode of the Channel.
To Reproduce
Steps to reproduce the behavior:
Result
{ "data": { "search": { "totalItems": 1, "items": [ { "productName": "standart test product 1", "price": { "value": 2500 }, "currencyCode": "USD", "priceWithTax": { "value": 2500 } } ] } } }
Expected behavior
to get the currencyCode in EUR and price configured in EUR in the admin panel
The text was updated successfully, but these errors were encountered: