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

Public Function to Automate the currency switch

🎄 Holiday Notice - Support Vacation 🎄

ATTENTION: From December 28, 2025 to January 6, 2026 our support team will be on vacation.

Important information:

  • No ticket responses from December 28 to January 6
  • Support will resume on January 7, 2026
  • 📝 You can still submit tickets during vacation - they will be queued and answered starting January 7
  • ⚠️ Urgent technical issues: Please check our documentation and codex first

🎅 Season's Greetings! 🎅

We want to thank all our amazing customers for your trust and support throughout 2025!
Merry Christmas and Happy New Year to you and your families! 🎉

We wish you:

  • 🚀 Successful online stores
  • 💰 Growing sales
  • 😊 Happy customers
  • 🎯 Achieved goals in 2026

Thank you for being with us! We appreciate every one of you and look forward to continuing our work together in the new year.

Rest, recharge, and see you in 2026!

Best regards,
PluginUs.Net Team

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.

Hello,

 

I'm using the woocommerce-currency-switcher plugin and have a requirement to convert the order currency from EUR to AED after the order has been completed. For instance, I would use the woocommerce_thankyou hook.

 

Is there any function I can use for this purpose?

 

Thank you very much.

Hello

You can try this function - https://share.pluginus.net/image/i20240705100823.png

 

Thank you very much, I had already seen this function but I can not reuse it, when i recall the function,  a function not found error is generated.

Can you give me an example of use?

 

Thank you very much for your availability.

Hello

Please drop me your code. I will check it

Sure,
I would like to do something like this:

add_action('woocommerce_thankyou', 'custom_recalculate_order_data', 10, 1);

function custom_recalculate_order_data($order_id) {
   if (function_exists('recalculate_order')) {
   $selected_currency = 'AED';
   recalculate_order($order_id, $selected_currency); }
  else { error_log('La funzione recalculate_order non esiste.');

}

}

Hello

Please try to use

global $WOOCS;

$WOOCS->recalculate_order($order_id$selected_currency);

The function is correct in changing the currency symbol, but the numeric value remains the same, staying in the original currency even though the symbol changes.

To clarify, 1000€ converted becomes 1000 Dirhams.

Thanks a lot :)

Hello

Check the rate in the order and in the plugin settings

Thanks a lot, problem solved :)

Great! Welcome;)