PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Include Query String in Default 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 please
If 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.

Hi,

I didnt like any of the currency dropdowns so I made a custom one using an elementor menu display conditions plugin. Basically it checks the URL for parameter value and then displays the appropriate currency in header menu. However this doesn't work well with default currency because the query string doesnt display so display conditions thinks its default currency even when its not. Can I activate to always use currency parameter in all URLs including default currency?

Thanks

Hello

Unfortunately, the plugin does not have such a feature. You need customization of the code.

Please  read  this - https://currency-switcher.com/how-to-create-currency-links-without-shortcode/

To  get  current  currency - https://currency-switcher.com/function/woocs-current_currency/

 

Thank you for your reply. Not sure this will help. I need that every single link should always have the active currency code included in URL as a query string.

This includes when users clicks a category, product etc can you help with that?

Hi. Any updates here?

Hello

you need code customization.

Example  in action wp_head  add:

if (class_exists('WOOCS')){
global $WOOCS;
$GET['currency'] = $WOOCS->current_currency;
}

I'm using a functions plugin can you provide the full syntax? I tried this and it didnt work:

add_action( 'wp_head', action_wp_head, 10 );

function action_wp_head() {
if (class_exists('WOOCS')){
global $WOOCS;
$GET['currency'] = $WOOCS->current_currency;
}
}

Hello

Your code is correct.

Unfortunately I have no other ideas

Paste your license key here - https://c2n.me/43SC6rb.png -> https://c2n.me/42HBIt7.png

I added my license

can you login and see why its not working?

Hello

Better use a different code to replace the switcher

Read  this - https://currency-switcher.com/how-to-create-currency-links-without-shortcode/

to mark the current currency use JS - variation  woocs_current_currency.name