Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add edit in dashboard link to product page
weronka9742fb577dca
diff --git a/saleor/static/scss/storefront/components/_product-page.scss b/saleor/static/scss/storefront/components/_product-page.scssindex 75e94a6157..fa6e17b976 100644--- a/saleor/static/scss/storefront/components/_product-page.scss+++ b/saleor/static/scss/storefront/components/_product-page.scss@@ -1,4 +1,8 @@.product {+ a {+ color: $dark-gray;+ text-decoration: underline;+ }&__info {&__name {font-weight: 900;diff --git a/templates/product/details.html b/templates/product/details.htmlindex d7a39e571b..30f2f8d219 100644--- a/templates/product/details.html+++ b/templates/product/details.html@@ -34,6 +34,9 @@<h1 itemprop="name" class="product__info__name">{{ product }}</h1>+ {% if user.is_staff %}+ <p><a href="{% url "dashboard:product-update" pk=product.pk %}">{% trans "Edit in dashboard" %}</a></p>+ {% endif %}{% if availability.available %}<h2 itemprop="offers" class="product__info__price" itemscope itemtype="http://schema.org/Offer"><span>{% price_range availability.price_range %}</span>