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

Error with the symbol – Orders

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 wrote the following problem in the WordPress support forum, but they told me to write to them here.

https://wordpress.org/support/topic/error-with-the-symbol-orders/

The problem:

https://app.screencast.com/qTRvJcLeCwbl5

It happens that in orders generated by the client, when changing the currency the currency symbol is affected. When nothing should change since they are orders generated with a previously selected currency.

I will leave you access to the test environment in the private area.

I hope you can help me and thank you.

 

Hello

We have a hot fix for this issue.

You can give FTP access  - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png - and I'll fix it

OR

you can in file - \wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php -  add  this  code - https://share.pluginus.net/image/i20240415103609.png

add_action( 'woocommerce_my_account_my_orders_column_order-total', array($this, 'override_my_account_orders'), 777);

and  - https://share.pluginus.net/image/i20240415103709.png

public function override_my_account_orders($order) {
if ($order) {
$currency = $order->get_currency();
if (!empty($currency)) {
$this->current_currency = $currency;
}
}
$item_count = $order->get_item_count() - $order->get_item_count_refunded();
echo wp_kses_post(sprintf(_n('%1$s for %2$s item', '%1$s for %2$s items', $item_count, 'woocommerce'), $order->get_formatted_order_total(), $item_count));
}

 

Hello,

I inserted the codes provided and on the all orders page it works perfectly, but when I go to view an order the error continues to appear.

Greetings,

Hello

in file - \wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php -  add  this  code - https://share.pluginus.net/image/i20240416135450.png

add_action( 'woocommerce_view_order', array($this, 'override_my_account_order'), 7 );

and - https://share.pluginus.net/image/i20240416135549.png

public function override_my_account_order($order_id) {
$order = wc_get_order($order_id);
if ($order) {
$currency = $order->get_currency();
if (!empty($currency)) {
$this->current_currency = $currency;
}
}
}
We are preparing the plugin update with these fixes

 

Hello,

Excellent, now it works both in all orders and when viewing the order.

I wanted to ask if it is possible to make this same adjustment to make it compatible with the"Print Invoice & Delivery Notes for WooCommerce" plugin, since it works fine with the currency amount, but has the same problem with the symbol. I share a video with you. I was checking their"FOX LABS" section but at the moment they don't have a code.

https://app.screencast.com/ygMnCcyrScXWL

Thank you.

Hello

Please paste  your wp-admin+FTP access  to your test  site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png

and I will add this third-party plugin to the adaptation queue

Hello,

I have already saved the WordPress and FTP access information for the test environment where the compatibility issue occurs.

I will be attentive to your comments.

Thank you.

Hello

OK!  Great!

I've added this to the adaptation queue. I'll write to you as soon as I get the result

Hello

in file functions.php  I added code

add_action( 'wcdn_after_info', function($order){
if ($order && class_exists('WOOCS')) {
global $WOOCS;
$currency = $order->get_currency();
if (!empty($currency)) {
$WOOCS->current_currency = $currency;
}
}
} );
Please do a test

Hello,

Great, I inserted it on my website and it works perfectly, the printouts are shown with the correct symbol without any problem.

Thank you very much for taking the time to make the compatibility.

Greetings,

Hello

Great! Welcome;)