0

I have some value that represent price. I want when i change locale in my navbar to convert that price. So i was wondering is it possible to do that with custom filter?

1 Answer 1

1

It's possible, yes. But instead of converting the price to an other currency on the frontend, you should get the price information from the backend in the currency you're requesting it, since it's a data and you shouldn't mess around with it on the frontend, especially because it's money.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.