This topic and discussion board has been closed.
To stay updated on announcements related to the API please review this post about the new Developer changelog.
As of Dec 5th 2017, inventory_quantity and inventory_policy fields accessed through a json Liquid filter are deprecated. The json filter will not output those fields for shops created after Dec 5th. If you want to consume inventory information about a product, you can leverage variant.inventory_quantity and variant.inventory_policy. We recommend using that information behind a setting that the merchant has to turn on. This is a part of our efforts which kickstarted last year to eliminate bots and crawlers from knowing inventory levels of products from stores that they haven't explicitly been granted access to. Themes in the Shopify Theme Store will be updated before Dec 5th, 2017.
If you have any questions or concerns please comment in the thread below.
Kevin
Schaeken | Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
What is recommended as the alternative? Even if just to display in stock/out of stock/backorder?
-Ed
Hi Schaeken,
What is alternative to read the field variant.inventory_quantity?
Hi Schaeken,
Yeah what is the alternative ? I even tried to just show the stock count as shown in https://help.shopify.com/en/themes/liquid/objects/variant#variant-inventory_quantity but no luck. I'm a noob !! Help me please !!! T.T
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023