Base Tag Library
Note: We have updated our folder structure in Neto 6 and this has not been updated on all tweaks yet. More info.

active_vouchers

Lists the active vouchers in a customer's account

Example

[%active_vouchers%]
  [%param *body%]
    <div class="alert alert-success">
      <h4>You have an active voucher!</h4>
      <p>Remember that [@voucher_title@] still has [%format type:'currency'%][@remain_amount@][%/format%] left!</p>
    </div>
  [%/param%]
[%/active_vouchers%]

Usage

This will list all the active vouchers in a customer's account along with details about what value they are, what the voucher was, etc.

Parameters

Name Options Description
header HTML & b@se tags Renders a single usable space above the body
body* HTML & b@se tags Runs an array for each option in the tag
footer HTML & b@se tags Renders a single usable space below the body
ifempty:'' HTML & b@se tags If their are no active vouchers, this block is printed in place of the header, body & footer

Data tags

Name Description
[@count@] A counter which will start from 0 and count for each time the body parameter runs
[@date_created@] Date the voucher was purchased
[@voucher_balance@] Total dollar amount left in voucher
[@remain_points@] Remaining reward points on voucher
[@reward_amount@] The total dollar amount of the voucher on creation
[@reward_points@] The total reward points of the voucher on creation
[@voucher_code@] The unique code for redeeming the voucher
[@voucher_id@] The unique voucher ID for the specific voucher
[@voucher_title@] The name of the voucher
[@vprogram_subtitle@] The voucher program subtitle
[@vprogram_title@] The voucher program title
[@vprogram_type@] The voucher program type