Bug in balance treatment

This topic contains 1 reply and 2 voices, and was last updated by towhid 8 years, 8 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
August 17, 2015 at 3:18 pm 67603
towhid dokan\classes\template-withdraw.php $balance = $this->get_user_balance( $current_user->ID ); - This provides a formatted result, dokan_get_seller_balance( $seller_id, $formatted = true ) - function uses $formatted flag to choose between wc_price and number_format_i18n - meaning that $formatted is a misnomer, it's always formatted. Numbers such as "1,200" passed into wc_price, will truncate pass the comma, and return $1.00 In general, I think the bug here is that $balance is being returned formatted, we need a way to get at the number before any formatting.
August 18, 2015 at 12:50 pm 67757
towhid towhid

Hello Brent,

We have fixed the balance separator problem on withdraw.

Do you have updated the Dokan latest version to 2.4.2? If not please update the plugin. Hope it will fixed the formatted issue.

Thanks

Viewing 1 Posts - 1 through 1 (of 1 total)