Home Forums Plugins WooCommerce Multi Currency does not work

does not work

  • Author
    Posts
  • #153057

    Oxino
    Participant

    Hello, I bought your plugin. So I deleted the old plugin and replace with the premium version. But it does not work anymore.

    I had this code in the function.php

    add_action( ‘wp_head’, function () {
    $lang = get_locale();
    if ( class_exists( ‘WOOMULTI_CURRENCY_F_Data’ ) ) {
    $wmc = WOOMULTI_CURRENCY_F_Data::get_ins();
    switch ( $lang ) {
    case ‘de_DE’:
    $wmc->set_current_currency( ‘EUR’ );
    break;
    case ‘nl_NL’:
    $wmc->set_current_currency( ‘EUR’ );
    break;
    case ‘en_gb’:
    $wmc->set_current_currency( ‘GBP’ );
    break;
    case ‘it_IT’:
    $wmc->set_current_currency( ‘EUR’ );
    break;
    }
    }
    } );

You must be logged in to see replies to this topic. Click here to login or register