Display Stock Levels at Two Locations

Pockets
Explorer
59 3 5

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 10 (10)
KarlOffenberger
Shopify Partner
1873 184 862

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 5

Thanks again Karl!

Thomas_Lang1
Shopify Partner
197 4 40

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

Software Developer | Owner of Tom IT - We build shopify apps
Marketplace Order Connector | Amazon bol.com & Walmart DSV
Product Inventory Information | Geolocation, Store Pickup & More
Koray
Shopify Partner
6 0 6

@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
197 4 40

Hi! We are storing it on our end indeed

 

 

Software Developer | Owner of Tom IT - We build shopify apps
Marketplace Order Connector | Amazon bol.com & Walmart DSV
Product Inventory Information | Geolocation, Store Pickup & More
Koray
Shopify Partner
6 0 6

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

Paola_MoonMoon
Shopify Partner
1 0 1

Hi Pockets, 

 

I'm in the same situation, and I didn't find the answer. 

Did you use the Admin API, and then display specific location of stock ?

 

Thanks for your answer 🙂

 

Paola

AngieGrieco
New Member
2 0 0

Hello I'm trying to do the same. If someone found how please a tip?!! Thanks

AngieGrieco
New Member
2 0 0

Hi Karl! Could you give us some idea about a shopify application proxy? An example or docu? Thanks! Angeles