Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add order info link to thank you page
weronka7a71e88cb628
diff --git a/saleor/order/views.py b/saleor/order/views.pyindex 579f5505aa..fd584b6f94 100644--- a/saleor/order/views.py+++ b/saleor/order/views.py@@ -133,5 +133,5 @@ def create_password(request, token):if auth_user is not None:auth.login(request, auth_user)return redirect('order:details', token=token)- ctx = {'form': form, 'email': email}+ ctx = {'form': form, 'email': email, 'order': order}return TemplateResponse(request, 'order/create_password.html', ctx)diff --git a/saleor/static/img/pirate-checkout.png b/saleor/static/img/pirate-checkout.pngindex a8ab2135bc..b083a5e8dd 100644Binary files a/saleor/static/img/pirate-checkout.png and b/saleor/static/img/pirate-checkout.png differdiff --git a/saleor/static/img/pirate-checkout2x.png b/saleor/static/img/pirate-checkout2x.pngindex 3fb6a0d488..a8ab2135bc 100644Binary files a/saleor/static/img/pirate-checkout2x.png and b/saleor/static/img/pirate-checkout2x.png differdiff --git a/saleor/static/scss/storefront/components/_checkout.scss b/saleor/static/scss/storefront/components/_checkout.scssindex cb6a80aebf..5af6f97962 100644--- a/saleor/static/scss/storefront/components/_checkout.scss+++ b/saleor/static/scss/storefront/components/_checkout.scss@@ -3,7 +3,7 @@&__header {background-color: $gray;padding: $global-padding 0;- margin-bottom: $global-margin * 4;+ margin-bottom: $global-margin * 2;@include media-breakpoint-down(sm) {margin-bottom: $global-margin * 2;& ~ .maincontent {@@ -89,6 +89,10 @@span {color: $dark-gray;}+ h1 a {+ color: $body-color;+ text-decoration: underline;+ }&__pirate-mail {position: absolute;left: 0;@@ -141,9 +145,7 @@}&__image {img {- margin: $global-margin 0 $global-margin * 2.8;- padding: 0 $global-padding * 4.8;- max-width: 100%;+ margin: $global-margin * 3.5 0 $global-margin * 2.8;@include media-breakpoint-down(sm) {margin-top: $global-margin * 3;}diff --git a/templates/order/create_password.html b/templates/order/create_password.htmlindex 712d0b7b7f..f2ee751e41 100644--- a/templates/order/create_password.html+++ b/templates/order/create_password.html@@ -11,8 +11,8 @@<div class="row thankyoupage"><div class="col-xl-10 offset-xl-1"><img class="thankyoupage__pirate-mail" src="{% static 'img/pirate-mail.png' %}" srcset="{% static 'img/pirate-mail.png' %} 1x, {% static 'img/pirate-mail2x.png' %} 2x">- <h1>{% trans "Thank you for your order!" %}</h1>- <p>{% trans "We’ve sent a confirmation email with details to" %} <span>{{ email }}</span><br>+ <h1>{% trans "Thank you for your" %} <a href="{{ order.get_absolute_url }}">{% trans "order" %}</a>!</h1>+ <p>{% trans "We’ve sent a confirmation email with details to" %} <span>{{ email }}</span>.<br>{% trans "In any problems and questions contact us." %}</p><div class="row thankyoupage__form"><div class="col-md-6">