Drupal is a registered trademark of Dries Buytaert

Adds a commerce product / variation field type and a commerce condition, which serve to exclude specific shipping methods not allowed for a product / variation.

The shipping methods to exclude for these products can easily be selected in the product / product variation. Shipping methods that are excluded by any cart item are then not available for selection in checkout.

Requirements (required)

This module requires the following modules:

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

  • Enable the module at Administration > Extend.
  • Now create a new "Exclude Shipping Method" field on a product and / or product variation and make sure to set the cardinality to "Unlimited".
  • For every "Shipping Method" you desire to be excluded on a product / product variation level, you need to enable the "Allow to exclude From Shipping" condition on the excludable shipping method.
  • Now, when all desired shipping methods are tagged for potential exclusion, you can define for each product / product variation instance, which shipping method you don't want to allow for that specific product / product variation instance.
    • Note, that the condition will always check, on the product variation level, whether the "Allow to exclude From Shipping" field is set and whether its value is empty. If the field is not set or the field value is empty, it will do the same check on the parent product. Meaning if the field is set on both the product and product variation, the value of the product variation will overwrite the field value of the product.
  • Done!

Supporting this module

Support DROWL's ♥ FOSS work on this module on OpenCollective!

Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!

We're committed to building and maintaining Drupal modules that benefit the entire community.

Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!

If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.

Support our FOSS development ♥️

You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!

Sponsor a feature or bugfix 🚀

Let's make Drupal even better, together!

Development proudly sponsored by German Drupal Friends & Companies:

webks: websolutions kept simple (https://www.webks.de)
and
DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (OWL), Germany (https://www.drowl.de)

Activity

Total releases
4
First release
Feb 2025
Latest release
11 months ago
Release cadence
10 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
1.0.0-beta3 Pre-release Mar 11, 2025
1.0.0-beta1 Pre-release Feb 13, 2025
1.0.0-alpha1 Pre-release Feb 11, 2025
1.x-dev Dev Feb 10, 2025