Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate F.A.Q/Instructions › How to make PayPal Email a Required Field for Affiliate Sign-up
- This topic has 13 replies, 9 voices, and was last updated 10 years, 2 months ago by admin.
-
AuthorPosts
-
October 4, 2010 at 4:31 pm #1963mikru2010Member
Hi,
i want to pay affilaites through PayPal, and so it would be good to have them enter their PayPal email at signup.
is there a way to do this?
October 5, 2010 at 2:10 am #25068amin007Participant=================
Update We have added a checkbox for this option in the settings menu of the affiliate plugin so you do not need to do this customization anymore.
=================
You just have to add the following to the input filed that you want to make a required field:
class="required"
Specific Step by Step Instruction
If you don’t understand HTML then the above probably won’t make any sense to you so here is a step by step instruction on what to do.
1. If you are using the on page affiliate view option
Open the “register_view.php” file from the “view” directory of the affiliate plugin and search for the following line:
<input type="text" name="paypal_email" size="20" value="<?php echo $_POST['paypal_email']; ?>">
Once you find it replace it with the following:
<input type="text" name="paypal_email" size="20" value="<?php echo $_POST['paypal_email']; ?>" class="required">
That should make the PayPal email field a required field for signup.
2. If you are using the stand alone affiliate view option
Open the “register.php” file from the “affiliates” directory of the affiliate plugin and search for the following line:
<input type="text" name="paypal_email" size=20 value="<?php echo $_POST['paypal_email']; ?>">
Once you find it replace it with the following:
<input type="text" name="paypal_email" size="20" value="<?php echo $_POST['paypal_email']; ?>" class="required">
That should make the PayPal email field a required field for signup.
October 10, 2010 at 9:28 am #25069mikru2010MemberThat did the trick.
But how to make the * visible at the sign-up page too?
Do i need to edit css or is the * to be added manually somewhere in the php?
October 10, 2010 at 11:46 pm #25070amin007ParticipantThe “*” needs to be added in the PHP file. Open the same two files you modified before and search for the following:
<?php echo AFF_PAYPAL_EMAIL; ?>:
Once you find it replace it with the following:
<?php echo AFF_PAYPAL_EMAIL; ?>: *
June 23, 2011 at 7:56 pm #25071milehighMemberWould be nice to consider having this option as feature in the plugin. I’d like to incorporate this, but don’t want to have to maintain customizations that might inhibit plugin upgrades.
September 10, 2011 at 8:07 am #25072JeffreyLMemberI agree. That would be a feature I would like to have in the plugin. Can it be added to the new feature list?
Jeff
September 11, 2011 at 3:37 am #25073adminKeymasterAdded this option in the Affiliate Platform settings menu. You can now simply check the following option in the settings:
Make PayPal Email Address a Required Field
December 31, 2011 at 10:58 pm #25074masmoolaMemberI went in to change this according to the directions above and I see the code has changed slightly in the newer version. Can you offer new directions to help me make the paypal email mandatory?
thanks
January 1, 2012 at 5:23 am #25075PeterMemberHi,
Instead of changing the code you can now simply use the new setting as mentioned by admin in the response above.
Just go to the Affiliate settings page and enable the “Make PayPal Email Address a Required Field” checkbox.
If you can’t see this field you will need to upload the newest version of Affiliate plugin:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
January 1, 2012 at 6:21 am #25076masmoolaMemberPerfect. Thank you.
March 27, 2012 at 1:40 am #25077insuracell.caMemberHello support,
There are some fields on the affiliate signup page that I wish to have setup as required fields. How can I do this?
Thanks,
Chris
March 27, 2012 at 6:47 am #25078adminKeymasterIf you are a developer and know your way around PHP then I can tell you where to look in the code (this is not an easy modification so you need to understand PHP well). Alternatively, contact us using the contact link on our site for customization quote.
July 19, 2014 at 2:33 pm #25079EricMirandaMemberThis is great if you just want to make the Paypal address required. How would you go about making other fields (like the address information) required as well?
July 21, 2014 at 12:55 am #25080adminKeymasterWe are working on creating an option so that you can modify/customize the form fields on the signup form via an interface. In the meantime, you can modify the PHP file to change the form fields however you like. Are you a developer?
-
AuthorPosts
- You must be logged in to reply to this topic.