
msDiscount integration
One-time discount coupons to reduce the full order cost.
You create coupon groups with absolute or percentage discounts and optional expiration. Use unique prefixes to distinguish groups.

Adding coupons to order
Requires miniShop 2.4 or higher.
Add a new field to the order chunk so customers can enter the code.
This is pas.order:
php
{set $field = 'coupon_code'}
<div class="row input-parent">
<label class="form-control-static control-label col-md-4" for="{$field}">
{('payandsee_' ~ $field) | lexicon}:
</label>
<div class="form-group col-md-8">
<input type="text" id="{$field}" placeholder="XXXXX-XXXX-XXXX-XXXX"
name="{$field}" value="{$order[$field]}"
class="form-control{($field in list $errors) ? ' error' : ''}">
</div>
</div>Example for standard Bootstrap 3 layout.
When a coupon is added it is validated; on error the field is not saved and an error is shown.

Message text can be changed in system lexicons.
On success, the price updates like this (gif):

