If you want to show the inventory of products on the cart page you need to enable that feature in the advanced options settings.
You also will need to add some code in your theme.
You will need to find the for which loops over the items in the cart-template.

add the following code in a div like it is done in the image below :

data-tomit-product-id="{{item.product_id}}" data-tomit-variant-id="{{item.variant_id}}"



If the inventory isn't shown right you can try to place the code in a different element. you can also place the code in a div like and place that element in your file.
<div data-tomit-product-id="{{item.product_id}}"
data-tomit-variant-id="{{item.variant_id}}"></div>


We recommend turning on the cache feature because with the inventory shown on your cart page we reach the api limit of shopify faster than usual.
If you need help setting up this feature in your theme you can ask for support through our chat.
Was this article helpful?
Cancel
Thank you!