How the shop recognizes the app
The shop checks whether the request includes an app version. Only then is the session considered an app session.Prerequisite
The voucher generator must be activated. Contact your WEBSALE representative to arrange this.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: Restrict the voucher
When creating the voucher in the voucher generator, enter the following string in the Kundenspezifische Features (custom features) field at the very bottom.This function has no further settings. It is either set or not.
Step 2: Add the error message
If the voucher is entered outside the app, the shop rejects it with reason 24. Add this reason wherever you have integrated the voucher entry, i.e. on the basket pagews_basket.htm or the order overview page ws_place_order.htm.
A link or a reference to the app store in the message text turns the rejection into an invitation. That is exactly what this type of voucher is intended for.
Step 3: Point out the restriction (optional)
If the data of a voucher is available, its restriction can be displayed.The section refers to the currently loaded voucher data, i.e. to an entered voucher or to one you have loaded with
VOUCHER-LoadData.In addition, you can use
WS-AppVersion to query whether the visitor is using the app at all, and show the reference to the app right away on a promotion page in the browser instead of only at the point of rejection.Related topics
- Guide: Offering vouchers: Overview
- Guide: Creating or importing vouchers
- Guide: Providing voucher entry
