Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add order info link to thank you page

weronka7a71e88cb628
diff --git a/saleor/order/views.py b/saleor/order/views.py
index 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.png
index a8ab2135bc..b083a5e8dd 100644
Binary files a/saleor/static/img/pirate-checkout.png and b/saleor/static/img/pirate-checkout.png differ
diff --git a/saleor/static/img/pirate-checkout2x.png b/saleor/static/img/pirate-checkout2x.png
index 3fb6a0d488..a8ab2135bc 100644
Binary files a/saleor/static/img/pirate-checkout2x.png and b/saleor/static/img/pirate-checkout2x.png differ
diff --git a/saleor/static/scss/storefront/components/_checkout.scss b/saleor/static/scss/storefront/components/_checkout.scss
index 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.html
index 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">