Redemption Options

From CashCrusaderWiki

Jump to: navigation, search

Contents

How to create a new redemption type

Configuration page path: Main menu > Accounting -> Redemption Options

Sort Group

With this setting you can order your redemption types. There are two drop down boxes with alphabets. Choose desired values to both.

Examples:

  • AA=First
  • AB=Second
  • BA=After all redemption options where redemption order starts with A
  • BB=After BA

Qualifying Membership Type

Specify if you want the redemption option to be available to all members, free and custom members (advertisers excluded) or to a specific user group

Description

Enter a short description for the redemption option

Type

Choose either Cash or Points.

Amount

How much cash or how many points is required to redeem.

Change this account type to

If you are creating an upgrade redemption use this option to set the script to upgrade the member automatically. Leave to default "Do not change account type" if you are not creating an upgrade redemption or do not wish the usertype to be change automatically.

Upgrade expires in

Specify how long the upgrade will last. (For example one week, month or year) Only specify this if the "Change this account type to" option is also set to non default value.

Automaticly deduct amount from users account when they redeem

Set to yes or no. If you set this to no you will have to deduct the amount manually.

Special HTML

If you would like to add special HTML code right before the submit button like a textbox where they can put in their ad.

Example textbox code: <textarea name='userform[ad_info]' rows='10' cols='30'>Type your ad here</textarea>

PHP Code

For experts only!

Do not use this unless you know PHP. You can enter here any PHP scripting you would like to take place when someone selects this redemption. If you use the option to auto deduct, the script you enter here will run before the transaction is entered into the accounting table.

How to set up redemtion options to show up on your site

To list the redemption types available to a member place the following code in your html:

<?php action('show_redemptions');?>

Personal tools
Administration manual