• Resolved alveree

    (@alveree)


    Hello,

    I am using Woocommerce Payments (Multi-currency is on). The main currency of the store is GBP. Payment and shipping to EU and USD (so EURO and USD are accepted as well).

    How can I assign the shipping to be charged in EURO and USD (always a fixed amount without taking GBP/EUR; GBP/USD fluctuations) for EU deliveries, rather than converting GBP to EURO/USD on the front end?

    Also:
    I am using a theme which is not based on Storefront.
    I added the following snippet in the functions file in my theme.

    function customCurrencySwitch_shortcode( ) {
    if ( function_exists( 'wc_get_currency_switcher_markup' ) ) {
    $instance = [
    'symbol' => true,
    'flag' => true,
    ];
    $args = [];
    echo wc_get_currency_switcher_markup( $instance, $args ); 
    }
    }

    how can I call the currency switcher block as a shortcode on different locations in my store?


    Thank you

    • This topic was modified 1 year, 1 month ago by alveree.
Viewing 4 replies - 1 through 4 (of 4 total)
  • anastas10s

    (@anastas10s)

    ?? hey @alveree

    From what I gather this inquiry is about multi-currency for shipping costs, while multi-currency is enabled with WooPayments. Am I getting this?

    How can I assign the shipping to be charged in EURO and USD (always a fixed amount without taking GBP/EUR; GBP/USD fluctuations) for EU deliveries, rather than converting GBP to EURO/USD on the front end?

    Just to clarify, how are the shipping costs added/enabled at the site? Using the default WooCommerce settings, or otherwise?

    We look forward to your response. In the meantime, please let us know if you have any further questions or concerns.

    Thread Starter alveree

    (@alveree)

    @anastas10s

    I am using the default shipping functionality in Woocommerce + Advance Free shipping (AFS).

    The main store currency is GBP.

    Shipping options for the UK:
    Standard delivery, Free delivery over amount – those come from Woocommerce itself
    Free delivery – if the client has a membership or has a subscription (comes from the AFS).
    Prices and payment in GBP.


    EU/USA Shipping
    It will be calculated based on the weight (Weight Shipping Plugin).
    Up to 250 gr, 500, 1kg, 2kg and so on + Free delivery over xx amount. It has not been implemented yet.
    Prices in Euro and USD.

    For the test, I used the default Woo’s shipping options.
    Screenshot:
    https://ibb.co/w0Kdp5F
    Added Germany shipping zone – standard delivery – 4.99.
    Here is the first issue: the amount of 4.99 is in the store’s main currency – GBP instead of EUR.
    Screenshot:
    https://ibb.co/s5CjnSv

    Front-end/client test:
    I chose to pay in euros and the shipping address in Germany.
    I see the amount for the delivery. But Woo calculates the price for delivery as 4.99 GBP = 5.84 EURO as a final price, while I want (as a seller) the price for delivery in Germany to be always 4.99 EURO.

    The same issue presents for the free delivery for countries with EUR/USD as well.
    If the amount for free delivery is “minimum cart value is 59.99” for Germany, Woo calculates the price as 59.99 GBP > 70.19 EURO.
    https://ibb.co/JCTv9Zq

    Here the shipping cost is set in the Weight Base Plugin (Spain and Luxembourg):
    Instead in EUR, it sets the price as GBP.
    https://ibb.co/LpMjzBH

    So.
    I don’t have the option to set the price for shipping in different currencies based on the shipping country rather than the store’s main currency.

    I didn’t want to put any external plugins if I could achieve the result with Woo by itself.

    Thank you very much.

    • This reply was modified 1 year ago by alveree.
    • This reply was modified 1 year ago by alveree.
    • This reply was modified 1 year ago by alveree.
    Thread Starter alveree

    (@alveree)

    @isodos

    Thank you very much. Finally managed to get the shortcode. Thank you!!!!

    I tried using the function you provided me, but unfortunately, I got nonce response.

    Hey, @alveree!

    I’m not seeing a reply from the user you mentioned here, so I’m a bit confused.

    From what I understand you were able to find a solution, right? Or did the shortcode work, but not the function?

    Please note that while we can’t provide support for code customization as per our support policy, we do our best to offer advice and direct you to appropriate resources, and help you with anything else we can.

    Once we confirm if you still need help, we will be glad to assist in anyway we can.

    Looking forward to your reply.

    Have a wonderful day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Assign currency to a shipping method & Currency switcher shortcode’ is closed to new replies.