Hello i am trying to link my currency converter plugin to the icons in the top of the screen, can you advise the best way to do this?
The Plugin vendor said it is entirely possible by: What you will have to do is add an argument to that link, so that it tells the Currency Switcher to activate a specific currency. The link would look like this: https://www.marygrant.com/shop/?aelia_cs_currency=USD (for US Dollars).
The only thing you will have to do is determine the current page URL, so that you can simply append the argument dynamically and reload the same page with a new currency. This means that:
– When the customer is on https://www.marygrant.com/, the links will point to https://www.marygrant.com/?aelia_cs_currency=USD.
– When she will be on https://www.marygrant.com/product/asymetrical-dress-16/, the links will point to https://www.marygrant.com/product/asymetrical-dress-16/?aelia_cs_currency=USD.
Can you please advise the best way to do this?