Using WP Menu system to trigger a change in current currency
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from RobertUK on February 7, 2023, 20:54Hello
I have a new theme for my site. I no longer want to use the choice of drop-down options that come with the plugin, but instead, use the example dropdown that came with the theme. Is it possible to use the built-in Menu system that comes with WordPress to create my own dropdown menu in the header of my site? I mean by adding Menu items that when clicked trigger a specific currency? If so, how do I find the link for each currency to trigger each event?
Regards
Robert
PS - see private data for purchase code
Hello
I have a new theme for my site. I no longer want to use the choice of drop-down options that come with the plugin, but instead, use the example dropdown that came with the theme. Is it possible to use the built-in Menu system that comes with WordPress to create my own dropdown menu in the header of my site? I mean by adding Menu items that when clicked trigger a specific currency? If so, how do I find the link for each currency to trigger each event?
Regards
Robert
PS - see private data for purchase code
Quote from Pablo Borysenco on February 8, 2023, 11:36Hello Robert
In this case, you need code customization. we have an example of how to work with custom links:
Please read this - https://currency-switcher.com/how-to-create-currency-links-without-shortcode
Hello Robert
In this case, you need code customization. we have an example of how to work with custom links:
Please read this - https://currency-switcher.com/how-to-create-currency-links-without-shortcode
Quote from RobertUK on February 8, 2023, 13:42Hi Pablo
Thanks for responding.
The link you sent explains how to insert data-currency=”USD” and class=”woocs_currency_link” into an A link, but not where it would go on the WP Menu?
Also, where would the jQuery function need to be placed? Does it already exist in the plugin's code, or does it need to be added elsewhere? The How-to page is lacking proper instructions, to be fair. If this How-to was written in more detail and fully explanatory, then we would not have to ask the question.
Regards
Robert
Hi Pablo
Thanks for responding.
The link you sent explains how to insert data-currency=”USD” and class=”woocs_currency_link” into an A link, but not where it would go on the WP Menu?
Also, where would the jQuery function need to be placed? Does it already exist in the plugin's code, or does it need to be added elsewhere? The How-to page is lacking proper instructions, to be fair. If this How-to was written in more detail and fully explanatory, then we would not have to ask the question.
Regards
Robert
Quote from Pablo Borysenco on February 9, 2023, 15:20Hello Robert
If you have no programming experience, you should hire a developer
Unfortunately, we do not have a ready-made solution for you, there is only an example of implementing links for switching currencies. You can use this example to implement your custom code
The main idea in the URL is you need to add the GET request "currency" with the currency code. an example: ?currency=USD
Hello Robert
If you have no programming experience, you should hire a developer
Unfortunately, we do not have a ready-made solution for you, there is only an example of implementing links for switching currencies. You can use this example to implement your custom code
The main idea in the URL is you need to add the GET request"currency" with the currency code. an example: ?currency=USD
Quote from RobertUK on February 17, 2023, 18:53Thanks
Hmmm... So, all I had to do was type ?currency=GBP or ?currency=USD or ?currency=EUR etc. as the URL in a WordPress custom menu. Why not clearly state this in the help pages to save us a lot of time, or save us from being told to hire a developer for something so simple.
Robert
Thanks
Hmmm... So, all I had to do was type ?currency=GBP or ?currency=USD or ?currency=EUR etc. as the URL in a WordPress custom menu. Why not clearly state this in the help pages to save us a lot of time, or save us from being told to hire a developer for something so simple.
Robert
Quote from Pablo Borysenco on February 20, 2023, 11:20Hello
Yes, it's easy only if you want to redirect to one page every time you switch currencies
Hello
Yes, it's easy only if you want to redirect to one page every time you switch currencies
Quote from RobertUK on February 20, 2023, 11:28Pablo
But if you're not using a full URL with the domain section included, and only typing say "?currency=GBP" into the URL of a custom link (as I previously stated), then the page is not redirecting anywhere, and when someone clicks the menu item it remains on the same page whilst changing the currency. That is the desired effect, i.e. no redirection to a single page only at all.
Robert
Pablo
But if you're not using a full URL with the domain section included, and only typing say"?currency=GBP" into the URL of a custom link (as I previously stated), then the page is not redirecting anywhere, and when someone clicks the menu item it remains on the same page whilst changing the currency. That is the desired effect, i.e. no redirection to a single page only at all.
Robert
Quote from Pablo Borysenco on February 20, 2023, 14:48Ok! But keep in mind in this case you will remove all parameters in the URL (filter, sorting, anchors, etc.)
Ok! But keep in mind in this case you will remove all parameters in the URL (filter, sorting, anchors, etc.)
