• Hello,

    I am using the free version of Multi currency for now. I am also using the Xootix side cart for woocommerce. Here is the problem: the side cart plugin displays the amount for free shipping based on default values in woocommerce shipping settings. However, as I change the currency, the amount for free shipping does not change and stay defined as default. I asked their support, they said: ‘For changing the shipping value based on your currency, you will need to contact your currency plugin.’

    So please, can you help me to define multi values for the shipping values please?

    Thanks.

    Regards,

    François

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelagrey

    (@angelagrey)

    Hi,

    Thank you for reaching out to us.

    Could you reach out to Xootix team if they have any hook or filter for converting prices?

    Best regards.

    Thread Starter fanchcelesta

    (@fanchcelesta)

    Hello,

    here is the code they gave me.

    Thanks

    add_filter( 'xoo_wsc_bar_checkpoints', function( $points ) {



    if ( function_exists( 'get_woocommerce_currency' ) ) {



    // Fetch country and currency

    $currency = get_woocommerce_currency();



    if (!$currency) return $points;



    foreach ( $points as $index => $point ) {



    if( $index == 0 ){ //for 1st checkpoint



    // Check conditions based on currency

    if ( $currency === 'PLN' ) { // Polish Zloty

    $amount = 400;

    }

    elseif ( $currency === 'EUR' ) {// Euro

    $amount = 500;

    }



    }





    if( $index == 1 ){ //for 2nd checkpoint



    // Check conditions based on currency

    if ( $currency === 'PLN' ) { // Polish Zloty

    $amount = 400;

    }

    elseif ( $currency === 'EUR' ) {// Euro

    $amount = 500;

    }





    }



    $points[$index]['amount'] = $amount;

    }



    }





    return $points;



    });
    Plugin Support angelagrey

    (@angelagrey)

    You can use this code directly using code snippet. Please see this guide: https://villatheme.com/knowledge-base/how-to-add-custom-snippets/

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.