Use params on URL
Last updated
Last updated
Instead of having to change currencies by choosing from a dropdown list, you can change them on the URL by changing the currency code.
eg: {your-site-url}.com/?yay-currency=EUR. You can convert to USD currency by replacing EUR with USD.
To do this, you can add the following code to Code Snippets or to the file functions.php
of your store theme.
It is recommended to add it tofunctions.php
of child theme so that it will be preserved when you update the theme.
In case you don't want to use this parameter: ?yay-currency. You can use this hook to rename it: yay_currency_param_name