Skip to content

Commit

Permalink
Merge branch 'feature/HS-188' into 'develop'
Browse files Browse the repository at this point in the history
HS-188

Closes HS-188

See merge request heseya/store-api!77
  • Loading branch information
bjuraszewski committed Jun 22, 2021
2 parents ad9dca9 + 61987f2 commit 6329fe5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Models/ShippingMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ public function countries(): BelongsToMany
*/
public function priceRanges(): HasMany
{
return $this->hasMany(PriceRange::class, 'shipping_method_id');
return $this
->hasMany(PriceRange::class, 'shipping_method_id')
->orderBy('start');
}

public function getPrice(float $orderTotal): float
Expand Down

0 comments on commit 6329fe5

Please sign in to comment.