From dc2e725898692b0fd5a47f7132b531afd7d0b58a Mon Sep 17 00:00:00 2001 From: KrzysztofPajak Date: Sun, 31 May 2026 20:12:11 +0200 Subject: [PATCH] Update shipping methods to support multi-store context --- src/Plugins/Shipping.ByWeight/ByWeightShippingProvider.cs | 3 +-- .../Shipping.FixedRateShipping/FixedRateShippingProvider.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Plugins/Shipping.ByWeight/ByWeightShippingProvider.cs b/src/Plugins/Shipping.ByWeight/ByWeightShippingProvider.cs index ae5873311..484f70d6c 100644 --- a/src/Plugins/Shipping.ByWeight/ByWeightShippingProvider.cs +++ b/src/Plugins/Shipping.ByWeight/ByWeightShippingProvider.cs @@ -230,8 +230,7 @@ public async Task GetShippingOptions(GetShippingOptio var weight = await GetTotalWeight(getShippingOptionRequest); - var shippingMethods = - await _shippingMethodService.GetAllShippingMethods(countryId, _contextAccessor.WorkContext.CurrentCustomer); + var shippingMethods = await _shippingMethodService.GetAllShippingMethods(countryId, _contextAccessor.WorkContext.CurrentCustomer, _contextAccessor.StoreContext.CurrentStore.Id); foreach (var shippingMethod in shippingMethods) { double? rate = null; diff --git a/src/Plugins/Shipping.FixedRateShipping/FixedRateShippingProvider.cs b/src/Plugins/Shipping.FixedRateShipping/FixedRateShippingProvider.cs index 1323187b8..87280904a 100644 --- a/src/Plugins/Shipping.FixedRateShipping/FixedRateShippingProvider.cs +++ b/src/Plugins/Shipping.FixedRateShipping/FixedRateShippingProvider.cs @@ -63,8 +63,7 @@ public async Task GetShippingOptions(GetShippingOptio !string.IsNullOrEmpty(getShippingOptionRequest.ShippingAddress.CountryId) ? getShippingOptionRequest.ShippingAddress.CountryId : ""; - var shippingMethods = - await _shippingMethodService.GetAllShippingMethods(restrictByCountryId, getShippingOptionRequest.Customer); + var shippingMethods = await _shippingMethodService.GetAllShippingMethods(restrictByCountryId, getShippingOptionRequest.Customer, _contextAccessor.StoreContext.CurrentStore.Id); foreach (var shippingMethod in shippingMethods) { var shippingOption = new ShippingOption {