Home Forums Theme Support Dokan Bug in balance treatment

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  towhid 3 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #67603

    Brent
    Member
    Post count: 6

    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.

    #67757

    towhid
    Participant
    Post count: 4505

    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 2 posts - 1 through 2 (of 2 total)

The topic ‘Bug in balance treatment’ is closed to new replies.