Plugin: Shipping Restriction

Table of contents

Introduction

This plugin allows you to block individual countries for deliveries in order to comply with the new EU Geoblocking Directive. A free text field under "Basic Settings > Shop Settings > Countries" allows you to define whether a country is also available as a delivery country. As of Shopware 5.5.3, this function is already included in the core and the plugin is no longer required.

Installation

The Plugin "Shipping Restriction" can be installed like any other plugin in the Plugin Manager. After the installation of the plugin you should reload your backend once, so the plugin is shown in the menu structure, sometimes you might have to clear the cache and reload again.

Configuration

After installing the plugin you find a new free text field at Configuration > Basic settings > Shop settings > Countries. To see the field you click on the button for free text fields (1) and there find the option "Allow as shipping country:" (2) to enable or disable a country for shipping.

When you deactivate this checkbox and save the configuration the customer will get an information about countries not available for shipping when he changes his address in the account or the checkout. 

If the customer still chooses one of this restricted countries in the address for shipping he will get another information that a shipment in this country is not possible in the checkout and the button for the finishing of an order will be hidden.

Individualise texts

The shown information texts are defined in the snippets and you can change those at Configuration > Snippets > frontend > address > index.

The snippets have the names "CountryNotAvailableEditor", "CountryNotAvailableEditorInfo" and "CountryNotAvailableForShipping".