I’d like a section under every product that says “Questions or comments? Post them here!” when people can leave a question or comment without having to log in to anything. Just “Name” and “Email” (optional) and “Question or comment.” I DO NOT MEAN A PRODUCT COMMENT SECTION I MEAN SOMETHING SIMILAR TO YOUTUBE COMMENT SECTION!
Third-party app or service would be the easiest to implement.
Some review apps have a Q-n-A functionality, or embed D i s q u s widget on your product pages.
Shopify has built-in commenting functionality, but only for blog articles and it’s not very flexible.
It’s possible to kinda add it to product pages, but will require some coding depending on your theme.
I would be happy to code it but I cant make it work, I have found the code but the comment section only appears in blog pages and not in other pages is the code linked to the blogs somehow?
This is the code that I found:
{%- if blog.comments_enabled? -%}
{{ 'blogs.article.comments' | t: count: article.comments_count }}
{% paginate article.comments by 5 %}{%- for comment in article.comments -%}
{{ comment.content }} {{ comment.author }} {{- comment.created_at | time_tag: format: 'date' -}} {%- endfor -%} {% render 'pagination', paginate: paginate, anchor: anchorId %}{{ 'blogs.article.comment_form_title' | t }}
{%- if form.errors -%}{{- 'icon-error.svg' | inline_asset_content -}} {{ 'templates.contact.form.error_heading' | t }}
-
{%- for field in form.errors -%}
- {%- if form.errors.translated_fields[field] contains 'author' -%} {{ 'blogs.article.name' | t }} {%- elsif form.errors.translated_fields[field] contains 'body' -%} {{ 'blogs.article.message' | t }} {%- else -%} {{ form.errors.translated_fields[field] }} {%- endif -%} {{ form.errors.messages[field] }} {%- endfor -%}
{{- 'icon-success.svg' | inline_asset_content -}} {{ post_message | t }}
{{ 'blogs.article.moderated' | t }}
{%- endif -%} {% endform %}Yes, for blog articles only, not products.
Therefore the idea is to create a separate Blog for this and for each newly created product create an article in this blog. (I believe this can be automated with Flow and API use, or some other app).
Then add article reference to the newly created product metafield and then display comments part of the article section for this article on the product page.
Possible, but cumbersome, of course.