Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add link from order details to product page
weronkade15216cb9fa
diff --git a/saleor/static/scss/demo/components/_order-details.scss b/saleor/static/scss/demo/components/_order-details.scssindex 2e51f8442b..0d964b675b 100644--- a/saleor/static/scss/demo/components/_order-details.scss+++ b/saleor/static/scss/demo/components/_order-details.scss@@ -15,11 +15,17 @@span {color: $gray;}- img {- margin-right: $global-margin;- }- p {- margin: $global-margin / 2 0;+ a {+ img {+ margin-right: $global-margin;+ }+ p {+ margin: $global-margin / 2 0;+ color: $body-color;+ }+ &:hover, &:focus {+ text-decoration: none;+ }}.col-xs-3 {padding: 0;diff --git a/templates/order/details.html b/templates/order/details.htmlindex 0782c0cd9d..8b40ea574f 100644--- a/templates/order/details.html+++ b/templates/order/details.html@@ -63,9 +63,11 @@{% for item_line in item %}<div class="row"><div class="col-md-6 col-xs-9">- <img src="{{ item_line.product.images.first.image.crop.60x60 }}" class="float-xs-left">- <p>{{ item_line.product }}<br>- <span>{{ item_line.product_name }}</span></p>+ <a href="{{ item_line.product.get_absolute_url }}">+ <img src="{{ item_line.product.images.first.image.crop.60x60 }}" class="float-xs-left">+ <p>{{ item_line.product }}<br>+ <span>{{ item_line.product_name }}</span></p>+ </a></div><div class="col-md-6 col-xs-3"><div class="col-md-6 col-xs-12">