Rewards & free productsRewards
  1. Home
  2. Rewards
  3. Variants to choose from

Giving away a T-shirt is a question of size.

That is why the customer decides for variants. The tile carries a select box with every variant that really exists, and only with a choice can the gift be picked.

The select box shows real variants
The entries read like in the shop, for instance "Colour: red, size: M". Only variants that are active and available are loaded, in a fixed alphabetical order.
Without a choice there is no next step
A click on "Choose gift" without a selected variant submits nothing, the field is highlighted. That way no variant nobody picked ever lands in the cart.
Or you fix the variant yourself
If you enter a variant directly in the admin, the tile shows it without a select box, for instance "Size: M". Then this one copy is what there is.
The automation holds back
Rewards with several variants are never added by the automatic selection. The help text of the setting says so as well.

Tile in the cart

RewardGift from € 100

Select variantColour: red, size: M

ButtonChoose gift

After the choice, in the cart

ItemVariant product

PropertiesColour: blue, size: XL

Product numberSWDEMO10005.2

Price€0.00

The choice on the tile becomes an item with exactly that variant, including its own product number.

Why this is validated.

The chosen variant comes from the browser, and whatever comes from the browser is checked by the plugin: does the submitted variant actually belong to the configured parent product? Without that check somebody could swap the identifier and put any product into the cart for free. The comment in the source code says exactly that.

The kinds in detail.

Free product

A real product from the catalogue, in the cart at €0.00.

Ready to let your cart hand out rewards?

Put a product into the cart in the demo shop and watch the gifts appear. Or start free with a single reward in your own shop.

Open the demo shop View in the store