Selected work
Indigo

Store inventory and fulfillment

Refactored inventory and fulfillment logic across product pages, store selection, and the cart for a retailer with 135+ stores.

My contribution
Inventory and fulfillment development · SDG
Technologies
JavaScript / Shopify Plus / GraphQL / Storefront API
Visit Indigo
Indigo product page showing availability at a selected store and an Add for Pickup button.
Store availability and pickup options on an Indigo product page.

Inventory and fulfillment

A customer’s selected store affects which products are available and how an order can be fulfilled. I connected that store selection to availability, pickup, shipping, and split-fulfillment options across the product page and cart.

I replaced inventory values maintained through Shopify Flow with queries to Shopify’s GraphQL Storefront API, and updated the cart to preserve the customer’s fulfillment selection.

Getting the loading order right

I fixed a race condition where availability was checked before the selected store had finished loading. The fix reuses cached store preferences when available, or waits for the store to load before resolving availability.

Barnes & NobleContent and navigation for a headless storefront