Making fields on the "New Affiliate Sign-up" page required
Some tokens used in the template for the "New affiliate sign-up" can be made required by adding "req" to the beginning of the token (after the starting %).
reqnote
requrl
reqcode
reqreferralid
reqreferralcode
reqsendnotice
reqhtmlformat
reqissuecert
reqfield1
reqfield2
reqfield3
reqfield4
So, to make the referal code field required, change the text "referralid" in the token to "reqreferalid".
The tokens will have the exact same form otherwise. If the prospective affiliate does not provide data in the requred field they will be returned to the new affiliate sign-up page.
The message generated by the module (which is configured in the "Error message for "missing fields": field on the "New Affiliate sign-up" tab in the module's admin) will be displayed to the customer via the %error% token.
When a required field is NOT filled out by the new affiliate the module sets an error variable named after the token. For example, if the token %reqcode% is used in the template but the affiliate fails to provide a code the module will set the variable g.reqcode_Error to 1 (so not filling in a value for the %reqhtmlformat% token would result in the setting of the variable g.reqhtmlformat_Error to 1, etc.).
You can use this to test for whether or not the field was filled in by using the conditional %begin_if|expression|%...%end_if% token. For example, setting prompt font to red:
%begin_if|g.reqcode_Error EQ 1|%
<font color="red">Affiliate Code:</font>
%else%
<font color="black">Affiliate Code:</font>
%end_if%
Last update: 2008-10-22 11:46
Author: Thor
Revision: 1.1
You cannot comment on this entry
Records in this category
- Is it possible to display data about the referring affliate on the Merchant pages and on the Invoice screen and notification emails?
- How do we get multi tier payout this is very important that if level 1 sign ups a level 2 affiliate they get credit for the orders that the level 2 has.
- How do I configure product specific payouts for each affiliate? I'd like to pay some affiliates more than others for certain products or categories of products.
- How do I display data from Affiliate Manager in the orders exported by Generic Orders Export?
- When a new affiliate signs up I would like to have the notification emails sent to every affiliate in the referral chain. Is this possible?
- Is there any way to configure specific global headers and footers for each affiliate that will show up any time a customer they referred is shopping in the store?
- Making fields on the "New Affiliate Sign-up" page required














