View Full Version : Urgent Question!
Zys
11th May 2004, 12:58 PM
Hello,
Great script!!
One thing, we are trying to let the users choose the minimum amount (payout) directly when they are signing up and it seems to work nice, but only in the actual user account.
In the merchant account, the minimum amount is not showing in the user profile and the only way to get this to work is to have the user set the minimum payout amount one more time in the user-profile.
Hope you understand what we mean!
Please reply to this asap!
Regards / Zys
mark
11th May 2004, 03:44 PM
Hello,
this is corrected in new version (1.2.2).
quillspirit
9th July 2004, 06:06 AM
Greetings,
Great script... just what I was looking for. (I just purchased 1.2.2) :)
I was wondering if you could tell me where I set the values in the dropdown for Payout Amount, both for the affiliate profile, and for the Admin profile edit?
Thanks
mark
9th July 2004, 05:12 PM
Hello,
you can change the minimum payout values by changing the templates (files)
/affiliate/affiliates/templates/default/aff_profile.php
and
/affiliate/merchants/templates/default/aff_edit.php
where you'll have to edit this select:
<select name=minpayout>
<option value=1000 <?=($_POST['minpayout'] == 1000 ? 'selected' : '')?>>1000</option>
<option value=2000 <?=($_POST['minpayout'] == 2000 ? 'selected' : '')?>>2000</option>
<option value=3000 <?=($_POST['minpayout'] == 3000 ? 'selected' : '')?>>3000</option>
<option value=5000 <?=($_POST['minpayout'] == 5000 ? 'selected' : '')?>>5000</option>
<option value=10000 <?=($_POST['minpayout'] == 10000 ? 'selected' : '')?>>10000</option>
</select>
and put any numbers you want.
This applies for all version sof POST Affiliate Pro up to (including) 1.2.2
regards,
mark
quillspirit
9th July 2004, 05:29 PM
Excellent, got it, thank you... saved me a lot of time of looking for it. :)
quillspirit
13th July 2004, 09:58 PM
I just noticed... in the merchent panel, when you are viewing affiliates > (dropdown) View, it still shows minimum payout as $1,000. If I go to Edit, then the options are $50 - $500, where I set them. Where is this other $1,000 coming from? This is from a new affiliate that just signed up, well after I changed the signup form and affiliate edit profiles, as directed above.
quillspirit
14th July 2004, 03:28 AM
Is it here?
## Find in /affiliate/scripts/SignupUser.class.php
// save changes of user to db
$AffiliateID = DBUnit::generateID('seq_pa_affiliates',SEQ_AFFILIA TES);
$sql = "insert into pa_affiliates(affiliateid, username, password, dateinserted, weburl, contactname, paypal_email, tax_ssn, company_name, street, city, state, country, zipcode, phone, fax, status, parentaffiliateid, min_payout)".
"values(".myquotes($AffiliateID).",".myquotes($puname).",".myquotes($ppwd).",NOW(),".myquotes($pweburl).",".myquotes($pcontactname).",".myquotes($ppaypal_email).",".myquotes($ptaxssn).",".myquotes($pcompany_name).",".myquotes($pstreet).",".myquotes($pcity).",".myquotes($pstate).",".myquotes($pcountry).",".myquotes($pzipcode).",".myquotes($pphone).",".myquotes($ppfax).",$status, ".myquotes($pparentaffiliateid).", 1000)";
The very last value? (,1000) - Shouldn't that that be a variable related to the input from the dropdown... why is 1000 hard coded for min_payout?
mark
14th July 2004, 10:40 AM
Hi,
it is hardcoded because affiliate is not choosing any minimum payout value during signup, and it would result to no value set.
I agree it is not a good solution, but it is already corrected in the new version (1.3) which will be released later today.
regards,
mark
quillspirit
14th July 2004, 12:08 PM
Ok, thanks Mark :)
I'm anxious to see 1.3 :)
I'm figuring things out slowly but surely... - I have so far been able to pretty up the css to blend with my site... looking good so far :)
I am working to combine the databases with phpbb, to make it easier for my affiliates to use my forum with central login. (Figured it would be easiest to do with 40 affiliates, than with 400.)
Most of it is modifying the phpbb code, and not your script, but there is a few changes I'll have to make. Will wait and see 1.3 before I do anything else, because you may have already done them. :)
A lot of my current problem is that you use email address as username, so that is one thing I'll have to change in the SQL queries. I'm also working to replace your affiliate id number with the phpbb user_id, so there is a single primary key, to combine the accounts. It should be a lot more centralized when I finish... one login and registration for both. If I get it to work, I will send you what I figure out, so maybe you can offer it as an add-in mod or something.
Let me know about what we were talking about in PM, ok?
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.