Install: Shopify
First, make sure Shopify's default comment system is turned off at Online Store β Blog Posts β Manage Blogs β Your Blog β Comments (set to Disabled).

Setting up Hyvor Talk
Copy your Hyvor Talk website ID from Console β Settings β Website β Website ID. You will need it in a later step.

Setting up SSO
By default, users need a HYVOR account to comment. However, you can easily set up Single Sign-On to connect Shopify accounts with Hyvor Talk, allowing your users to comment easily.

- Go to Settings β Single Sign-On and turn on SSO in your Hyvor Talk Console. Make sure you select the type Stateless.
- Generate a private key and copy it. You will need it in the next step.
- Set the login URL. This will be
YOUR-SHOP-URL/account/login.
Embedding Hyvor Talk
Move to your Shopify console.
- Go to Online Store β Edit theme.

- Then, add a Custom Liquid section to the page/place where you want to add comments.

- Paste the following code into the Custom Liquid section, replacing
YOUR_WEBSITE_IDwith your Hyvor Talk website ID andYOUR_PRIVATE_KEYwith the private key you generated in the previous step.
{% assign HT_WEBSITE_ID = YOUR_WEBSITE_ID %}
{% assign PRIVATE_KEY = "YOUR_PRIVATE_KEY" %}
{% assign user_data = "" %}
{% if customer %}
{% capture user_data %}{
"id": "{{ customer.id | escape }}",
"name": "{{ customer.name | escape }}",
"email": "{{ customer.email | escape }}",
"timestamp": "{{ 'now' | date: '%s' }}"
}{% endcapture %}
{% assign user_data = user_data | base64_encode %}
{% endif %}
{% assign hash = user_data | hmac_sha256: PRIVATE_KEY %}
{% if template contains "product" %}
{% assign hyvor_page_id = product.id %}
{% elsif template contains "article" %}
{% assign hyvor_page_id = article.id %}
{% else %}
{% assign hyvor_page_id = '' %}
{% endif %}
<hyvor-talk-comments
website-id="{{ HT_WEBSITE_ID }}"
page-id="{{ hyvor_page_id }}"
sso-user="{{ user_data }}"
sso-hash="{{ hash }}"
></hyvor-talk-comments>
<script async src="https://talk.hyvor.com/embed/embed.js" type="module"></script>
That's all! You should see Hyvor Talk comments on your online store. Log in to your shop as a customer to test Single Sign-on.
Old themes
If you have an old Shopify theme, you will have to edit your theme files instead of adding a section as in the previous step.
- Open the liquid file you want to add comments to. For example,
product.liquid - Then, paste the same code as above and replace the website ID and the private key. The only difference is that you will be adding the code directly to liquid files instead of using new sections.