Dokan withdraw error message

This topic contains 3 reply and 2 voices, and was last updated by towhid 9 years ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
April 17, 2015 at 9:27 am 41578
towhid 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?
April 18, 2015 at 1:00 pm 41634
towhid towhid

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 🙂

April 19, 2015 at 2:39 am 41722
Gregório Sordi Gregório Sordi

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

April 19, 2015 at 12:04 pm 41738
towhid towhid

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' . ':&nbsp<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 3 Posts - 1 through 3 (of 3 total)