Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Irrespective of conditions operator selected for a shipment method it is always AND that is used when comparing results of order conditions and shipment conditions.
That is, when "Only one condition must pass" option is selected, and a shipping method has both order and shipment conditions, and only one of them passes, the shipping method will not apply.
Steps to reproduce
- Create a shipping method that has both order conditions (e.g. "Order type") and a shipment condition (e.g. "Shipment weight"), and check "Only one condition must pass" option.
- Create an order for which only one of the conditions above passes (e.g. passing weight but wrong order type).
- See the shipping method is not listed on the checkout.
Proposed resolution
Apply the condition operator not only inside order and shipment conditions groups but also between them.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_shipping-conditions-operator-3269908-2.patch | 1.19 KB | Alex Bukach |
|
Comments
Comment #2
Alex Bukach CreditAttribution: Alex Bukach at Oomph, Inc. commentedComment #4
jsacksick CreditAttribution: jsacksick at Centarro commentedLooks like a no brainer patch to me! Thank you, committed!