Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Customizing the Affiliate Signup Page/Form

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate F.A.Q/Instructions › Customizing the Affiliate Signup Page/Form

Tagged: affiliate required fields, affiliate signup form, affiliates, registration, WP Affiliate

  • This topic has 13 replies, 3 voices, and was last updated 8 years, 8 months ago by admin.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • October 27, 2011 at 1:41 am #4621
    admin
    Keymaster

    You can customize any text or message displayed to your visitors using the following method:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

    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 #37949
    starback
    Member

    On the Affiliate Signup form, how to make the affiliate Website Address a required field? Thanks.

    July 1, 2014 at 12:10 am #37950
    admin
    Keymaster

    Search 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 #37951
    starback
    Member

    It 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 #37952
    starback
    Member

    Maybe 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 #37953
    admin
    Keymaster

    Do 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 #37954
    starback
    Member

    Already 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 #37955
    admin
    Keymaster

    Which 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 #37956
    starback
    Member

    Option 1

    July 8, 2014 at 11:08 pm #37957
    admin
    Keymaster

    Okay 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 #37958
    starback
    Member

    It 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 #37959
    wpCommerce
    Moderator

    Hi, 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 #37960
    starback
    Member

    I 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 #37961
    admin
    Keymaster

    The 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; ?>: *

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ