Skip to content

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

Add basic html and styles for delivery information

weronkaf50eda5ec459
diff --git a/saleor/static/scss/demo/components/_cart.scss b/saleor/static/scss/demo/components/_cart.scss
index 957e7e669e..5ca06d49e0 100644
--- a/saleor/static/scss/demo/components/_cart.scss
+++ b/saleor/static/scss/demo/components/_cart.scss
@@ -47,6 +47,19 @@
margin-bottom: 0;
}
}
+ &__delivery-info {
+ h3 {
+ display: inline-block;
+ border-bottom: 1px solid $gray;
+ padding-bottom: $global-padding
+ }
+ .custom-select {
+ max-width: 100%;
+ display: inline-block;
+ color: $body-color;
+ margin-left: $global-margin / 2;
+ }
+ }
&__empty {
text-align: center;
img {
diff --git a/templates/cart/index.html b/templates/cart/index.html
index 13c3006400..9344c35d5d 100644
--- a/templates/cart/index.html
+++ b/templates/cart/index.html
@@ -100,6 +100,23 @@
<a href="{% url "checkout:login" %}" class="btn primary float-md-right">{% trans "Checkout" %}</a>
</div>
</div>
+ <div class="col-md-5 cart__delivery-info">
+ <h3>{% trans "Delivery options to" %}
+ <select class="custom-select">
+ {% for country in country_choices %}
+ <option>{{ country }}</option>
+ {% endfor %}
+ </select>
+ </h3>
+ <div class="row">
+ <div class="col-md-6">
+ <p>DHL to Poland</p>
+ </div>
+ <div class="col-md-6">
+ <p class="float-xs-right">$10</p>
+ </div>
+ </div>
+ </div>
{% else %}
<div class="cart__empty">
<img src="{% static 'img/pirate_cart.png' %}" srcset="{% static 'img/pirate_cart.png' %} 1x, {% static 'img/pirate_cart2x.png' %} 2x">