Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Plugins/Shipping.ByWeight/ByWeightShippingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,7 @@ public async Task<GetShippingOptionResponse> 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);
Comment thread
KrzysztofPajak marked this conversation as resolved.
foreach (var shippingMethod in shippingMethods)
{
double? rate = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ public async Task<GetShippingOptionResponse> 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 {
Expand Down
Loading