Hello
I would like to know how I can limit affiliates from requesting payments to only 7 Days after last request?
So affiliates can only request payment every 7 days and not everytime they reach minimal payment.
For example: You can only change your affiliate plan every 7 days.
How can I do the same with request payout?
Thanks in advance.
XFileSharing Pro - How to limit affiliate request payout to every 7 Days
-
- Posts: 129
- Joined: Apr 30, 2009 10:31 am
-
- Posts: 129
- Joined: Apr 30, 2009 10:31 am
This is what I have managed to do in my_account.html:randy wrote:wanna know this too!
<TMPL_IF m_y_change_ok><TMPL_VAR lang_request_payout>" onClick="document.location='?op=request_money'" disabled="true"><TMPL_ELSE><TMPL_VAR lang_request_payout>" onClick="document.location='?op=request_money'"></TMPL_IF>
It works, but only if a user has changed Affiliate Mode. If user has not changed affiliate mode then he can still request payouts. If user changed affiliate plan, the he cannot request payout for 7 days.
Is there no one that can help us create a separate function for this?
In XFileConfig.pm we have this code:
m_y_interval_days => '7',
Is it not possible to use that same interval for something like
r_p_interval_days => '7', (Request Payout)
Maybe we can help eachother out here.