Skip to content

Commit

Permalink
Load in shipping price method
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Jun 2, 2021
1 parent fd3a8e9 commit 9724744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Shipping/Services/ShippingPriceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function estimate($amount, $zip, $limit = 1)
}

// Get the shipping zone regional prices.
return $region->zone->prices()->whereHas('method', function ($q) {
return $region->zone->prices()->with('method')->whereHas('method', function ($q) {
return $q->whereType('regional');
})->get()->groupBy('shipping_method_id')->sortByDesc('min_basket')->first();
}
Expand Down

0 comments on commit 9724744

Please sign in to comment.