Limiting withdrawal by country
What it does
Offer the self-service withdrawal only for orders with an address in the countries you choose. You set this in Stores → Configuration → MageMe Extensions → EU Withdrawal, group Scope & Applicability.
Before you start
- The module is switched on. See Quick start.
How the country check works
When Restrict by Country is Yes, an order is in scope when its billing address or its shipping address is in Offer Withdrawal For Countries. One matching address is enough. An order with no country on either address is in scope too. If Offer Withdrawal For Countries is empty, the restriction has no effect.
The list starts with the 27 EU countries plus Norway, Iceland and Liechtenstein. The United Kingdom is not preselected; select it if you want to offer the flow for orders with a UK address.
Steps
-
Go to Stores → Configuration → MageMe Extensions → EU Withdrawal.
-
If your store has several websites or store views, choose the one you set up in the scope switcher at the top of the page. Clear Use Website or Use Default next to a field to edit it.
-
Expand Scope & Applicability.
-
Set Restrict by Country to Yes.
-
In Offer Withdrawal For Countries, select the countries. Hold Ctrl (Cmd on a Mac) to select several.
-
Click Save Config.
What you should see
For an order with no address in the list:
- the order page in My Account shows no withdrawal card;
- a guest who looks the order up on the withdrawal page sees Self-service withdrawal is not available for this order.
- the order and shipment emails have no withdrawal link;
- at checkout, when neither address of the cart is in the list, the withdrawal information block and the Digital content waiver step are not shown.
The footer link and the withdrawal page stay visible to everyone: the check is made per order.
Limits
- The check uses the addresses stored on the order, not the customer's current address.
- It changes where the self-service flow is offered and, for addresses outside the list, also removes the withdrawal information block and the Digital content waiver step from checkout and the withdrawal link from order and shipment emails. It does not decide who has a right of withdrawal, and it does not handle withdrawals that reach you outside the storefront flow. See Known limitations.
Troubleshooting
- A customer abroad can still withdraw. One of the two addresses on the order is in the list. The check accepts either.
- The restriction does nothing. Check that Restrict by Country is Yes for the store view and that Offer Withdrawal For Countries is not empty.
What's next
- Limiting withdrawal by customer group: hide the flow from some customer groups.
- The withdrawal card on the order page: see when the card appears.
- Scope & Applicability settings: every field of the group.