Total inventory quantity of variant hosted on multi locations

https://prnt.sc/un_hh0nrA7Dz

As you can see on the screenshot, product variants on my store is hosted on multiple locations.

However, when I try to get variant quantity by using {{ variant.inventory_quantity }}, it shows only quantity of first location instead of total.

How can I get the total inventory_quantity instead of only first location?

Hi @haley0329

As I know the default Shopify supports only showing the quantity at 1 location, so I suggest you try the following ways:

  1. Solution 1: Install a 3rd-party app that can track each variant on each location.

  2. Solution 2: Call rest API on the theme to get the location level, then process that data. You can need a developer to make it clearer. Refer to this guide https://shopify.dev/api/admin-rest/2022-10/resources/location#get-locations -location-id-inventory-levels.

I hope that it’s useful to you.