Type-In Cascade

From TMM Wiki
Revision as of 13:33, 19 December 2008 by Trinidadr (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
NATS 3
Billers Admin
Biller
Cascade
NATS Cascades
Adding Cascades
Biller Cancel Promotions
Cascade Weight
Autocascade
Hidden Cascades
Geo-Targeting Cascades
Type-In Cascade
Post-Biller Templates
Extra Biller Fields
HTTPS Gateways
Payment Deduction
Timed Cascade Rules
Multiple Biller Accounts
Upgrade Plus
Adding a Biller

You can send type-in traffic surfers to a special cascade menu. Go to the Sites Admin, click Edit Signup Form Templates, and choose the join template. Find the following line of code:

{html_radios name="cascade" options=$payment_options selected=$cascade separator="<br>"}

Replace the line above with the line below to display each cascade as a radio button.

{foreach item=desc key=id from=$payment_options}
    {if $id == "CASCADE_NAME"}
	{if $smarty.request.nats=='SITE_CODE'}
	    <input type="radio" name="cascade" value="{$id}" {if $id==$cascade}checked{/if}>{$desc}<br />
	{/if}
    {else}
	<input type="radio" name="cascade" value="{$id}" {if $id==$cascade}checked{/if}>{$desc}<br />
    {/if}
{/foreach}

Replace CASCADE_NAME and SITE_CODE with the cascade's Shortname. Replace SITE_CODE with the site's NATS Code.

The code above only shows a cascade option if the user has the site's default NATS Code in a cookie.

To make this cascade option only available to visitors with referrers, find the line below in the code above.

{if $smarty.request.nats=='SITE_CODE'}
<pre>

Replace it with the following:

<pre>
{if $smarty.request.nats!='SITE_CODE'}

to display more than cascade for a single NATS code, use the following code:

{foreach item=desc key=id from=$payment_options}
    {if $id == "CASCADE_NAME"}
	{if $smarty.request.nats=='SITE_CODE'}
	    <input type="radio" name="cascade" value="{$id}" {if $id==$cascade}checked{/if}>{$desc}<br />
	{/if}
    {elseif $id == "CASCADE_NAME_2"}
	{if $smarty.request.nats=='SITE_CODE'}
	    <input type="radio" name="cascade" value="{$id}" {if $id==$cascade}checked{/if}>{$desc}<br />
	{/if}
    {else}
	<input type="radio" name="cascade" value="{$id}" {if $id==$cascade}checked{/if}>{$desc}<br />
    {/if}
{/foreach}

If you have any trouble setting this up, or questions regarding it, just submit a support ticket and we'll help you out.