Product Icon

WooCommerce Customer / Order / Coupon Export

Export customers, orders, and coupons from WooCommerce manually or on an automated schedule.

Export_Generator class, format_decimal() method fix

We’ve got some fatal errors using this plugin with PHP 8.0.
Export_Generator class, format_decimal() method, line 325 returned some fatal errors when $number is a string. Previous PHP version returned a warning.

Maybe you could change this line:
return number_format( $number, $decimal_points, $decimal_separator, $thousands_separator );
with this one:
return number_format( (float)$number, $decimal_points, $decimal_separator, $thousands_separator );
to avoid the issue.

Screenshots

Author

saucal

Current Status

Open

Last updated: January 31, 2023

0 comments

Log in to comment on this feature request.