--- title: >- New PRODUCT_UNAVAILABLE_IN_BUYER_LOCATION warning code in the Storefront API Cart - Shopify developer changelog description: >- Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: >- https://shopify.dev/changelog/new-productunavailableinbuyerlocation-warning-code-in-the-storefront-api-cart md: >- https://shopify.dev/changelog/new-productunavailableinbuyerlocation-warning-code-in-the-storefront-api-cart.md metadata: effectiveApiVersion: 2026-07 affectedApi: - displayName: Storefront GraphQL API handle: storefront-graphql primaryTag: displayName: API handle: api secondaryTag: displayName: New handle: new indicatesActionRequired: false createdAt: '2026-04-22T16:03:07-04:00' postedAt: '2026-05-12T12:00:00-04:00' updatedAt: '2026-05-12T10:58:48-04:00' effectiveAt: '2026-07-01T12:00:00-04:00' --- May 12, 2026 Tags: * Storefront GraphQL API * 2026-07 # New `PRODUCT_UNAVAILABLE_IN_BUYER_LOCATION` warning code in the Storefront API Cart Starting with the 2026-07 version of the Storefront API, the [Cart](https://shopify.dev/docs/api/storefront/2026-07/objects/Cart) emits a [`PRODUCT_UNAVAILABLE_IN_BUYER_LOCATION`](https://shopify.dev/docs/api/storefront/2026-07/objects/CartWarning#field-CartWarning.fields.code.PRODUCT_UNAVAILABLE_IN_BUYER_LOCATION) warning when a [cart line](https://shopify.dev/docs/api/storefront/2026-07/objects/CartLine) contains a product that isn't available in the buyer's location. Each affected cart line returns its own warning. The warning's target is set to the `CartLine` ID so you can map it back to the line in your UI. For background on cart warnings and an example of handling them, refer to our docs on [cart warnings](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/cart/cart-warnings).