Multiple eligibility checks (conditions) for shipping method #4317
dlhck
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Currently one shipping method can apply only one eligiblity checker function. In case that multiple conditions apply we need to write in code completely new eligibility checker that combines all needed checks.
Describe the solution you'd like
Analogously to "Promotion" where we can add multiple conditions we would like to be able to add multiple eligibility checkers to shipping (and in case of upcoming implementation of #469 payments as well).
For method to be eligible all checks have to pass.
-Additionally metadata of all checks that didn't pass (or all checks and their status) should be present on "ShippingMethodQuote" object so appropriate feedback on why that particular method is not eligible can be shown to user.
e.g. extend ShippingMethodQuote object with properties:
eligible: booleanand
eligibilityChecks: {id: ID, customFields: {{public custom fields/args of ShippingEligibilityChecker}}, eligible: boolean}[]Beta Was this translation helpful? Give feedback.
All reactions