{"id":26831,"date":"2021-01-21T16:39:24","date_gmt":"2021-01-21T14:39:24","guid":{"rendered":"https:\/\/belvg.com\/blog\/?p=26831"},"modified":"2025-02-11T13:14:55","modified_gmt":"2025-02-11T11:14:55","slug":"shopify-inventory-management","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html","title":{"rendered":"How to Set up Shopify Inventory Management"},"content":{"rendered":"\n<p>In this article, we are going to discuss inventory management on Shopify and how to <strong>show in-stock quantity<\/strong> for the products with and without variants on any page. Besides that, we will explain how to <strong>hide out of stock variants<\/strong> and set up <strong>Shopify back in stock notifications<\/strong>.<\/p>\n<p><!--more--><\/p>\n<p><strong>Table of Contents:<\/strong><\/p>\n<p><a href=\"#step_1\">How to show quantity in stock<br>\n<\/a><a href=\"#step_2\">How to show quantity in stock for products with variants<br>\n<\/a><a href=\"#step_3\">How to hide out of stock product variants<br>\n<\/a><a href=\"#step_4\">How to set up Shopify back in stock notification<\/a><\/p>\n<p>Product inventory management helps online merchants to monitor the quantity of each product available at their webstore at the moment of time. It is specifically useful for companies selling various types of different products as it helps to avoid offering or selling more items than you actually have in stock. Another advantage is that tracking the inventory, an online store owner is always aware when more products should be ordered or manufactured.<\/p>\n<p>The <strong>Shopify stock counter<\/strong> can be added to any page but the most common place is either a product or a collection page. To enable this feature, you need to edit your liquid theme code. Read on to get all the info you need.<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/contact\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/04\/ecommerce-development.png\" width=\"120\" height=\"120\" alt=\"ecommerce development\" class=\"module_image\" title=\"How to Set up Shopify Inventory Management\"><div class=\"module_content_part\"><h3 class=\"title\">Contact us and get a free audit of your Shopify store!<\/h3><p class=\"module_content_text\">Improve your website with BelVG<\/p><a href=\"https:\/\/belvg.com\/contact\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Request free website health check<\/span><\/a><\/div><\/div><\/div>\n<h2 id=\"step_1\">How to show quantity in stock<\/h2>\n<p>To display information about the number of products available for sale, you need to follow these steps:<\/p>\n<p>1. First, you need to add a translation for the new text content. It can be done in <strong>Locales &gt; en.default.json<\/strong>. There, you should place the translation in the product object as you see on the screenshot below.<\/p>\n<pre class=\"lang:default decode:true\">\"left_in_stock\": \"left in stock\",\r\n      \"in_stock\": \"In stock\",\r\n      \"out_of_stock\": \"Out of stock\",<\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-show-quantity-in-stock-e1611232780773.jpg\" alt=\"shopify show quantity in stock\" width=\"578\" height=\"501\" class=\"lazy aligncenter wp-image-26835 size-full\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>2. After that, you need to open <strong>Sections &gt; product-template.liquid<\/strong> and add the condition of the <strong>{% else %}<\/strong> form in which we place the code that displays whether a product is available in stock or not. You can find an example screenshot below.<\/p>\n<pre class=\"lang:default decode:true \">{% else %}\r\n        \t\t&lt;!-- Code added for Inventory --&gt;  \r\n                  &lt;p class=\"inventory\"&gt;\r\n                    {% assign stock =  product.selected_or_first_available_variant.inventory_quantity %}\r\n                    {% assign stock = stock | plus:0 %}\r\n\r\n                    {%- if stock == 0 -%}\r\n                      {{ 'products.product.out_of_stock' | t }}\r\n                    {%- elsif stock &gt; 10 -%}\r\n                      {{ 'products.product.in_stock' | t }}\r\n                    {%- else -%}\r\n                      {{ stock }} {{ 'products.product.left_in_stock' | t }}\r\n                    {%- endif -%}\r\n                  &lt;\/p&gt;\r\n        \t\t&lt;!-- end inventory &rarr;<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/show-product-quantity-number-left-in-stock-shopify.jpg\" alt=\"show-product-quantity-number-left-in-stock-shopify\" width=\"958\" height=\"638\" class=\"lazy aligncenter size-full wp-image-26838\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>3.&nbsp;Depending on the product&rsquo;s quantity, the user will see different information.<\/p>\n<p>Here is what you get if the <strong>product has run out of stock<\/strong>:<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-display-quantity-in-stock-e1611233460140.jpg\" alt=\"shopify-display-quantity-in-stock\" width=\"693\" height=\"189\" class=\"lazy aligncenter wp-image-26839 size-full\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-out-of-stock.jpg\" alt=\"shopify-out-of-stock\" width=\"707\" height=\"328\" class=\"lazy aligncenter size-full wp-image-26840\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>If the <strong>product quantity is from 1 to 10<\/strong>, the result will look like this:<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-out-of-stock-message.jpg\" alt=\"shopify-out-of-stock-message\" width=\"669\" height=\"157\" class=\"lazy aligncenter size-full wp-image-26842\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-inventory-management-config.jpg\" alt=\"shopify-inventory-management-config\" width=\"496\" height=\"212\" class=\"lazy aligncenter size-full wp-image-26841\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>If the <strong>product quantity is more than 10<\/strong>, on frontend it will show that it is available in stock without specifying the number of items left.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/how-to-code-for-out-of-stock-on-shopify.jpg\" alt=\"how-to-code-for-out-of-stock-on-shopify\" width=\"679\" height=\"152\" class=\"lazy aligncenter size-full wp-image-26843\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-how-to-change-out-of-stock.jpg\" alt=\"shopify how to change out of stock\" width=\"456\" height=\"217\" class=\"lazy aligncenter size-full wp-image-26844\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"step_2\">How to show quantity in stock for products with variants<\/h2>\n<p>Let&rsquo;s say your products are available in different colors, sizes or materials. Then, you need to have a different stock counter for each product variant.<\/p>\n<blockquote><p>In case you have not added product variants yet, you can learn how to do it in&nbsp;<a href=\"https:\/\/belvg.com\/blog\/shopify-variants.html\" target=\"_blank\" rel=\"noopener\">another Shopify article<\/a> on our blog.<\/p><\/blockquote>\n<p>You can expand the code to cover different variants, following these steps:<\/p>\n<p>1. First, you need to proceed to <strong>Theme &gt; theme.liquid<\/strong> and in the <strong>&ldquo;theme&rdquo;<\/strong> object specify the translation to use it in JS as you see here:<\/p>\n<pre class=\"lang:default decode:true \">leftInStock: {{ 'products.product.left_in_stock' | t | json }},\r\ninStock: {{ 'products.product.in_stock' | t | json }},\r\noutOfStock: {{ 'products.product.out_of_stock' | t | json }},<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/how-to-show-product-as-out-of-stock-on-shopify.jpg\" alt=\"how-to-show-product-as-out-of-stock-on-shopify\" width=\"673\" height=\"462\" class=\"lazy aligncenter size-full wp-image-26846\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>2. Then, you need to open <strong>Sections &gt; product-template.liquid<\/strong> and add a condition to show the availability of a product variant:<\/p>\n<pre class=\"lang:default decode:true \">&lt;!-- Code added for variant Inventory --&gt;\r\n          &lt;script&gt;       \r\n            var inv_qty = {};\r\n            {% for var in product.variants %}\r\n              inv_qty[{{- var.id -}}] = {{ var.inventory_quantity | default: 0 }};\r\n            {% endfor %}\r\n          &lt;\/script&gt;            \r\n          {% if current_variant.inventory_management == \"shopify\" %}\r\n            &lt;p class=\"variant-inventory\"&gt;\r\n              {%- if current_variant.inventory_quantity == 0 -%}\r\n                {{ 'products.product.out_of_stock' | t }}\r\n              {%- elsif current_variant.inventory_quantity &gt; 10 -%}\r\n                {{ 'products.product.in_stock' | t }}\r\n              {%- else -%}\r\n                {{ current_variant.inventory_quantity }} {{ 'products.product.left_in_stock' | t }}\r\n              {%- endif -%}\r\n            &lt;\/p&gt; \r\n          {% endif %}\r\n          &lt;!-- end variant inventory --&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-buy-out-of-stock-items.jpg\" alt=\"shopify-buy-out-of-stock-items\" width=\"968\" height=\"497\" class=\"lazy aligncenter size-full wp-image-26847\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>3. The next step is to go to <strong>Assets &gt; theme.js<\/strong> and use the &ldquo;<strong>CTRL + F<\/strong>&rdquo; hotkeys&nbsp;search to find &ldquo;if(variant)&rdquo;. You need to place the following code there as you see on the screenshot below. It is responsible for changing displayed information about the product availability when switching variants:<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">\/* -- code added for Inventory -- *\/\r\n        var variantSelectors = {\r\n           variantInventory: '.variant-inventory'\r\n        };\r\n        var variantInventory = this.container.querySelector(\r\n           variantSelectors.variantInventory\r\n        );\r\n       \tvar inventory_qty = inv_qty[variant.id];\r\n        \r\n        if(inventory_qty == 0){\r\n        \tvariantInventory.innerHTML = theme.strings.outOfStock;\r\n        } else if(inventory_qty &gt; 10) {\r\n        \tvariantInventory.innerHTML = theme.strings.inStock;\r\n        } else {\r\n          variantInventory.innerHTML = inventory_qty + \" \" + theme.strings.leftInStock;\r\n        }\r\n        \r\n        \/* -- End Inventory -- *\/<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-product-inventory.jpg\" alt=\"shopify-product-inventory\" width=\"855\" height=\"460\" class=\"lazy aligncenter size-full wp-image-26848\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>4.&nbsp;To test whether the function works properly, you can set a different quantity for each product variant:<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-inventory-tracker.gif\" alt=\"shopify-inventory-tracker\" width=\"893\" height=\"632\" class=\"lazy aligncenter size-full wp-image-26849\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>After that, you need to check the frontend:<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-inventory-management-setup.gif\" alt=\"shopify-inventory-management-setup\" width=\"893\" height=\"632\" class=\"lazy aligncenter size-full wp-image-26850\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>After all the above steps have been performed, we can check the whole code and how displaying product availability works for products with and without variants.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-manage-inventory.gif\" alt=\"shopify-manage-inventory\" width=\"893\" height=\"632\" class=\"lazy aligncenter size-full wp-image-26851\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<div class=\"module_in_content_container\"><a href=\"https:\/\/belvg.com\/contact\" class=\"link_to_module\" target=\"_blank\" rel=\"noopener\"><\/a><div class=\"module_content\"><img src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2015\/11\/Web-Design.png\" width=\"360\" height=\"360\" alt=\"Web Design\" class=\"module_image\" title=\"How to Set up Shopify Inventory Management\"><div class=\"module_content_part\"><h3 class=\"title\">Need a custom Shopify theme?<\/h3><p class=\"module_content_text\">Our designers and developers are looking forward to your project!<\/p><a href=\"https:\/\/belvg.com\/contact\" class=\"link_2_to_module\" target=\"_blank\" style=\"display:inline-block\" rel=\"noopener\"><span class=\"read-more\">Contact us<\/span><\/a><\/div><\/div><\/div>\n<h2 id=\"step_3\">How to hide out of stock product variants<\/h2>\n<p>Let&rsquo;s discuss what you need to do in case you want to hide the out of stock product variants on pages. First, you need to follow this <a href=\"https:\/\/shopify.dev\/tutorials\/customize-theme-hide-variants-that-are-sold-out\" target=\"_blank\" rel=\"noopener\">link<\/a> and choose a required piece of code depending on the theme you are using. In this article, we&rsquo;ve chosen the Debut theme as an example so we use the following code:<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">document.addEventListener('DOMContentLoaded', () =&gt; {\r\n  const productJson = [...document.querySelectorAll('[id^=ProductJson-')];\r\n  if (productJson.length &gt; 0) {\r\n    productJson.forEach((product) =&gt; { \r\n    const sectionId = product.id.replace(\"ProductJson-\", \"shopify-section-\");\r\n    const productVariants = JSON.parse(product.innerHTML);\r\n    const unavailableVariants = [];\r\n    productVariants.variants.forEach((variant) =&gt; {\r\n      if (variant.available === false) {\r\n        unavailableVariants.push(variant);\r\n      }\r\n    });\r\n    const variantOptions = [...document.querySelectorAll('#' + sectionId + ' .single-option-selector option')]\r\n    const observer = new MutationObserver((mutation) =&gt; {\r\n    unavailableVariants.forEach((item) =&gt; {\r\n      variantOptions.forEach((option) =&gt; {\r\n        if (option.value === item.title) option.remove();\r\n      });\r\n    });\r\n    observer.disconnect();\r\n    });\r\n    if (unavailableVariants.length &gt; 0 &amp;&amp; productVariants.options.length === 1) {\r\n       const addToCartForm = document.querySelector('form[ action=\"\/cart\/add\"]');\r\n       if (window.MutationObserver &amp;&amp; addToCartForm.length) {\r\n       if (typeof observer === 'object' &amp;&amp; typeof observer.disconnect === 'function') {\r\n        observer.disconnect();\r\n       }\r\n       const config = { childList: true, subtree: true };\r\n       observer.observe(addToCartForm, config);\r\n     }\r\n    }\r\n   });\r\n  }\r\n});<\/pre>\n<p>The correct piece of code should pasted at the end of<strong> theme.js<\/strong> as you see on the following screenshot:<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/inventory-management-shopify.jpg\" alt=\"inventory-management-shopify\" width=\"1005\" height=\"726\" class=\"lazy aligncenter size-full wp-image-26852\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>After you have added the code, you can test whether hiding sold-out product variants works correctly.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-track-inventory.gif\" alt=\"shopify-track-inventory\" width=\"720\" height=\"548\" class=\"lazy aligncenter size-full wp-image-26853\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"step_4\">How to set up Shopify back in stock notification<\/h2>\n<p>If you want to give your customers an opportunity to wait for the desired product and get notified once it is available, you need to create a form that will notify you as a store owner that a certain customer is interested in a certain product.<\/p>\n<p>1. For convenience, let&rsquo;s create a form snippet. You need to go to <strong>Sections &gt; product-template.liquid<\/strong> and insert the following line after the form:<\/p>\n<pre class=\"lang:default decode:true \">{% include 'back-in-stock-notification' %}<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-inventory-sync.jpg\" alt=\"shopify-inventory-sync\" width=\"780\" height=\"550\" class=\"lazy aligncenter size-full wp-image-26854\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>2.Then, you should open the <strong>Snippets<\/strong> folder and add a new <strong>back-in-stock-notification.liquid<\/strong> snippet. You need to copy and paste there a piece of code that you can see below. There are styles that are responsible for hiding and showing the form.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true\">&lt;style&gt;\r\n  .sold-out {\r\n  \tdisplay: none;\r\n  }\r\n  .sold-out.product-sold-out {\r\n  \tdisplay: block;\r\n  }\r\n  .sold-out.variant-inventory-available {\r\n  \tdisplay: none;\r\n  }\r\n  .sold-out.product-form--variant-sold-out {\r\n  \tdisplay: block;\r\n  }\r\n  .btn-sold-out {\r\n  \tvertical-align: inherit;\r\n  }\r\n&lt;\/style&gt;\r\n&lt;div id=\"sold-out\" class=\"{% if available == false %} product-sold-out {% endif %} sold-out\"&gt;\r\n  {% form 'contact' %}\r\n    {% if form.posted_successfully? %}\r\n    &lt;p class=\"accent-text\"&gt;{{ 'products.product.sold_out_thanks' | t }}&lt;\/p&gt;\r\n    {% else %}\r\n    &lt;p&gt;{{ 'products.product.sold_out_notify_me' | t: product_name: product.title }}&lt;\/p&gt;\r\n    {% endif %}\r\n    {% if form.errors %}\r\n    &lt;div class=\"error feedback accent-text\"&gt;\r\n      &lt;p&gt;{{ 'products.product.sold_out_valid_email' | t }}&lt;\/p&gt;\r\n    &lt;\/div&gt;\r\n    {% endif %}\r\n    {% unless form.posted_successfully? %}\r\n    &lt;div id=\"notify-me-wrapper\" class=\"clearfix\"&gt;\r\n      {% if customer %}\r\n      &lt;input type=\"hidden\" name=\"contact[email]\" value=\"{{ customer.email }}\" \/&gt;\r\n      {% else %}\r\n      &lt;input required=\"required\" \r\n             type=\"email\" \r\n             name=\"contact[email]\" \r\n             placeholder=\"your@email.com\" \r\n             class=\"styled-input{% if form.errors contains 'email' %} error{% endif %}\" value=\"{{ contact.fields.email }}\" \/&gt;\r\n      {% endif %}\r\n      &lt;input type=\"hidden\" name=\"contact[body]\" value=\"Please notify me when {{ product.title | escape }} becomes available.\" \/&gt;\r\n      &lt;input class=\"btn btn-sold-out\" type=\"submit\" value=\"Send\" \/&gt;\r\n    &lt;\/div&gt;\r\n  {% endunless %}\r\n {% endform %}\r\n&lt;\/div&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-inventory-integration.jpg\" alt=\"shopify-inventory-integration\" width=\"1161\" height=\"756\" class=\"lazy aligncenter size-full wp-image-26855\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>3. Then you need to add the text content that will appear on the page when a customer interacts with the form. In order to do it, you should open <strong>Locales &gt; en.default.json<\/strong> and add the translation in the product object:<\/p>\n<pre class=\"lang:default decode:true \">\"sold_out_thanks\": \"Thanks! We will notify you when this product becomes available!\",\r\n\"sold_out_notify_me\": \"Notify me by email when {{ product_name }} becomes available.\",\r\n\"sold_out_valid_email\": \"Please provide a valid email address.\",<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/best-shopify-inventory-management.jpg\" alt=\"best-shopify-inventory-management\" width=\"865\" height=\"447\" class=\"lazy aligncenter size-full wp-image-26856\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>4. After that, you need to proceed to <strong>Assets &gt; theme.js<\/strong> and create a new&nbsp; &ldquo;<strong>_backInStockNotification<\/strong>&rdquo; method above the &ldquo;<strong>_updateAddToCart<\/strong>&rdquo; method:<\/p>\n<pre class=\"lang:default decode:true \">\/* -- code added for back in stock notification -- *\/\r\n    _backInStockNotification: function(elem, isBackInStock = false) {\r\n  \t  var soldOut = this.container.querySelector(\r\n        elem\r\n      );\r\n    \r\n      if(isBackInStock){\r\n  \t\tsoldOut.classList.add(this.classes.variantSoldOut);\r\n        soldOut.classList.remove(\"variant-inventory-available\");\r\n      } else {\r\n        soldOut.classList.remove(this.classes.variantSoldOut);\r\n        soldOut.classList.add(\"variant-inventory-available\");\r\n      }\r\n  \t},\r\n    \/* -- End -- *\/<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-inventory-reports.jpg\" alt=\"shopify-inventory-reports\" width=\"793\" height=\"451\" class=\"lazy aligncenter size-full wp-image-26857\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>5. Then, you set up calling the new method when displaying product variants:<\/p>\n<pre class=\"lang:default decode:true \">if(inventory_qty == 0){\r\n        \tvariantInventory.innerHTML = theme.strings.outOfStock;\r\n            this._backInStockNotification(\"#sold-out\", true);\r\n        } else if(inventory_qty &gt; 10) {\r\n        \tvariantInventory.innerHTML = theme.strings.inStock;\r\n            this._backInStockNotification(\"#sold-out\");\r\n        } else {\r\n          variantInventory.innerHTML = inventory_qty + \" \" + theme.strings.leftInStock;\r\n          this._backInStockNotification(\"#sold-out\");\r\n        }<\/pre>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-update-inventory.jpg\" alt=\"shopify-update-inventory\" width=\"811\" height=\"532\" class=\"lazy aligncenter size-full wp-image-26858\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>6.&nbsp;Time to check how the notification form is displayed on frontend.<\/p>\n<p>Here is what you get for a product without variants:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopif-inventory-control-e1611238780476.jpg\" alt=\"shopify-inventory-control\" width=\"679\" height=\"613\" class=\"lazy aligncenter wp-image-26859 size-full\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>The result for a product that has variants should look like this:<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-inventory-viewer.gif\" alt=\"shopify-inventory-viewer\" width=\"783\" height=\"662\" class=\"lazy aligncenter size-full wp-image-26860\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>And finally an email with the correct content should be sent to the email you put in the form:<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/shopify-show-inventory.jpg\" alt=\"shopify-show-inventory\" width=\"622\" height=\"283\" class=\"lazy aligncenter size-full wp-image-26861\" title=\"How to Set up Shopify Inventory Management\"><\/p>\n<p>&nbsp;<\/p>\n<p>Another way to set up customer notifications is by using one of the <a href=\"https:\/\/apps.shopify.com\/\" target=\"_blank\" rel=\"noopener\">Shopify apps<\/a>. For example, you could use this app: <a href=\"https:\/\/apps.shopify.com\/customer-back-in-stock-alert-user-notification-app\" target=\"_blank\" rel=\"noopener\">Back In Stock &#8209; Restock Alerts<\/a>. The advantage of using the app over the form that we described above is that it automatically notifies customers when a product is back in stock.<\/p>\n<p>Want to learn more about Shopify development? Check other articles of this author:<\/p>\n<ul>\n<li><a href=\"https:\/\/belvg.com\/blog\/shopify-size-chart.html\">How to Add Shopify Size Chart<\/a><\/li>\n<li><a href=\"https:\/\/belvg.com\/blog\/edit-shopify-footer.html\">How to Remove &ldquo;Powered by Shopify&rdquo; &amp; Edit Shopify Footer<\/a><\/li>\n<li><a href=\"https:\/\/belvg.com\/blog\/shopify-product-customizer.html\">How to Set Up Shopify Product Customizer<\/a><\/li>\n<\/ul>\n<p><strong>Good sales to you!<\/strong><\/p>\n\n","protected":false},"excerpt":{"rendered":"In this article, we are going to discuss inventory management on Shopify and how to &#8230;","protected":false},"author":72,"featured_media":26832,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[474,602],"tags":[],"class_list":["post-26831","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-ecommerce","category-shopify","post_format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Learn to configure Shopify inventory management, show in-stock quantity on any page, hide out of stock variants and set up Shopify back in stock notifications.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ivan Orlovsky\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/shopify-inventory-management.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#article\",\"name\":\"How to Set up Shopify Inventory Management | BelVG Blog\",\"headline\":\"How to Set up Shopify Inventory Management\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/ivan-orlovsky#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/how-to-set-up-shopify-inventory-management.jpg\",\"width\":1108,\"height\":590,\"caption\":\"how-to-set-up-shopify-inventory-management\"},\"datePublished\":\"2021-01-21T16:39:24+02:00\",\"dateModified\":\"2025-02-11T13:14:55+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#webpage\"},\"articleSection\":\"ECOMMERCE, Shopify, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/ecommerce#listItem\",\"name\":\"ECOMMERCE\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/ecommerce#listItem\",\"position\":2,\"name\":\"ECOMMERCE\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/ecommerce\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#listItem\",\"name\":\"How to Set up Shopify Inventory Management\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#listItem\",\"position\":3,\"name\":\"How to Set up Shopify Inventory Management\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/ecommerce#listItem\",\"name\":\"ECOMMERCE\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/ivan-orlovsky#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/ivan-orlovsky\",\"name\":\"Ivan Orlovsky\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1b3037bcae6f612a77ceb345fe5dcb9a0f1be740692a7a9e4be8db354247919c?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Ivan Orlovsky\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html\",\"name\":\"How to Set up Shopify Inventory Management | BelVG Blog\",\"description\":\"Learn to configure Shopify inventory management, show in-stock quantity on any page, hide out of stock variants and set up Shopify back in stock notifications.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/ivan-orlovsky#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/ivan-orlovsky#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/how-to-set-up-shopify-inventory-management.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html\\\/#mainImage\",\"width\":1108,\"height\":590,\"caption\":\"how-to-set-up-shopify-inventory-management\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/shopify-inventory-management.html#mainImage\"},\"datePublished\":\"2021-01-21T16:39:24+02:00\",\"dateModified\":\"2025-02-11T13:14:55+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to Set up Shopify Inventory Management | BelVG Blog","description":"Learn to configure Shopify inventory management, show in-stock quantity on any page, hide out of stock variants and set up Shopify back in stock notifications.","canonical_url":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#article","name":"How to Set up Shopify Inventory Management | BelVG Blog","headline":"How to Set up Shopify Inventory Management","author":{"@id":"https:\/\/belvg.com\/blog\/author\/ivan-orlovsky#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/how-to-set-up-shopify-inventory-management.jpg","width":1108,"height":590,"caption":"how-to-set-up-shopify-inventory-management"},"datePublished":"2021-01-21T16:39:24+02:00","dateModified":"2025-02-11T13:14:55+02:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#webpage"},"articleSection":"ECOMMERCE, Shopify, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/ecommerce#listItem","name":"ECOMMERCE"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/ecommerce#listItem","position":2,"name":"ECOMMERCE","item":"https:\/\/belvg.com\/blog\/category\/ecommerce","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#listItem","name":"How to Set up Shopify Inventory Management"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#listItem","position":3,"name":"How to Set up Shopify Inventory Management","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/ecommerce#listItem","name":"ECOMMERCE"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/ivan-orlovsky#author","url":"https:\/\/belvg.com\/blog\/author\/ivan-orlovsky","name":"Ivan Orlovsky","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1b3037bcae6f612a77ceb345fe5dcb9a0f1be740692a7a9e4be8db354247919c?s=96&d=mm&r=g","width":96,"height":96,"caption":"Ivan Orlovsky"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#webpage","url":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html","name":"How to Set up Shopify Inventory Management | BelVG Blog","description":"Learn to configure Shopify inventory management, show in-stock quantity on any page, hide out of stock variants and set up Shopify back in stock notifications.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/ivan-orlovsky#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/ivan-orlovsky#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2021\/01\/how-to-set-up-shopify-inventory-management.jpg","@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html\/#mainImage","width":1108,"height":590,"caption":"how-to-set-up-shopify-inventory-management"},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html#mainImage"},"datePublished":"2021-01-21T16:39:24+02:00","dateModified":"2025-02-11T13:14:55+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"26831","title":"How to Set up Shopify Inventory Management | #site_title","description":"Learn to configure Shopify inventory management, show in-stock quantity on any page, hide out of stock variants and set up Shopify back in stock notifications.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:36:25","updated":"2026-11-03 18:36:25"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/ecommerce\" title=\"ECOMMERCE\">ECOMMERCE<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Set up Shopify Inventory Management\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"ECOMMERCE","link":"https:\/\/belvg.com\/blog\/category\/ecommerce"},{"label":"How to Set up Shopify Inventory Management","link":"https:\/\/belvg.com\/blog\/shopify-inventory-management.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/26831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/72"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=26831"}],"version-history":[{"count":0,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/26831\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/26832"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=26831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=26831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=26831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}