Skip to content

Should auto remove fulfilled shippingLines for activeOrder while we reset shippingAddress #3353

Open
@tianyingchun

Description

Describe the bug

  1. consider below checkout process
  1. we invoke setOrderShippingAddress mutation setup shippingAddress for activeOrder
  2. we have customized shipping method with eligibility checker it will depends on activeOrder.shippingAddress e.g. countryCode
  3. we go back to change shippingAddress, at this time eligibleShippingMethods will return us empty, shippingMethod, for this we have no way to unset shippingLines we have selected at last time.

Expected behavior
should we auto check if we have eligible shippingMethods which includes we have fulfilled shippingLine, if not remove it , it available keep it.

Environment (please complete the following information):

  • @vendure/core version: 3.1.2

Additional context
Add any other context about the problem here.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions