Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate F.A.Q/Instructions › Customizing the Affiliate Signup Page/Form
- This topic has 13 replies, 3 voices, and was last updated 10 years, 4 months ago by admin.
-
AuthorPosts
-
October 27, 2011 at 1:41 am #4621adminKeymaster
You can customize any text or message displayed to your visitors using the following method:
Remove a Particular Form Field
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 customize it however you like.
For example, If you want to remove the “Fax” field from the affiliate signup page then find the following block of code and remove it:
<tr>
<td><b><?php echo AFF_FAX; ?>:</b></td>
<td><b>
<input type="text" name="afax" size="20" value="<?php echo $_POST['afax']; ?>">
</b></td>
</tr>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 customize it however you like
For example, If you want to remove the “Fax” field from the affiliate signup page then find the following block of code and remove it:
<tr>
<td><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000"><?php echo AFF_FAX; ?>:</font></b></td>
<td><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#000000">
<input type="text" name="afax" size=20 value="<?php echo $_POST['afax']; ?>">
</font></b>
</td>
</tr>June 30, 2014 at 9:53 pm #37949starbackMemberOn the Affiliate Signup form, how to make the affiliate Website Address a required field? Thanks.
July 1, 2014 at 12:10 am #37950adminKeymasterSearch for the following line of code:
<input type="text" name="awebsite" size="20" value="<?php echo $_POST['awebsite']; ?>">
Change it to the following to make the website field a required field:
<input type="text" name="awebsite" size="20" value="<?php echo $_POST['awebsite']; ?>" class="required">
July 4, 2014 at 2:35 pm #37951starbackMemberIt didn’t work. Here’s a copy of the relevant code fro the file on my server:
[deleted code after checking]
July 4, 2014 at 7:00 pm #37952starbackMemberMaybe it did work. I was looking for the asterisk on the signup form, but then I saw I needed to add it in the code. So I did, like for First Name and Last Name. But the asterisk still does not appear on the form. It may be that there isn’t enough room to show it before the fill-in field. What to do? Thanks.
July 4, 2014 at 11:28 pm #37953adminKeymasterDo the following to add asterisk in the label:
Search for the following code:
<?php echo AFF_WEBSITE; ?>:
Replace it with the following:
<?php echo AFF_WEBSITE; ?>: *
July 7, 2014 at 4:50 pm #37954starbackMemberAlready did what you said. Still no asterisk next to Website Address: in the signup form. I cleared caches in all browsers.
July 8, 2014 at 1:29 am #37955adminKeymasterWhich affiliate view/area option are you using? See reference here:
http://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315
July 8, 2014 at 5:35 pm #37956starbackMemberOption 1
July 8, 2014 at 11:08 pm #37957adminKeymasterOkay in that case, open the following file:
affiliates/register.php
Then search for the following:
<input type="text" name="awebsite" size=20 value="<?php echo $_POST['awebsite']; ?>">
Change it to the following when you find it:
<input type="text" name="awebsite" size=20 value="<?php echo $_POST['awebsite']; ?>" class="required">
July 9, 2014 at 3:38 pm #37958starbackMemberIt already reads like that. Should I install the plugin again? If so then please send me a fresh link.
July 9, 2014 at 11:52 pm #37959wpCommerceModeratorHi, you can install a fresh copy of the plugin using the following link:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
July 10, 2014 at 9:49 pm #37960starbackMemberI deactivated and deleted the plugin, the installed it again with a fresh link. The previous customizations you suggested are still there. Still no asterisk, and I don’t know if the field is required or not now.
July 11, 2014 at 4:26 am #37961adminKeymasterThe asterisk symbol doesn’t really make the field required. It is just a visual indication for the user. Share the URL of your affiliate signup page so I can take a look to see how the field is working now.
To add the asterisk symbol modify the same file (affiliates/register.php) and search for the following:
<?php echo AFF_WEBSITE; ?>:
Once you find it, change it to the following:
<?php echo AFF_WEBSITE; ?>: *
-
AuthorPosts
- You must be logged in to reply to this topic.