The problem

A shopper can open one country's store with a cart from another still saved in the browser. The page looks right, but prices, currency and shipping belong to the wrong market.

What I did

  • Gave each country its own saved cart, so carts never cross markets
  • Checked region, currency and shipping country before a cart reaches checkout
  • Enforced the same market rules in the backend, not only the page

Keep the market attached to the request.

  1. Site contextLocale · content · currency
  2. Market APIResolve the selected market
  3. Scoped cartRegion + channel + currency
  4. CheckoutUse the matching cart
Site, locale, and currency stay in scope from the product page to checkout. Cart validation checks the region, sales channel, and selected market.

Need the same?