Prerequisites for both
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.ws_basket.htm and the order overview page ws_place_order.htm is missing.
Guide: Provide voucher entry · Reference: Voucher-Txt section
Maximum redemption amount
A percentage grows with the basket. Ten percent of 50 euros costs you five euros; the same ten percent of 3,000 euros costs 300. With a maximum redemption amount, you cap these savings.
You define the amount when creating the voucher in the voucher generator in the online service area.
Displaying the notice in the basket
The cap is only understandable for the buyer if you point it out. There are two sections for this.The two belong together and should both be set. The first notice appears as soon as the voucher is redeemed and spares the buyer a surprise. The second only appears at the moment the discount is actually reduced and explains the difference between the expected and the actual deduction.
Displaying a percentage voucher per item
By default, a percentage voucher deducts an amount from the total merchandise value and appears as one line in the totals. Alternatively, it can be allocated to each basket item individually. The buyer then sees the original price, the discount amount, and the discounted price for each item.Step 1: Activating the calculation
Step 2: Outputting the prices in the basket
Add the original price and the discount amount in the basket loop. The same block must also be placed in the loop of the set sub-products; otherwise their items remain without a discount indication.BASKET-PR-PriceWithoutDiscounts is both a section and a single tag. As a section, it hides the original line as long as there is nothing to deduct, so that non-discounted items do not show a pointless line such as “Original price 20.00 EUR minus 0.00 EUR”.Why the two are mutually exclusive
The shop displays a percentage voucher per item only if all three conditions apply:- The voucher is a percentage voucher.
ShowPercentalVoucherDiscountForPosition-Allowis set toyes.- The voucher has no maximum redemption amount.
ShowPercentalVoucherDiscountForPosition-Allow were set to no. The setting in the configuration remains unchanged; it simply does not apply to this one voucher.
The reason lies in the calculation. A cap affects the total amount, not individual items. As soon as a reduction takes place, it could no longer be allocated to the items in a way that reflects their contribution without becoming arbitrary.
Related topics
- Guide: Offering vouchers: Overview
- Guide: Create or import vouchers
- Guide: Provide voucher entry
