Display Stock Levels at Two Locations

Pockets
Explorer
59 3 4

If you are running a multiple location shopify store is there a way to show

"XX in Stock at Location 1"
"XX in Stock at Location 2"

on a product detail page? Currently on a multi location storefront it takes the stock amount from both and displays it as one:

Location 1 = 15
Location 2 = 10
--------------------------
Displays 25 In Stock


Could these be edited somehow to show specific location of stock?
{{ variant.inventory_quantity }}
{{ current_variant.inventory_quantity }}

 

 

 

Thanks again guys

Replies 7 (7)
KarlOffenberger
Shopify Partner
1866 184 843

Hey again ;-)

  • via vanilla Liquid objects - nope
  • via Storefront API and say JS - nope, Storefront API 5uck5 even more in that regard (I mean, it's awesome otherwise, but for inventory it just says yep, got some, nope got none which is meh)
  • via Admin API - yup, but this is where you enter the realm of needing private / public app, app proxy to relay back to Liquid template and most importantly some VERY aggressive caching because with the API bucket throttling, hitting the API for every product page view would result in tears and very offensive language

Just my 2c!

Liked this post? You might also like our fantastic upsell apps Candy Rack, Last Upsell post-purchase and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie
Pockets
Explorer
59 3 4

Thanks again Karl!

Thomas_Lang1
Shopify Partner
173 4 38

Hi!, I got this request multiple times, so created an app for it, check it out if you still need the functionality: https://apps.shopify.com/product-inventory-information

TomTranzistor
Shopify Partner
36 3 8
Koray
Shopify Partner
4 0 5

@Thomas_Lang1 

Are you doing this with Liquid Objects or using API and storing the inventory levels at your end?  I can't find a way to do this using the Objects, so I m just curious.

Thomas_Lang1
Shopify Partner
173 4 38

Hi! We are storing it on our end indeed

 

 

Koray
Shopify Partner
4 0 5

Got it, thanks.  I thought so, but I just wanted to be sure if I was missing something that I was not aware of