Re-order store pickup based on Cart Attributes

Re-order store pickup based on Cart Attributes

DCR_Provoke
Shopify Partner
3 0 0

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).

DCR_Provoke_0-1716068143975.png

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

Replies 4 (4)

conversionist
Shopify Partner
93 8 9

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

Building 100 Shopify apps for that BMW M5 dream

Follow the journey at https://www.youtube.com/@conversinist
https://
conversionist.online/
Buy me a coffee
DCR_Provoke
Shopify Partner
3 0 0

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.

a9809
Shopify Partner
7 0 0

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

DCR_Provoke
Shopify Partner
3 0 0

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.