Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Incorrect value of $commission_threshold_time in class WCMp_Ajax

$
0
0

Replies: 0

In wcmp_vendor_unpaid_order_vendor_withdrawal_list() of WCMp_Ajax class the value of $commission_threshold_time is always coming as 0, even though I’ve set it to 30 in WCMp Settings.
Due to this all the recent orders are also getting listed on Vendor Withdrawal page. If vendor selects any of these orders and tries to withdraw commission, it gives an error “Minimum threshold amount to withdrawal commission is ***”. This message is inappropriate because the commission amount for that particular order is more than threshold amount.

The root cause is that in wcmp_vendor_unpaid_order_vendor_withdrawal_list() you have not declared global $WCMp;. Please add it so that the orders that are under threshold time are not displayed on Vendor Withdrawal page.


Viewing all articles
Browse latest Browse all 59525

Trending Articles