Home Forums Theme Support Dokan Dokan withdraw error message

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  towhid 3 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41578

    Gregório Sordi
    Member
    Post count: 152

    Hi. There is an error message if seller tries to withdraw a bigger amount than he has on his balance. But there isn't a message if he tries to withdraw an amount that is smaller than the admin has specified. He just can't procced, so the validation is ok, but i think should be a message warning him that there is a minimum amount to make an withdraw. Dont you think?

    #41634

    towhid
    Participant
    Post count: 4505

    Hello Sordi,

    Try the following code:

    $withdraw_limit = $this->get_withdraw_limit();
            echo $withdraw_limit;

    At least it will identified you how to get withdraw limit. After then you can set this in a condition for validation check.

    Thank you 🙂

    #41722

    Gregório Sordi
    Member
    Post count: 152

    Hi towhid, which file? or which function so i can put in my functions.php?

    #41738

    towhid
    Participant
    Post count: 4505

    Hello,

    Sorry I have forgotten to give you file link where you have to put the line of code. Here is the instruction:

    Please open wedevs-dokan-plugin/classes/template-withdraw.php and find function withdraw_form( $validate = '' ) {.

    In that function write below line of code above this line $this->show_alert_messages();

    $withdraw_limit = $this->get_withdraw_limit();
            echo '<div class="dokan-alert dokan-alert-warning">Minimum amount to make an withdraw' . ': <span class="amount"><strong>' . $withdraw_limit . '</strong></span></div>';

    At least it will identified you how to get withdraw limit. After then you can set this in a condition for validation check.

    Thank you 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Dokan withdraw error message’ is closed to new replies.