Single message display for the restricted shipping methods

How to display a single message for the restricted shipping methods?

Since v. 2.12.0 of Shipping Restrictions extension, we have added the ability to display a single message for the restricted shipping methods from the same carrier when the carrier is only partially restricted. In order to obtain the functionality, the subscription functionality module should be installed additionally. You can find the 'amasty/module-shipping-restriction-subscription-functionality' package for installing in composer suggest. Please note that the modules are available as a part of an active subscription.

As soon as the module is installed, a new setting Apply to Partially Restricted Carriers would appear in Amasty > Shipping Restrictions > Shipping Restriction rule creation/editing page. It appears only if the Show Restrictions Method Once setting is enabled:



If Apply to Partially Restricted Carriers = Yes, restriction messages for carriers for which only certain shipping methods (not all methods) are restricted would be combined.




Starting v. 2.13.0 of Shipping Restrictions module it is possible to display a single restriction message if no shipping methods and carriers are available. The setting can be found in Amasty > Shipping Restrictions > Configuration > General:


The setting becomes available after installing the same package mentioned above: 'amasty/module-shipping-restriction-subscription-functionality'. Please note that the module is available as a part of an active subscription.

If the 'Display Single Message When No Shipping Methods Are Available' setting is set to 'No', the restriction message is displayed for all carriers: 


If it's set to 'Yes', there will be only one message displayed: