Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Show copy if no addresses in user profile
weronka57e64bff6ca6
diff --git a/saleor/static/scss/demo/components/_userprofile.scss b/saleor/static/scss/demo/components/_userprofile.scssindex caa9ccf63f..8d8c81edc4 100644--- a/saleor/static/scss/demo/components/_userprofile.scss+++ b/saleor/static/scss/demo/components/_userprofile.scss@@ -29,6 +29,9 @@border-bottom: 0;}}+ &__address-empty {+ margin: $global-margin 0 $global-margin * 2;+ }&__address-row {padding: $global-padding 0;border-bottom: 1px solid $light-gray;diff --git a/templates/userprofile/details.html b/templates/userprofile/details.htmlindex 8d397b1627..6fe4a20a75 100644--- a/templates/userprofile/details.html+++ b/templates/userprofile/details.html@@ -70,6 +70,11 @@</div></div>{% endfor %}+ {% if addresses|length == 0 %}+ <div class="userprofile__address-empty">+ <p>{% trans "Add shipping and billing addresses for better shopping experience." %}</p>+ </div>+ {% endif %}<a href="{% url 'profile:address-create' %}" class="btn primary ">{% trans "Add new address" %}</a></div><div class="tab-pane" id="orders" role="tabpanel">