Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Returned shipment options are ordered by price
Mira Szewczyk13dce0c0a9e6
diff --git a/saleor/cart/forms.py b/saleor/cart/forms.pyindex b038ac93b0..03bf5a43af 100644--- a/saleor/cart/forms.py+++ b/saleor/cart/forms.py@@ -120,4 +120,5 @@ class CountryForm(forms.Form):def get_shipment_options(self):code = self.cleaned_data['country']- return ShippingMethodCountry.objects.filter(country_code=code)+ return ShippingMethodCountry.objects.filter(+ country_code=code).order_by('price')