Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm trying to add in store pickup for a client, they currently have two stores.
I have a product with stock at both locations
Then added some debug code to the theme I'm working on based on the Liquid docs and stuff in the Dawn theme repo.
{%- assign current_variant = product.selected_or_first_available_variant -%}
{{ current_variant.store_availabilities.size | json }}
{% for store_avail in current_variant.store_availabilities %}
{{ store_avail.available | json }}
{{ store_avail.location.name | json }}
{{ store_avail.pick_up_enabled | json }}
{{ store_avail.pick_up_time | json }}
{% endfor %}
{%- assign pick_up_availabilities = current_variant.store_availabilities | where: 'pick_up_enabled', true -%}
{{ pick_up_availabilities.size | json }}
However only one of the stores gets output.
Anyone else have this issue, or is there something I've missed?
Confirm your addresses are verified.
Go to Admin > Settings > Locations.
Edit the location that's not coming up in your store_availabilities data.
Make sure you're not getting the following message when you edit an address.
Use the address autocomplete field so Shopify can help you add your address in the correct format, Save your location.
After this you should see your location in the store_availabilities data.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025