We have one location offering store pickup. We have enabled store transfers from our other location when inventory isn’t available at the pickup location. We have a different (longer) processing time set for when a store transfer is required.
We want to show the pick up time on the storefront, but pick_up_time in store_availability seems to always be the processing time for when a store transfer is required, even it isn’t. At checkout the pick up time quoted is correct.
Is there any way to work around this? I had assumed that pick_up_time would return the correct processing time depending on the location of the inventory given that Shopify knows whether a transfer is required or not.
Thanks in advance.
This is actually shopify limitation, so it shows a fall back value
you can try using this instead
{% assign pickup_location_id = ‘YOUR_LOCATION_ID’ %}
{% assign is_available_at_pickup = false %}
{% for store in product.selected_or_first_available_variant.store_availabilities %}
{% if store.location.id == pickup_location_id and store.available %}
{% assign is_available_at_pickup = true %}
{% endif %}
{% endfor %}
{% if is_available_at_pickup %}
Ready for pickup in 2 hours
{% else %}
Ready for pickup in 3–5 days (transfer required)
{% endif %}
Thank you so much @mastroke, this is perfect!
You are more welcome, it’s our pleasure to solved the community member problem.
Hi @mastroke, unfortunately when we’ve tested this it seems like store.available returns true even when there isn’t inventory at the store. Presumably this is by design when store transfers are enabled, as the product can be made available, although it conflicts with Shopify’s documentation which states “Returns true if the variant has available inventory at the location. Returns false if not.” I’m not sure where to go next — we can’t seem to find a way to pull a pickup time based on the location of the stock. 
I found this issue too, and have sent a feedback to the merchant success specialist. Now I am waiting for their update on this.
Thanks @clydetey, keep us posted!
I understand why available returns true when store transfers are enabled. But there’s no solution for showing pick up times on the front end currently, as least when store transfers are enabled.