Hi everyone,
I’m working on customizing the checkout experience in Shopify and need some clarification regarding conditional delivery options.
I want to show or hide the default “Pickup” (Local Pickup) option in checkout based on a cart attribute.
Flow implemented:
-
On the cart page, the customer selects:
-
“Delivery” OR
-
“Pickup”
-
-
Based on selection, I’m saving a cart attribute like:
cart.attributes.delivery_type = "pickup"or
cart.attributes.delivery_type = "standard-delivery"
Expected Behavior:
-
If
delivery_type =standard-delivery → Only show Shipping, hide Pickup -
If
delivery_type = pickup→ Show Pickup option
Current Behavior:
-
If Pickup is enabled, Shopify always shows the Pickup tab in checkout
-
No conditional control based on cart attributes
Any guidance or confirmation would be really helpful.
Thanks in advance!

