Skip to content

[5.x]: Shipping Method Conditions only allow selecting one Purchasable/Product Variant rule value #4242

@wmdhosting

Description

@wmdhosting

What happened?

Description

In Craft CMS 5 / Commerce, when configuring a Shipping Method and adding a condition under Conditions → Match Order → Has Purchasable → Product Variant, the UI appears to allow selecting only one purchasable/product variant. It is not possible to add multiple variants within the same rule condition.

This makes it difficult to create a shipping method that should apply to several specific variants.

Steps to reproduce

teps to reproduce

Go to Commerce → Store Settings → Shipping Methods.

Edit an existing shipping method or create a new one.

Open the Conditions tab.

Under Match Order, add a rule:

Has Purchasable

Product Variant

Select one variant.

Try to add another variant to the same rule.

Expected behavior

It should be possible to select multiple product variants/purchasables in the same condition rule, or there should be a clear supported way to define an OR condition for several variants inside the shipping method conditions UI.

Actual behavior

Only one product variant can be selected in the rule. The UI does not appear to support adding multiple variants to the same condition value.

Craft CMS version

5.8.x

Craft Commerce version

5.5

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions