Skip to content

Update shipping methods to support multi-store context#707

Merged
KrzysztofPajak merged 1 commit into
developfrom
fix/shipment-plugins
May 31, 2026
Merged

Update shipping methods to support multi-store context#707
KrzysztofPajak merged 1 commit into
developfrom
fix/shipment-plugins

Conversation

@KrzysztofPajak

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 31, 2026 18:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the two in-tree shipping rate providers (FixedRate, ByWeight) to pass the current store id to IShippingMethodService.GetAllShippingMethods, so that checkout-time shipping method retrieval respects the multi-store filtering already implemented by the service (store-scoped methods + global empty-StoreId methods).

Changes:

  • FixedRateShippingProvider.GetShippingOptions now passes _contextAccessor.StoreContext.CurrentStore.Id as the storeId argument.
  • ByWeightShippingProvider.GetShippingOptions now passes _contextAccessor.StoreContext.CurrentStore.Id as the storeId argument.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Plugins/Shipping.FixedRateShipping/FixedRateShippingProvider.cs Filter shipping methods by current store during option resolution.
src/Plugins/Shipping.ByWeight/ByWeightShippingProvider.cs Filter shipping methods by current store during option resolution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Plugins/Shipping.ByWeight/ByWeightShippingProvider.cs
@KrzysztofPajak KrzysztofPajak merged commit 57ced16 into develop May 31, 2026
7 checks passed
@KrzysztofPajak KrzysztofPajak deleted the fix/shipment-plugins branch May 31, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants