Free gift to the order
A free gift to the order is a product, or one of several products, that the customer receives free of charge once the cart reaches an amount. Two parts of the system take part in it. A promotion of Shopware determines the amount and makes the gift free. The Gift to the order block of Nova displays the offer in the cart: the amount still missing, the gifts to choose from and the button that puts a gift in the cart. The block has no rules of its own; without the promotion it displays nothing.
Before you start
Section titled “Before you start”The gift products have to be available in the sales channel and must not require a choice of variant. A variant can be a gift; a main product with variants to choose is not displayed. A gift that cannot be put in the cart is left out of the offer.
The block is available only in the views Off-canvas cart and Cart page of the cart and checkout document. → Cart and checkout builder
1. Create the rule for the amount
Section titled “1. Create the rule for the amount”Settings → Automation → Rule builder → Create rule → fill in Name and Priority → add the condition Subtotal of all items with Is greater than / equal to and the amount from which the gift is offered. Save the rule. Do not add conditions under it that limit it to some products: the block then reads no amount from it.
The block reads the amount of the offer from this condition. Is greater than is read in the same way. When the promotion has several such conditions, the highest amount applies. The cart amount is the total of the products in the cart, the gifts included, which is the amount the rule compares. Shopware does not offer a rule with Grand total under the cart rules of a promotion.
2. Create the rule for the gift products
Section titled “2. Create the rule for the gift products”Same screen → Create rule → add the condition Items in cart with Is one of and the gift products. Save the rule. This rule limits the discount of the promotion to the gifts.
3. Create the promotion
Section titled “3. Create the promotion”Marketing → Promotions → Add promotion.
- Tab General, card General settings: fill in Name and tick Active. Valid from and Valid until may limit the offer in time. Card Promotion codes: No promotion code required.
- Tab Conditions, card Pre-conditions: under Sales Channels add the sales channel of the shop. Card Rule based conditions: under Shopping cart rules add the rule from step 1.
- Tab Discounts → Add discount → Basic discount. Set Discount type to Percentage with the value 100, and under Product rules choose the rule from step 2 in Rule select.
On the card of the discount, Apply to determines which units of the gifts in the cart become free:
- “1. item”: exactly one unit is free, also when the customer raises the quantity of the gift in the cart. Sort by determines which unit that is when the cart holds more than one; with Price, descending it is the most expensive. This value suits How many may be taken set to 1.
- All items: every unit of every gift in the cart is free, a quantity raised in the cart included. This value is required when the customer may take several gifts.
Save the promotion.
The block displays the offer only while the promotion is active, within its dates and assigned to the sales channel of the visit. Shopware applies an automatic promotion only in the sales channels added under Sales Channels; a promotion without any sales channel gives nothing, and the block then displays nothing either.
4. Add the block to the cart
Section titled “4. Add the block to the cart”Content → Nova → Cart and checkout → List of cart and checkout documents → Edit → View Off-canvas cart or Cart page → add the Gift to the order block to a column → tab Content:
- Promotion: the promotion from step 3.
- Gifts to choose from: up to six products, the ones the promotion makes free.
- How many may be taken: from 1 to 6; the default is 1.
- Bar to the amount: a progress bar under the text.
- Text before the amount, Text to choose and Text when taken: the texts of the three
states.
%remaining%is replaced by the amount missing,%threshold%by the amount of the promotion and%count%by the number of gifts still to take. An empty field uses the shop’s text.
The block can be added to both views separately.
5. Join the bar of free shipping
Section titled “5. Join the bar of free shipping”This step is optional. When the Gift to the order block is placed directly under the Free shipping block in the same column, and Look of that block is Bar or Bar with icon, the cart displays one bar for both goals. The bar carries two marks, “Free shipping from …” and “Free gift from …”, and the gift block displays no bar of its own.
6. Publish
Section titled “6. Publish”Publish the cart and checkout document. The draft remains invisible in the shop until it is published. → Documents
Checking it works
Section titled “Checking it works”Below the amount the block displays “Add … more for a free gift” with the amount missing. Each gift displays “Unlocks at …” with the amount of the promotion, and has no button.
Once the amount is reached, the block displays “Choose your free gift: … left”, and each gift is marked Free and offers Add free gift. A single gift is displayed as a row in the block. Several gifts are displayed as a line of their first three pictures, with ”+…” for the rest, and a button that opens the panel Your free gift with the full list: See gifts below the amount, Choose gift while gifts are left to take above the amount, and Change in the other cases once a gift is in the cart.
A gift taken is marked In your cart and offers Remove. With every gift taken, the block displays “Your free gift is in the cart”. When How many may be taken is 1, the other gifts then offer Choose instead, which replaces the gift in the cart; with a higher number they display Limit reached.
In the cart the gift is a line with its price, and the promotion adds a separate discount line. When the cart falls below the amount with a gift in it, the block displays “Add … more to keep your gift free”. The gift is then charged at its price until the amount is reached again.
When the block stays empty
Section titled “When the block stays empty”- The promotion is not active, is outside its dates, or is not assigned to the sales channel.
- None of the gift products can be put in the cart: they are not available, not visible in the sales channel, or they are main products with variants to choose.
- Promotion or Gifts to choose from is empty. The preview of the builder then displays Choose the promotion and the gifts.
The preview names the first two cases: The promotion gives nothing now (inactive, outside its dates or not in this channel): the shop leaves the block out. and None of the gifts can be bought in this channel (inactive, not in the channel, sold out or a product with variants): the shop leaves the block out.
A promotion without a Subtotal of all items condition has no amount. The gifts can then be taken at once.
Where to go next
Section titled “Where to go next”- Blocks of the cart and checkout: the other blocks of the cart, among them Free shipping.
- Cart and checkout builder: views, preview and publication of the document.