I am using magento2. The issue i am facing is i want to apply currency filtering. My default currency is USD and allowed currencies are CAD and EUR. When i change the currency from my frontend and pass that in the haeders of query it is not working properly and showing price wrt USD only.
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${jwt_client}`,
'Store': `${selected_store}`,
'Content-Currency': `${selected_currency}`
},
body: JSON.stringify({
query: `
{
customerOrders {
items {
order_number
id
created_at
grand_total
status
}
}
}
`,
variables: {},
}),
This is my query. I am getting currency_code. But still it is not setting in headers. Also, in pages like cart and others the headers are setting but i am facing this issue in orders page.