Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi Team,
We have extended an online store which has the feature of customers selecting a store for product availability. We store this value as a cart-attribute (alongside local browser storage).
We're investigating how if a customer selects 'Pickup' at the checkout we could have the pickup locations ordered with the one they have selected via cart-attribute ordered as the first (rather than the default location configured at the admin portal).
The delivery customization function api appears to allow for something similar for the 'Ship' option.
About the Delivery Customization Function API (shopify.dev)
I can see we can access the cart attributes, the ability to 'move' objects, and 'delivery groups' / 'options'. What I'm not seeing explicitly mentioned is if this API allows for hooking into the equivalent for 'pickup'.
Or is that behavior restricted to the Local Pickup Delivery API?
Thanks for any input
You could try using the Delivery customization function API to make sure the pickup location customers choose at checkout gets top priority
If that API doesn't do the trick maybe check out the Local Pickup delivery API
Thanks Conversinist. I agree those appear to be the places to look. It's just not clear if the Delivery Customization API's graphQL interface actually allows you to update the pickup location list. We're not on Shopify Plus which appears to limit our options re: Local Pickup delivery API.
Hi DCR_Provoke, were you able to find a solution for this.
I am looking to solve the similar scenrio. But DeliveryCustomization app functions seems to work based on the shipping address of the user and we are not on plus. Any suggestion on how did you work around the situation will be helpful.
Thanks
We ended up using a workaround where we instead created a single 'pickup' location. As we were passing through the selected store as a hidden cart attribute through the UI the orders in Shopify could still be prepped by the relevant stores.
However, this is not a workaround I'm happy with - nor do I think it would scale well.
If you subscribe to the order paid (or other order based webhook/event) your service could look for that specific cart attribute and build further automations with the fulfilment sites from there.
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