Skip to content
  1. Extras
  2. PayAndSee
  3. Other extras
  4. msPromoCode

msPromoCode integration

Promo codes to reduce the full order cost.

You create promo codes with absolute or percentage discounts and optional expiration. Works with msPromoCode's Cart discount option.

Discount system

Adding promo codes 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:

fenom
{set $field = 'mspromo_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"
            name="{$field}" value="{$order[$field]}"
            class="form-control{($field in list $errors) ? ' error' : ''}">
    </div>
</div>

Example for standard Bootstrap 3 layout.

When a promo code is added it is validated; on error an error is shown, otherwise the order discount is applied.

Message text can be changed in system lexicons.