Manual

Who may return, and which products stay in the shop?

Four conditions on the order and three levels on the product decide what a customer can send back in the shop. The plugin checks them in a fixed order, when the order is opened and again on sending, and shows the customer the first reason that does not fit. In the admin the same conditions are only notices.

In the adminOrders › Return shipments › side menu System › Settings › card Requirements for orders

Conditions on the order

In which order does the plugin check an order?

An order offers a return shipment in the shop only when it meets every requirement. An empty field is no requirement: without a choice every order state, every customer group and every country applies. The check always runs in this order, and the first reason that does not fit is shown to the customer.

  1. 1

    Offer return shipments in the card “General” is on. When it is off, the sales channel has neither the entry “Return shipments” in the customer account nor the button at the order. On by default.

  2. 2

    Valid order states: the order is in one of the states chosen, for example “In progress” or “Done”. The choice holds the states of an order, not those of the delivery or the payment.

  3. 3

    Valid customer groups: the customer belongs to one of the customer groups chosen today. This way consumers create return shipments, dealers do not.

  4. 4

    Valid countries: the billing address or a delivery address is in one of the countries chosen; one of the two is enough.

  5. 5

    Allow a maximum of one return shipment per order: switched on, an order gets no second return shipment, whatever the status of the first one and whether products are still open. Off by default.

  6. 6

    Then come the deadline, when it is on, and the products themselves: at least one has to be able to go back that is not in another return shipment yet. The chapter Deadlines and the section Leaving products out show both.

How to set the conditions

The conditions are in the configuration; order states, customer groups and countries also in the second step of the setup assistant. Like every setting they apply per sales channel, so a shop in Austria can have other ones than a shop in Germany.

  1. 1

    Open Orders › Return shipments and in the side menu System › Settings.

  2. 2

    Choose the Sales Channel at the top. “All Sales Channels” is the default, a single sales channel deviates from it.

  3. 3

    In the card Requirements for orders choose states, customer groups and countries; what stays empty applies to all. The blue notice at the top of the card sums up the rule.

  4. 4

    Click Save. The conditions apply to every order a customer opens afterwards.

What the customer sees

Which sentence does the customer see when a condition does not fit?

On the page of the order, below “New return”, there is either the button to create one or a blue notice with the reason. The form itself does not open then. The sentences speak without a salutation, like every other text of the plugin.

  • When everything fits, the button Create new return stands below the products.

  • When a condition does not fit, its sentence stands there instead, here for an order in a state that is not one of the valid ones. The column on the right then shows “--” for every product.

What does not fitSentence for the customer
“Offer return shipments” is off“No return is possible for this order at the moment.”
order state not valid“No return is possible in the current status of this order.”
customer group not valid“Online returns are not available for this order at the moment.”
country not valid“Online returns are not available for the shipping or billing country of this order at the moment. The goods can go to the return address of the shop with sufficient postage.”
a return shipment exists, only one allowed“There is a return for this order already, another one is not possible.”
deadline over“The deadline for returns of this order expired on 5 Dec 2026.”
deadline not started yet“A return is possible as soon as the delivery has the status "Shipped".”
no product that can go back“This order contains no items that can be returned.”
everything in return shipments already“There is a return for every item of this order already.”

The plugin fills in date and delivery status; the examples show a deadline until 5 December 2026 and the delivery status “Shipped”.

Leaving products out

How do I leave a single product out of return shipments?

On installation the plugin creates the custom field “Exclude from return shipments” at the product, in the set “Return shipment”. Switched on, the product can no longer be chosen when a return shipment is created, for example hygiene products, custom-made goods or reduced remaining stock.

  1. 1

    Open Catalogues › Products and the product, here the hat “Beanie Kiel”.

  2. 2

    Switch to the tab Specifications.

  3. 3

    In the card Custom fields choose the tab Return shipment.

  4. 4

    Switch on Exclude from return shipments.

  5. 5

    Click Save. Variants take the switch from the main product as long as they have no value of their own.

How does the customer see a product that is left out?

The form shows every position of the order, also those that cannot go back. This way the customer sees that they exist and why they cannot be chosen.

  • The product left out stays in the list greyed out, below it “Excluded from returns.”

  • Its quantity is fixed at 0.

  • Every other product can be chosen as usual, with the number of pieces still possible and the price per piece.

  • In the window “Create return shipment” of the admin a product left out shows with a notice and can still be chosen there.

How do I leave many products out at once with a Twig rule?

For rules over many products a Twig expression checks every position of the order, for example all products of a range of numbers or all positions of a certain order. The expression sets isValid; the plugin sets it to true beforehand, and {% set isValid = false %} leaves the position out.

  1. 1

    In the card Requirements for products (Twig) switch on Check products with Twig.

  2. 2

    Write the expression into the field Twig expression. By default it holds an example that leaves out a product with the number abc-12345 and every position of the order 12345.

  3. 3

    Click Save and open a test order in the shop: positions left out show greyed out there.

In the expressionWhat it is
{{ lineItem }}the position of the order, a record from order_line_item
{{ lineItem.product }}the product of the position, for example with productNumber
{{ lineItem.order }}the order, for example with orderNumber
{{ lineItem.quantity }}the quantity ordered of the position
{% set isValid = false %}leaves the position out

Example: {% if lineItem.product and lineItem.product.productNumber == 'RS-1007' %}{% set isValid = false %}{% endif %} leaves out the hat with the number RS-1007.

Which positions do not go back by themselves?

Standard products of Shopware go back. The plugin blocks everything else by itself, without a setting, and names the reason in the form. Pieces sent back already count as well: what is in another return shipment cannot be chosen again.

  • Standard products go back, as many pieces as are not in a return shipment yet. Sets from the set configurator of digitvision go back with the products chosen in them.

  • Discounts, vouchers, credits, custom positions and b-stock: “Can not be sent back.”

  • Digital products (product type “digital”): “Download, can not be sent back.”

  • Return labels bought: “Label, can not be sent back.” This also applies in the admin.

Once every piece has been sent back, the product shows “Already sent back with return 50231.” When an order holds nothing at all that can go back, the customer sees the matching sentence from the table above instead of the form.

Common questions

Can I keep dealers from creating return shipments?

Yes. In the card “Requirements for orders” choose under “Valid customer groups” only the customer groups that may send back, for example the standard customer group. The customer group the account is in today counts.

Does the billing or the delivery address count for the countries?

Both. An order meets “Valid countries” when the billing address or a delivery address is in one of the countries chosen.

Does “Allow a maximum of one return shipment per order” also apply in the admin?

No. The setting only limits what customers create in the shop. In the admin another return shipment can be created for any order.

How do I leave hygiene products out of return shipments?

At the product, tab “Specifications”, card “Custom fields”, tab “Return shipment”, switch on “Exclude from return shipments”. For many products at once there is the Twig expression in the configuration.

Does the customer see products that are left out in the form?

Yes. They stay in the list greyed out, with quantity 0 and the sentence “Excluded from returns.”, so the customer knows why they cannot be chosen.

Do downloads, vouchers and discounts go back?

No. Standard products go back. The plugin blocks digital products, discounts, vouchers, credits, custom positions, b-stock and return labels bought by itself.

Does the store API check the same conditions?

Yes. A return shipment through the store API runs through the same check as the form in the shop, with the same conditions on order and products.