• Resolved inkvader

    (@inkvader)


    Hey,

    I understand the use of option “always use locale to assign currency”, but I’m missing an option in between.

    I’m running an online shop in german and english language. When switching to german language the currency is supposed to switch to EUR, which is working fine with “always use locale” option enabled. When selecting english as language I want the user to choose between several currencies (EUR, USD, GBP) which is only working if I disable the option “always use locale”.

    I could leave the option disabled, but I don’t want my german customers to see all the other currencies.
    So it would be nice to have an option to only force specific languages to a currency or to disable the locales option for specific languages.

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter inkvader

    (@inkvader)

    I was trying to add the function with this code:

    add_filter(‘wp_head’, function() {
    $lang = get_locale();
    switch ($lang)
    {
    case ‘de_DE’:
    alg_wc_cs_session_set( ‘alg_currency’, EUR );
    break;
    }
    });

    It’s changing the currency on product pages and product archives, but not in the mini-cart and on checkout.
    Maybe someone can help…

    Plugin Support MeganSupport

    (@megan891)

    Hi @inkvader

    Sorry you’re having trouble. Please note that for queries like this a support ticket needs to be logged via our website here https://wpwham.com/support so that we can assist you further.

    Thanks in advance,

    WP WhaM Support

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change currency only on specific languages’ is closed to new replies.