diff --git a/make_post_sell/static/css/common.css b/make_post_sell/static/css/common.css
index 92b1133..e4f37c9 100644
--- a/make_post_sell/static/css/common.css
+++ b/make_post_sell/static/css/common.css
@@ -1451,7 +1451,8 @@ textarea.markup-editor-textarea {
}
/* Show the comments anchor link on mobile */
- .related-content-comments-link {
+ .related-content-comments-link,
+ .product-comments-link {
display: block;
text-align: center;
padding: 10px;
@@ -2901,7 +2902,8 @@ textarea {
.related-content-row-prev {
opacity: 0.55;
}
-.related-content-comments-link {
+.related-content-comments-link,
+.product-comments-link {
display: none;
}
diff --git a/make_post_sell/static/js/watch.js b/make_post_sell/static/js/watch.js
index d358ccd..585882e 100644
--- a/make_post_sell/static/js/watch.js
+++ b/make_post_sell/static/js/watch.js
@@ -733,6 +733,12 @@
updateRelated(data.related, data.comments_enabled, data.comment_count);
+ // Update the product-level comments link
+ var pcLink = document.querySelector('.product-comments-link');
+ if (pcLink && data.comments_enabled) {
+ pcLink.textContent = 'Comments (' + (data.comment_count || 0) + ')';
+ }
+
if (data.canonical_url) {
history.pushState({productId: data.product_id}, data.title, data.canonical_url);
}
diff --git a/make_post_sell/templates/product.j2 b/make_post_sell/templates/product.j2
index 455181b..a08e62e 100644
--- a/make_post_sell/templates/product.j2
+++ b/make_post_sell/templates/product.j2
@@ -244,6 +244,10 @@
{% endif %}
+ {% if shop.comments_enabled %}
+
+ {% endif %}
+
{% if price_history | length > 1 %}
Price History ({{ price_history | length }})