# Voucher Links for Shopware: manual

> Manual for Voucher Links: installation, creating codes, creating the link, combination rule, notice in the shop, statistics and all settings.

Quelle / Source: https://stoneandwater.online/en/manual-voucher-links.html

# Manual Voucher Links.

From installation to statistics: how to create codes, build the link for the newsletter, set the combination rule and read the figures.

[To the product page](https://stoneandwater.online/en/voucher-links.html)[Enquire directly](https://stoneandwater.online/en/contact.html)

## System requirements

Shopware 6.6 or 6.7. During installation the plugin creates its own tables for codes and statistics.

## Installation

The easiest way is the Plugin Suite: select the plugin, install, done. Alternatively upload the ZIP in the admin under Extensions, My extensions, Upload extension, then install and activate it. SSH access is not needed.

## Licence

The plugin needs a licence. If you start the test or rent the plugin in the Plugin Suite, the Plugin Suite enters the key by itself. If you received a key from us, enter it in the licence view of the module.

## Opening the module

The module is called Voucher Links and has three tabs: Codes and links, Statistics and Settings. At the top you choose the appearance (light, dark or as the system).

## First steps

After activation voucher links work right away:

- The parameters `gutschein`, `voucher` and `coupon` are recognised
- Every valid promotion code from Shopware can be redeemed via link
- The notice in the shop and the statistics are switched on

To try it, append `?voucher=YOURCODE` to an address of your shop. For own codes and finished links, create a code under Codes and links.

## Creating codes

Under Codes and links you create a code with New code. There are two kinds:

- **Own code:** you define discount, validity and rules in the plugin. The code is independent of the promotions in Shopware and works via link and in the voucher field of the cart
- **Shopware promotion code:** discount, validity and conditions come from the promotion in Shopware. In the plugin you add the link, the combination rule and the statistics. With Take over from Shopware you pick a promotion code

The voucher code has 2 to 64 characters, no spaces and none of the characters & ? # % + /. Upper and lower case do not matter when redeeming. The internal name helps you in the list, for example "Newsletter December".

## Discount of an own code

- **Discount type:** percent or fixed amount
- **Maximum discount:** caps the deduction at an amount, empty means no limit
- **Minimum goods value:** the code only applies from this goods value. Below that, the discount is deducted as soon as the value is reached
- **Name in the cart:** the name of the discount line in the cart and on documents. `%code%` is replaced by the code

The discount is deducted as a separate line in the cart and spread across the tax rates of the goods. Amounts are in the default currency and are converted for other currencies.

## Appearance in the cart

In the section Appearance in the cart you define at the code how the discount line looks:

- **Name in the cart:** the name of the discount line in the cart and on documents, can be set per language. `%code%` is replaced by the code. Languages without a text of their own use the text of the default language
- **Image in the cart:** shown at the discount line instead of the icon. JPG, PNG, WebP or GIF up to 5 MB, ideally square

An image can also be stored at a Shopware promotion code that has been created as an entry. Without an image of its own, the general image from the settings applies, section Cart. It applies to own codes and to Shopware promotion codes that have been created or came via a link.

## Rules

- **Active:** switches the code on or off
- **Combinable with other vouchers:** see Combination rule
- **Only once per customer:** checked via the email address of the order as soon as the customer is logged in or has entered their data
- **Maximum number of redemptions:** empty means unlimited
- **Valid from and Valid until:** the period in which the code applies
- **Sales channels:** all or only the selected ones

The list shows the state per code: Valid, Scheduled, Expired, Inactive or Used up.

## Creating the link

With Create link you open the window with the finished link for a code. You choose the shop address and the target page, for example `/` or `/sale`, and copy the link with one click.

The parameter works on every page of the shop: home page, category, product or landing page. The target page at the code is only the default for creating the link.

## What the visitor experiences

After the click the shop removes the parameter from the address and redirects once. The code is remembered and deducted as soon as there are goods in the cart. A notice in the shop confirms this.

- **Cart empty:** "The voucher has been saved and will be deducted in the cart automatically."
- **Goods in the cart:** "The voucher has been applied to the cart."
- **Code invalid:** "Sorry, the voucher is not valid (any more)."

In the cart the shop also reports when a code has expired or is used up, has already been redeemed, only applies from a goods value or cannot be combined.

## Combination rule

Per code you define whether it can be combined with other vouchers.

- **Own code, not combinable:** the code only applies on its own. If another own code is added, the new one replaces the old one. If a Shopware promotion code is already in the cart, this code waits until the other one is removed
- **Shopware promotion code, not combinable:** as long as this promotion code is in the cart, own codes are not deducted in addition. Whether it works with other Shopware promotions is defined by the promotion in Shopware

## The statistics

The Statistics tab shows for the selected period and sales channel:

- **Key figures:** clicks via link, redeemed in cart, orders, order rate, revenue and discount granted
- **Timeline:** the figures per day
- **Per code:** clicks, invalid clicks, redemptions, orders, rate, revenue and discount. With Show orders you see the related orders with number, date and source (via link or entered in the cart)

Clicks count every visit of a voucher link, without bots and prefetches by mail programs. Invalid are visits with a code that is not valid (any more). Redeemed counts once per visitor as soon as the discount is in the cart. The rate is the share of orders in clicks.

## Parameter in the address

Under Settings, Voucher links you define by which parameter the shop recognises a voucher link. Separate several names with a comma, the first one is used when creating links. By default: `gutschein, voucher, coupon`.

With Accept all Shopware promotion codes via link you decide whether every valid promotion code from Shopware works via link or only those created under Codes and links.

## Notice in the shop

The notice is the message the visitor sees after clicking the link. Under Position of the notice you choose:

- **Floating:** bottom centre, bottom left, bottom right, top centre, top left or top right. At the bottom the message moves above the cookie bar
- **In the page content:** fixed at the place where Shopware shows its own messages

The message fades out after the set duration or stays until the visitor closes it. The three texts (code saved, code applied, code invalid) can be changed, `%code%` is replaced by the code.

## Appearance of the notice

By default the message looks like the messages of your theme. With Use own appearance in the section Appearance of the notice it gets its own values:

- **Colours:** background, border, text and icon for a valid code, plus separate colours for an invalid code
- **Border and corners:** border width from no border to 4 px, corner radius from square to 32 px
- **Font:** font of the theme, system font, serif font or monospaced, optionally an own font family your theme already loads. Plus font size and font weight
- **Size:** inner spacing and width. On small screens the message always adapts
- **Shadow and icon:** both can be switched off. There is no shadow inside the page content

The preview in the settings shows the message for a valid and an invalid code. The font of the theme is not visible there.

For everything else there is the field Own CSS. The message has the classes `.staw-voucher-link-notice` and `.staw-voucher-link-alert`, plus per state `.staw-voucher-link-alert-saved`, `.staw-voucher-link-alert-applied` and `.staw-voucher-link-alert-invalid`.

## Sales channel and language

At the top of the settings you choose for which sales channel and language the values apply. Without a selection they apply everywhere. Each level can inherit or override single values, with a click on Inherited or Own value you switch between the two. This way texts can be maintained per language.

## Resetting the statistics

Under Settings, Statistics you delete all figures, for example after the test phase.

**Note:** The count for the maximum number of redemptions and for Only once per customer also starts again.

If you switch off Collect statistics, clicks and redemptions are no longer counted. Orders with own codes are always counted because the maximum number of redemptions is based on them.

## Troubleshooting

**The link redeems nothing:** Check whether Voucher links active is on, the parameter in the link matches the configured names and the code has the state Valid.

**The discount does not appear in the cart:** If a minimum goods value applies, the discount is only deducted once it is reached. With codes that cannot be combined, the code waits as long as another voucher is in the cart.

**An own code cannot be created:** If the code already exists as a promotion code in Shopware, create it as a Shopware promotion code or choose another code.

## Support

Questions and requests are welcome directly to us - support comes from the developer, not from a queue. Via the Plugin Suite in the admin you reach us straight from the shop.

## All settings

Every setting of the plugin with default value and explanation, in the same order as in the administration. The texts come directly from the plugin (version 1.2.0).

### Voucher links

Switches the links on, defines the name of the parameter in the address and which codes are accepted.

**Voucher links active** Default: on

Switches redeeming via link and the own codes in the shop on or off.

**Parameter in the address** Default: gutschein, voucher, coupon

Name of the parameter by which the shop recognises a voucher link, for example gutschein in ?gutschein=NEWS10. Separate several names with commas, the first one is used when creating links. Letters, digits, hyphen and underscore are allowed.

**Accept all Shopware promotion codes via link** Default: on

On: every valid promotion code from Shopware works via link, even without an entry under Codes and links. Off: only codes added there are accepted.

**After the link was opened** Default: Stay on the visited page

The shop removes the parameter from the address and redirects once. Optionally it goes straight to the cart if it already contains goods.

### Cart

How own codes are named in the cart and whether they can also be redeemed in the voucher field.

**Accept own codes in the voucher field** Default: on

On: own codes can also be entered in the voucher field of the cart. Off: they only work via link.

**Name of the discount line** Default: empty

Text of the discount line in the cart for own codes without a name of their own. %code% is replaced by the code. Can be set per language.

**General image in the cart** Default: empty

Image for the discount line in the cart when the code has no image of its own. Applies to own codes and to Shopware promotion codes that are added here or came via a link. JPG, PNG, WebP or GIF up to 5 MB.

### Notice in the shop

Small message that shows the visitor after clicking a voucher link that the code has been remembered.

**Show notice** Default: on

Shows a short message in the shop after a voucher link was clicked.

**Position of the notice** Default: Bottom centre

Where the message appears: floating in a corner or centred at the top or bottom edge, or fixed in the page content where Shopware shows its own messages.

**Display time** Default: 8 seconds

After that the notice fades out by itself.

**Text: code saved** Default: empty

Shown when the cart is still empty. %code% is replaced by the code. Leave empty for the default text.

**Text: code redeemed** Default: empty

Shown when the discount was deducted in the cart right away. %code% is replaced by the code.

**Text: code invalid** Default: empty

Shown for an unknown or expired code. %code% is replaced by the code.

### Appearance of the notice

Own colours, border, font and size for the message in the shop. Switched off it looks like the messages of your theme.

**Use own appearance** Default: off

On: the message gets the colours, border and font from here. Off: it looks like the messages of your theme.

**Background colour** Default: #e7f6ec

Background of the message for a valid code.

**Border colour** Default: #9fd5ae

Colour of the border for a valid code.

**Text colour** Default: #14532d

Colour of the text for a valid code.

**Icon colour** Default: #15803d

Colour of the icon in front of the text for a valid code.

**Background colour for an invalid code** Default: #fdecec

Background of the message when the code is not valid (any more).

**Border colour for an invalid code** Default: #f3b4b4

Colour of the border when the code is not valid (any more).

**Text colour for an invalid code** Default: #7f1d1d

Colour of text and icon when the code is not valid (any more).

**Border width** Default: 1 px

Thickness of the border around the message.

**Corner radius** Default: 8 px

How much the corners of the message are rounded.

**Font** Default: Font of the theme

Font of the message. With Font of the theme it matches the rest of the shop.

**Own font family** Default: empty

Name of a font your theme already loads, for example Inter or Poppins. Takes precedence over the font above. Leave empty if you do not need a font of your own.

**Font size** Default: 15 px

Size of the text in the message.

**Font weight** Default: Normal

How bold the text is set.

**Inner spacing** Default: Normal

Space between the text and the edge of the message.

**Width** Default: Normal (560 px)

Maximum width of the message. On small screens it always adapts.

**Shadow** Default: on

Shadow below the floating message. There is no shadow inside the page content.

**Show icon** Default: on

Shows the icon in front of the text.

**Own CSS** Default: empty

For everything else. The message has the classes .staw-voucher-link-notice (wrapper) and .staw-voucher-link-alert, plus per state .staw-voucher-link-alert-saved, -applied and -invalid.

### Statistics

Counts clicks, redemptions, orders and revenue per code. No personal data is stored.

**Collect statistics** Default: on

Counts clicks and redemptions. Orders with own codes are always counted because the maximum number of redemptions relies on it.

## Availability

Directly from Stone & Water

### Via the Plugin Suite

Monthly 6,99 €

Best price Yearly 71,30 € 15 % cheaper

All prices net plus VAT.

Download the free Plugin Suite and upload it in the admin, no SSH needed. With it you install and update the plugin with one click. You buy the licence directly from us, with an invoice from us and support straight from the developer.

[Download Plugin Suite](https://stoneandwater.online/en/plugin-suite.html)[+49 2555 9997342](tel:+4925559997342)

Test

### 30 days free

In the Plugin Suite you start the test with one click. After 30 days it turns into the rental unless you end it before. You can end it at any time in the Plugin Suite.
