Difference between revisions of "NATS4 Coupon Codes"

From TMM Wiki
Jump to navigationJump to search
Line 43: Line 43:
 
You can also choose to offer this coupon system through multiple other methods using the features available to you in the ''join'' [[Ct#Template|template]]. The [[Other Example Coupon Code Systems]] section provides some examples of other ways to offer Coupon Code systems through [[NATS4]].
 
You can also choose to offer this coupon system through multiple other methods using the features available to you in the ''join'' [[Ct#Template|template]]. The [[Other Example Coupon Code Systems]] section provides some examples of other ways to offer Coupon Code systems through [[NATS4]].
  
== Example Coupon Code Systems ==
+
==Site Coupons==
=== Redirecting to a Special Join Form ===
 
 
 
One method you can use to offer a Coupon Code system in [[NATS]] is by redirecting [[Ct#Surfer|surfers]] with a valid coupon code to a special [[Ct#Join Form|join form]] containing a [[No Cost Registration]] join option.
 
 
 
With this method, you can add a new page for [[Ct#Member|members]] to enter a Coupon Code on your [[Ct#Join Form|join form]]. If no coupon code is entered, they will be taken to your default [[Ct#Join Form|join form]]. However, if the [[Ct#Member|member]] enters a valid coupon code, they will be taken to a special [[Ct#Join Form|join form]] containing the [[No Cost Registration]] option, which allows the [[Ct#Member|member]] to sign up without entering any payment information.
 
 
 
The following code provides an example of how you can set up a basic form to accept coupon codes:
 
<pre>
 
Do you have a coupon?<br>
 
<form action="http://my.coupon.script.com/validate.php" method="get">
 
Coupon Code:
 
<input type="text" name="coupon">
 
<input type="submit" value="Validate">
 
</form>
 
</pre>
 
 
 
Replace ''my.coupon.script.com'' in the above example with the [[Ct#Linkdomain|linkdomain]] you wish to use to validate your [[Ct#Member|members']] coupon codes.
 
 
 
Once you create this form, you can then set up a redirect script that brings your [[Ct#Member|members]] to your [[No Cost Registration]] join form with a valid Coupon Code, or to a standard [[NATS]] [[Ct#Join Form|join form]] if they enter an incorrect Coupon Code or leave the form blank.
 
 
 
=== Using Smarty to Display Special Join Options ===
 
 
 
Another example method you can use to offer Coupon Codes to your [[Ct#Member|members]] involves using [[Smarty]] to display your special [[Ct#Join Option|join option]].
 
 
 
You can use this method in conjunction with the first method [[#Redirecting to a Special Join Form|detailed above]] by using the special join form to validate a [[Ct#Member|member's]] Coupon Code, then sending the [[Ct#Member|member]] back to the [[Ct#Join Form|join form]] with an additional URL parameter if they enter a valid code.
 
 
 
You can then use [[Smarty]] to display your [[No Cost Registration]] [[Ct#Join Option|join option]] after verifying that the [[Ct#Member|member]] was redirected through the URL parameter you set. If a [[Ct#Member|member]] does not enter a valid Coupon Code, you can use [[Smarty]] to display your normal set of [[Ct#Join Option|join options]].
 
 
 
This can be done by inserting the following example code in your ''join'' [[Ct#Template|template]]:
 
<pre>
 
{if $smarty.get.coupon_valid = 1}
 
<select name="signup[optionid]" class="join_select">
 
  <option label="Free 3 days" value="xxxx" selected="selected">Free 3 days</option>
 
</select>
 
{else}
 
<select name="signup[optionid]" class="join_select">
 
  {html_options options=$join_options selected=$vars.optionid}
 
  </select>{if $errors.optionid}<span class="join_error"><br>{$errors.optionid}</span>{/if}
 
{/if}
 
</pre>
 
 
 
In this example, only your [[No Cost Registration]] join option will be displayed if the URL parameter "coupon_valid" is present in the URL and equal to 1. If this is not the case, your normal [[Ct#Join Option|join options]] will be displayed to the [[Ct#Member|member]]. This code is based on the standard [[NATS]] [[Ct#Join Form|join page]], which uses a drop-down menu to display your [[Ct#Join Option|join options]].
 
 
 
=== Showing/Hiding Join Options Using JavaScript ===
 
 
 
Another method you can use to offer Coupon Codes to your [[Ct#Member|members]] is by hiding your special [[Ct#Join Option|join option]] using JavaScript code, which will reveal the [[Ct#Join Option|join option]] once a [[Ct#Member|member]]'s coupon code is validated.
 
 
 
This method also allows you to add a special field for your [[Ct#Member|members]] to add a coupon code. However, you only need one [[Ct#Join Form|join form]] to use this method, as opposed to the first method. With this method, a [[Ct#Member|member]] who does not have a valid coupon code will not see your [[No Cost Registration]] join option, because it will be hidden by JavaScript code. Only a [[Ct#Member|member]] who enters a valid coupon code will be able to see that [[Ct#Join Option|join option]].
 
 
 
[[Category:NATS4 Sites]]
 

Revision as of 18:08, 23 October 2017

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Sites Admin
The Sites Admin
Sites
Site Setup
Site Templates
Tour Setup
Join Options
No Cost Registration
Special Pricing Options
Join Option Rules
Post URL Usage
Post URLs in NATS4
Approval/Upgrade/Denial Variables
Approval/Upgrade/Denial Template Variables
Mobile Tours
Token Sites
ID Numbers
Site Partner
Site User Management
Example Postbacks for Site User Management
Configure Redirects
Split A-B Testing
Username Checking
Form Validation
Post-Biller Templates
Send Information To Special Biller
Join Option Box vs Button
Qualified Join Page Hits
Allowed languages
Customize Join Form
Package Plus
Token Plus
Signup Plus
Type-In Traffic
Coupon Codes
Setting Rules
Site Groups
Options Simulator
ATVOD Verification Process

Some sites may choose to offer a Coupon Code promotion, where members can enter a coupon code on the NATS join form to receive a free trial for a fixed period of time.

You can implement one by modifying your join form to allow members to input a coupon code, where they will be taken to a join page with a No Cost Registration join option or discounted join option if the code is valid.

Join Option Setup

In order to provide your members with a Coupon Code offering a free or discounted trial membership, you must first set up a No Cost Registration or discount join option they can register with. This can be done through the sites admin.

To do so, go to the Sites Admin and locate the site you want to offer the Coupon Code for. Click the "Set Join Options" action icon here, then create the new join option you want to offer to surfers with a coupon code.

No Cost Registration Join Option

You can create a new No Cost Registration join option through the Sites Admin. If you only want to offer a Coupon Code for members going through specific tours, edit a tour, scroll down to the bottom of the page, and click the "Setup additional Options for this Site" link under "Join Options for this Tour." On the next page, scroll down to the bottom of the page and use the "Add New No Cost Registration Option" section to add a No Cost Registration option.

Creating a New NCR Join Option

For more information on setting up No Cost Registration join options in NATS4, please see our No Cost Registration wiki article.

Discounted Join Option

You can offer your members discounted join options by performing similar actions as listed above. Just edit the tour you want to offer the discounted join option on, scroll down to the bottom of the page, and click the "Setup additional Options for this Site" link under "Join Options for this Tour." You can also offer this join option for every tour in a site by clicking the "Set Join Options" action icon on the sites admin main page.

You can then create your new discounted join option with the special price that you wish to offer.

Creating a New Join Option

For more information on setting up a new join option in NATS4, please see our NATS4 Join Option wiki article.

Modifying Your Join Form

You can choose to offer a Coupon Code System through NATS by editing the join template for the site you want to offer the coupon code for, through the Sites Admin.

Customizing Your Join Page

Go to the Sites Admin and locate the site that you want to offer a Coupon Code system on. Click the "Edit Site Templates" action icon for that site, and locate the join template on the next page. Click the "Customize" action icon once you have located the template, and you will be taken to the Edit Template page, where you can modify the code for that template.

You can use the example_join_coupon template as a reference or copy and replace the default join template if you want to offer a coupon code system for that site. This template uses the built-in coupon code system in NATS.

You can also choose to offer this coupon system through multiple other methods using the features available to you in the join template. The Other Example Coupon Code Systems section provides some examples of other ways to offer Coupon Code systems through NATS4.

Site Coupons