All things Shopify and commerce
Let's say I am selling a shirts.
When the customer visits the webshop, they can see the shirt is in stock. As far as I can see, there is no way in liquid to determine if the item is only available in store. This is pretty annoying, because a customer will end up adding the item to their cart even without knowing they can only pick it up in NY, regardless of where they live.
When the customer goes to checkout, even though the item is only available in store, the checkout still shows the option to have a delivery (see screenshot 1).
If the customer does choose delivery (up until this point they could not have been informed the item is only available in store), and enter their shipping address, they will get the following error (see screenshot 2), which roughly translates to "Delivery is not available. Your order cannot be shipped to the selected address. Review the address to make sure it is correct and try again or choose a different address."
As I see, the following is need for this to be usable:
1. Liquid should be able to identify if an item is only stock in the warehouse (default warehouse, metafield, etc.)
2. The checkout should not show a pick up option if an item can only be shipped from a warehouse (arguably, this might be possible with checkout extension)
You can use Liquid to check the stock levels at each location and display a message if an item is only available in the NY Showroom. For the checkout process, consider using a custom script or checkout extension to hide the delivery option for items that are only available in-store. This will help prevent customer confusion and improve the overall shopping experience!
How? I don't think you can. There is no way to check if item has availability in the central warehouse (without enabling local pick up in the central warehouse, which in most cases should not offer pick up).
I.e. store_availabilities will not return the warehouse if it does not have local pick up enabled (https://shopify.dev/docs/api/liquid/objects/variant#variant-store_availabilities)
You're right; if local pickup isn't enabled for the central warehouse, the Liquid object won't return its availability. As a workaround, you could set up a metafield for products that indicates their availability status. Then, use this metafield in your Liquid code to display a message for items that are only in the NY Showroom. This way, you can inform customers before they reach the checkout.
Yes, but the data is already in Shopify, so I'd rather complain about the native solution being less than ideal, so that hopefully it get's improved 🙂
As a workaround, then I'd rather enable pick up in the warehouse and add a checkbox metafield on the Location whether it should be shown as an option in the front-end and checkout, since I'd likely have to customize both anyway.
Make sense)
It’s great that you’re thinking creatively! Enabling pickup in the warehouse and using a checkbox metafield to control visibility is a smart workaround.
Did you disabling the ship from store option in settings (aka fulfill online order on the NY Showroom) ?
Youness Id bakkasse | Autrement
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
This makes it even more strange.
- If I disable ship from store on the NY Showroom, PDP still shows item as available (only stocked in NY Showroom), but store availability is no longer returned (so why is the item shown as available? Remember, this is default dawn theme).
- Trying to add to cart shows an error - item is not available.
So, now I can't get to the checkout to place a "pick up in store" order.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024