Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Cleanup
Patryk Zawadzki5f49af602a08
diff --git a/saleor/checkout/steps.py b/saleor/checkout/steps.pyindex 6ae1f2fe36..38ad13ae7c 100644--- a/saleor/checkout/steps.py+++ b/saleor/checkout/steps.py@@ -7,7 +7,7 @@ from django.shortcuts import redirectfrom django.utils.translation import ugettext_lazy as _from satchless.process import InvalidData-from .forms import UserAddressesForm, ShippingForm+from .forms import ShippingForm, UserAddressesFormfrom ..checkout.forms import AnonymousEmailFormfrom ..core.utils import BaseStepfrom ..delivery import get_delivery_options_for_items@@ -81,12 +81,11 @@ class ShippingAddressStep(BaseCheckoutStep):data=request.POST or None, queryset=addresses_queryset,prefix=self.step_name, initial={'address': initial_address})self.forms['new_address'] = AddressForm(- request.POST or None, prefix=self.step_name, instance=address)+ request.POST or None, prefix=self.step_name, instance=address)def process(self, extra_context=None):context = dict(extra_context or {})context['addresses'] = self.addresses- context['button_label'] = _('Ship to this address')return super(BaseCheckoutStep, self).process(extra_context=context)def forms_are_valid(self):@@ -229,7 +228,6 @@ class SummaryStep(BaseCheckoutStep):context = dict(extra_context or {})context['shipping_address'] = self.shipping_addresscontext['addresses'] = self.addresses- context['button_label'] = _('Bill to this address')context['display_email_form'] = self.forms.get('email')response = super(SummaryStep, self).process(context)diff --git a/saleor/checkout/templates/checkout/details.html b/saleor/checkout/templates/checkout/details.htmlindex 5f2853af8a..8becc1f65d 100644--- a/saleor/checkout/templates/checkout/details.html+++ b/saleor/checkout/templates/checkout/details.html@@ -22,21 +22,12 @@{% block footer %}{% endblock %}-{% if not user.is_authenticated %}- <p class="alert alert-info">- {% trans "Already have an account?" %}- <a href="{% url "registration:login" %}?next={% url "checkout:details" step="shipping-address" %}">- {% trans "Log in" %}- </a>- </p>-{% endif %}-{% block content %}{% if not user.is_authenticated %}<p class="alert alert-info">{% trans "Already have an account?" %}<a href="{% url "registration:login" %}?next={% url "checkout:details" step="shipping-address" %}">- {% trans "Log in" %}+ {% trans "Sign in" %}</a></p>{% endif %}