All things Shopify and commerce
Hello!
I am currently working on a store with multiple locations and all have different stocks. So like location 1 has 3 and location 2 has 5 stocks, I need to determine the stocks for each instead of getting the total variant quantity {{ variant.inventory_quantity }}.
I would like to show the product variant quantity on the product page like this:
Location 1: 3 in stock
Location 2: 5 in stock
Location 3: 63 in stock
Location 4: 5 in stock
and so on...
May I know how to achieve that and is that possible?
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi @anomyous,
Thanks for being part of the Shopify community! What you're saying is possible, but you need to add a custom code that will display the quantity of the product based on the Inventory Location rather than on the Total Inventory Available. That's something any tech-savvy Shopify Partner can help with, me included, so do not hesitate to reach out if you need this kind of feature.
May I know what you're looking to achieve by doing this though? Maybe I can offer a better option. Thanks!
This is an accepted solution.
Actually you don't necessarily need custom code for this. This is a workflow combined with a code snippet you can use to do this:
Show Inventory Levels By Location On Your Product Page
Looks like this:
This is an accepted solution.
Hi @anomyous,
Thanks for being part of the Shopify community! What you're saying is possible, but you need to add a custom code that will display the quantity of the product based on the Inventory Location rather than on the Total Inventory Available. That's something any tech-savvy Shopify Partner can help with, me included, so do not hesitate to reach out if you need this kind of feature.
May I know what you're looking to achieve by doing this though? Maybe I can offer a better option. Thanks!
I am trying to fetch multiple location inventory quantity not the total inventory .
i want to display below content in my product page
for example:- library Hamilton : Available 5 books in stock
library Toronto : Available 4 books in stock
where library Hamilton and library Toronto are location name which is added in shopify admin with there available inventory quantity
Yep! That would be possible, but a Shopify Partner needs to check your theme and build the custom code needed for the feature. If you'd like help from my side, just DM me.
Hello! I am currently trying to add a custom theme to our site that will show the warehouse and in-store quantity. Can you show me how to do this?
It is possible to do like ikea? Showing in what store do I have stock
Hi, @BernardoPaixao!
Yes, that would be possible as long as you set up multiple warehouses in Shopify. Once you do that, extract the information and use custom code to display pick up availability based on warehouse.
I would like to have a Google Meet first to make sure we're on the same page regarding the complete functionalities and features you're looking for. You can DM me and set up a call for later.
Thanks!
This is an accepted solution.
Actually you don't necessarily need custom code for this. This is a workflow combined with a code snippet you can use to do this:
Show Inventory Levels By Location On Your Product Page
Looks like this:
Did someone find a solution to this because I try to do the same? I only can get the sum of all stock levels on the product page.
Hi @vanderschueren, as explained before, you need to apply a custom code that is different based on your theme. I recommend reaching out to a Shopify Partner for support.
Thanks for the answer! However, I know how to code and have located the code for the product stock level. The only thing I am missing is how I can fetch the seperate stock levels in Liquid or Javascript.
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024