A space to discuss online store customization, theme development, and Liquid templating.
Hello,
I saw this question being asked several times already, but with Shopify 2.0 up and running, I will repeat it, maybe some new solutions have come.
Is it possible (without 3rd party app) to display all inventory locations a product has, with stock levels? Taking this information from back end:
And show it on the product page front-end, something like this:
The main issue is, that we don't hold a lot of stock in our own warehouses, but we offer 1 - 2 day shipping if we have stock. If we don't have stock in our warehouse - we ship products from a foreign warehouse, and the shipping time raise to 10 - 14 days, and we have to notify customers regards this.
Currently, I am using meta-fields in products, but as you can guess - it's not dynamic, and I have to change it regularly.
Thank you for any advice!
@SkinClinicLT not sure if you have solved this. This may not be possible as of yet b/c Inventory count can only be queried via Shopify's admin api.
Implementing Admin api on your online storefront is not good because it exposes admin token to online users. Some user can take advantage of this and query a whole bunch of things for your Shopify store.
Knowing you don't want to install 3rd party apps, you will need to implement a solution of your own. One way, we have been doing this is syncing all our variant inventory into a database in a frequency interval. Then from our online storefront querying that database through REST API to display the inventory count of the selected variant. You do need a cloud service to make this possible.
Here's a tutorial I wrote that answers this problem if you do have that cloud service.