How the shop determines the value
The shop compares the currency of the current subshop with the voucher’s currency list and uses the matching entry.What can be stored per currency
Percentages do not need a currency list. Ten percent is ten percent in every currency. For a percentage voucher, only the maximum redemption amount is currency-dependent.
Remaining amounts
A voucher that has not been fully redeemed keeps its remaining amount, and this can also be used in another subshop with a different currency.Prerequisites
The voucher generator must be activated. If you want to use it, contact your WEBSALE representative.If the vouchers come from an external system and are therefore not in WEBSALE format, add the entry
ExternalVouchers-Allow = yes in the <Voucher-Txt> section of the shop.config.Step 1: Creating the voucher
Create the voucher in the voucher generator in the online service area and select the desired currencies there. For each selected currency, enter the corresponding amounts.Step 2: Displaying the voucher data in the shop
The data of a voucher can be output on any shop page, for example on a campaign page, so that visitors can see what their code is worth in their currency.In the example,
123 stands for the voucher number. VOUCHER-LoadData loads the data, and VOUCHER-DataExists only applies if the voucher exists. Without this enclosure, empty lines appear on the page as soon as a number no longer exists.The output format
These five tags output their data in technical format, not as readable text. In addition, the output is not HTML-escaped.Because the output is not escaped, visitors see nothing with direct output: the browser treats
<g> and <c> as unknown HTML elements and hides them along with their content. Therefore, first put the value into a Design Control field and output it from there; it is then escaped and thus visible.Preparing the data
To prepare the data, split the list using a dynamic loop and extract the currency and amount from each entry.The order within an entry does not matter.
DC-FP1_extractTaggedData searches by the name of the enclosing tag, not by position. You can therefore extract and output the amount and currency in any order.The field is set again before each extraction because
DC-FP1_extractTaggedData replaces the content of the field. Without setting it again, the second call returns nothing.Three dynamic loops and several Design Control fields are available. If you want to show values and minimum order values side by side in a table, use two different loops, because a loop only holds one list at a time.
Further voucher data
Beyond the values shown here, theVOUCHER- tag family provides access to almost all fields that the voucher generator creates, for example the validity period, batch ID, and restrictions to products or customers.
Reference: VOUCHER-
Related topics
- Guide: Offering vouchers: Overview
- Guide: Create or import vouchers
- Guide: Percentage vouchers
