nats_display_reward_category
Displays a list of a every available reward in a single rewards category.
Article Topics: Customization, Templates
Alias: display_reward_category
Parameters
(Required parameters in bold)
tpl
Template used to display output
Any valid template
The template, function_display_reward_category
tpl="mytemplate"
catid
The rewards category ID number
Any valid rewards category ID number
No default. You must provide a valid category ID number.
catid="123"
Prefix output variables with this word. (Click link for details)
Any valid Smarty variable name
None. (No prefix is used)
assign_prefix="myvar"
Output
A list of every available reward in a single rewards category. Output is also stored in a single-dimensional array, $rewards.
Notes
Another template function, nats_display_reward_purchases, also uses the array $rewards. If you call both nats_display_reward_purchases and nats_display_reward_category in the same template, the array $rewards will contain the output of the last function run above it in the template.
See Also
nats_display_reward_purchases -- displays a list of rewards an affiliate has purchased; also uses an array named $rewards.
nats_display_reward_order -- displays an order form for an affiliate after they've selected a reward item they want.
Last updated
Was this helpful?