In short
A product in stock in France can be out of stock in the British warehouse, not deliverable to Switzerland and banned from sale in another country. Each country version of the site must reflect this reality: the visible availability, the availability property of the JSON-LD, the shipping countries declared in shippingDetails and the product's status in Merchant Center for that country. The task is to draw up the products × countries matrix, compare it with what each version publishes, then fix the discrepancies. Once it is done, no version announces "in stock" or "free delivery" for a country where ordering is impossible.
Why it matters
Availability discrepancies by country stem from the very structure of international sites:
- Global stock displayed everywhere: the CMS calculates a single stock level, while each market is served by a different warehouse.
- Single template: the same "in stock, delivered in 48 hours" message is translated on every version.
- Restriction handled at the cart: the product appears available on the product page, and the refusal only comes when the address is entered.
- Availability chosen by IP: the page displays a different availability depending on the visitor's location, on the same URL.
This last case misleads crawlers. By default, Googlebot crawls from addresses located in the United States: a product page that hides the offer or displays "not available in your country" depending on the IP shows it the American status on every version.
Merchant Center requires the availability in the feed to match that of the landing page and the checkout, or the product is disapproved. For a product that is not sold everywhere in the target country, its documentation asks you to mark the offer as out of stock in the regions concerned. The page's structured data is also used for automatic item updates.
As for generative engines, recommending a product that cannot be found in the user's country is a visible failure. No assistant documents how it determines availability by country; clear information in the page and the markup of each version remains the only lever you have, with no guarantee.
What it improves
- Merchant Center Fewer disapprovals for mismatched availability, by country.
- Merchant listings Accurate availability shown in each market's results.
- Conversion Fewer carts abandoned at the shipping address step.
- AI answers Fewer recommendations of products that cannot be delivered. Undocumented effect.
- Rankings No direct effect.
How to check
The reference matrix. Ask the logistics or e-commerce team for the actual status in each market of a sample of products (best sellers, products with restrictions, bulky products):
| Product | Market | Sold? | Stock | Delivery | Expected URL |
|---|---|---|---|---|---|
| Cast iron teapot 1.2 L | FR | Yes | In stock | 48 h | /products/theiere-fonte/ |
| Cast iron teapot 1.2 L | GB | Yes | Out of stock, back on 15/12 | — | /en-gb/products/cast-iron-teapot/ |
| Cast iron teapot 1.2 L | CH | No | — | — | None |
| Matcha tea 100 g | US | No (import restriction) | — | — | None |
The site survey. This dependency-free Python script reads, for each URL, the HTTP status code, the availability and the shipping countries in the JSON-LD, presenting itself as Googlebot and without cookies:
#!/usr/bin/env python3
import csv, json, re, sys, urllib.request, urllib.error
UA = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
LD = re.compile(r'<script[^>]+application/ld\+json[^>]*>(.*?)</script>', re.S | re.I)
def offers(node, found):
if isinstance(node, list):
for child in node:
offers(child, found)
elif isinstance(node, dict):
if node.get('@type') in ('Offer', 'AggregateOffer'):
details = node.get('shippingDetails', [])
details = details if isinstance(details, list) else [details]
countries = sorted({str(d.get('shippingDestination', {}).get('addressCountry', '')) for d in details})
found.append((node.get('availability', ''), ' '.join(countries)))
for child in node.values():
offers(child, found)
writer = csv.writer(sys.stdout)
writer.writerow(['url', 'http', 'availability', 'shipping_countries'])
for url in open(sys.argv[1]).read().split():
request = urllib.request.Request(url, headers={'User-Agent': UA})
try:
with urllib.request.urlopen(request) as response:
html, status = response.read().decode('utf-8', 'replace'), response.status
except urllib.error.HTTPError as error:
writer.writerow([url, error.code, '', ''])
continue
found = []
for block in LD.findall(html):
try:
offers(json.loads(block), found)
except json.JSONDecodeError:
found.append(('invalid JSON', ''))
for availability, countries in found or [('no offer', '')]:
writer.writerow([url, status, availability.rsplit('/', 1)[-1], countries])
Run it with a file of URLs, one per line: python3 dispo.py urls.txt > releve.csv. Then compare each line with the matrix, and with the message visible on the page.
Expected result:
- product sold and in stock: HTTP 200,
InStock, the market's country among the shipping countries; - product sold but out of stock in this market:
OutOfStock,BackOrderorPreOrder, as on the page; - product not sold in this market: no product page on this version, or a page without an offer that says so clearly;
- the same result whether you run the script from France or from another country.
In Merchant Center. Open the product list, filter by target country and by status, then read the availability or landing page mismatch issues. A product approved in a country you do not ship to points to a feed or shipping settings that are too broad.
How to implement
Before you start
Choose the treatment according to the actual situation:
| Situation in the market | Page of the version | JSON-LD | Merchant Center feed for the country |
|---|---|---|---|
| Sold, in stock | Published | InStock, shippingDetails to the country |
in_stock |
| Sold, temporarily out of stock | Published, with a restock date if known | OutOfStock or BackOrder |
out_of_stock or backorder |
| Sold on pre-order | Published, with an availability date | PreOrder |
preorder |
| Never sold in this country | Not published on this version, absent from the sitemap and hreflang |
None | Product excluded from the country |
Version shared by several countries (/en/) |
Published, with the countries shipped to listed in plain text | One shippingDetails per country shipped to |
Per country |
Rules:
- Availability depends on the URL, never on the IP or a cookie. A foreign visitor can be informed with a banner, without changing the content of the page.
- Page, markup and feed read the same source: the stock and the sales countries of the market.
- No default
InStock: a value hard-coded in the template is the most common error. - Pages withdrawn from a market: also remove their
hreflangannotations and their links. See update annotations when a translation is removed (opens in a new tab). eligibleRegionandineligibleRegion: schema.org provides them onOfferto declare the countries where the offer is or is not valid, with ISO 3166-1 alpha-2 or ISO 3166-2 codes. Google does not mention them in its merchant listing documentation: use them as a complement, never instead ofshippingDetails.
Offer of the shared English version, shipped to the United Kingdom and Ireland:
{
"@type": "Offer",
"url": "https://example.com/en/products/cast-iron-teapot/",
"price": "45.00",
"priceCurrency": "EUR",
"availability": "https://schema.org/InStock",
"eligibleRegion": ["GB", "IE"],
"shippingDetails": [
{
"@type": "OfferShippingDetails",
"shippingRate": { "@type": "MonetaryAmount", "value": "9.90", "currency": "EUR" },
"shippingDestination": { "@type": "DefinedRegion", "addressCountry": "GB" }
},
{
"@type": "OfferShippingDetails",
"shippingRate": { "@type": "MonetaryAmount", "value": "6.90", "currency": "EUR" },
"shippingDestination": { "@type": "DefinedRegion", "addressCountry": "IE" }
}
]
}
Templates for out-of-stock and permanently withdrawn products are detailed in manage temporarily out-of-stock products (opens in a new tab) and manage permanently discontinued products (opens in a new tab).
Shopify
Versions Shopify Markets and market catalogs, November 2026.
By default, every product is available in every market. To remove a product from a market, assign a catalog to that market (Markets in the Shopify admin, open the market, then its catalogs), and exclude the product from the catalog. On the Products page, the "View as" option shows the products offered in a given market: use it to check the matrix.
The stock sold in a market depends on the inventory locations that serve it. In the JSON-LD, variant.available reflects what Shopify agrees to sell in the context of the request: check the output on each market's URL (/en-gb/products/...) with the script from the "How to check" section. Shipping countries are set in Settings > Shipping and delivery; carry the same countries over into shippingDetails if your theme declares them.
WordPress
Versions WordPress 6.5 and later, WooCommerce 9 and 10, November 2026.
WooCommerce manages a single stock level per product and sets the sales countries for the whole store, in WooCommerce > Settings > General (selling locations and shipping locations), then the rates in Settings > Shipping. Out of the box, it cannot make a product unavailable in a single country.
- One market per site (multisite or separate installations): each site has its own sales countries and stock, so the availability in the markup is accurate by design.
- A single multilingual site: the restriction by country goes through a plugin, which often acts at the cart or based on the IP. In that case, do not let the product page announce
InStockfor an excluded country: adjust the offer in the markup with thewoocommerce_structured_data_product_offerfilter according to the language or market of the URL, and display the same information on the page.
add_filter('woocommerce_structured_data_product_offer', function (array $offer, WC_Product $product): array {
$language = apply_filters('wpml_current_language', null);
$excluded = (array) get_post_meta($product->get_id(), '_excluded_markets', true);
if (! in_array($language, $excluded, true)) {
return $offer;
}
$offer['availability'] = 'https://schema.org/OutOfStock';
return $offer;
}, 20, 2);
The _excluded_markets field is an example: replace it with the data from your restriction plugin. A product never sold in a market should not have a translated product page for that market.
PrestaShop
Versions PrestaShop 8 and 9.
Sales countries are set in International > Locations > Countries (active countries) and by zone, then carriers by zone in Shipping > Carriers. In multistore mode, associate each product only with the stores of the markets where it is sold: it then does not exist on the others. With stock shared between stores, availability is the same everywhere: check that it matches the reality of each market.
Laravel
Versions Laravel 11 to 13.
Store availability per market, then make the product page, the markup and the feed depend on this single piece of data:
namespace App\Http\Controllers;
use App\Models\Product;
use Illuminate\View\View;
class ProductsController extends Controller
{
public function show(string $market, Product $product): View
{
$availability = $product->availabilities()->where('market', $market)->first();
abort_if($availability === null, 404);
return view('products.show', [
'product' => $product,
'schemaAvailability' => "https://schema.org/{$availability->status}",
'shippingCountries' => $availability->shipping_countries,
]);
}
}
A product missing from a market returns a 404 on that version and disappears from its sitemap; status is InStock, OutOfStock, BackOrder or PreOrder. Each country's Merchant Center feed reads the same table.
Next.js
Versions Next.js 15 and 16 (App Router).
In app/[market]/products/[slug]/page.tsx, load the availability for the market in the route segment and call notFound() when the product is not sold there. Do not read a geolocation header in the middleware to modify the offer. If the page is statically generated, regenerate it whenever stock changes (revalidateTag or revalidatePath called from the stock webhook), otherwise the markup keeps an outdated availability.
Merchant Center
A product is only shown in a country if the feed targets it and shipping to that country is configured. Check:
- the target countries of each product data source;
- the shipping settings: a country without a shipping service should not receive products;
- regional prices and availability when sales vary within a country, if the option exists in that country.
Full synchronization is covered in sync prices and stock across site, feeds and markup (opens in a new tab).
Common mistakes
- Hard-coded
InStockin the JSON-LD template, whatever the market's stock. - Availability based on IP on the same URL: Googlebot sees the American situation everywhere.
- Restriction discovered at the cart: the product page promises a delivery that checkout refuses.
- Translated product page for a product never sold in the market, with
hreflangand internal links pointing to it. - Global stock displayed on markets served by different warehouses.
- Cache not purged after a stock change: the page and the markup keep the old status.
Frequently asked questions
Should the page of a product not sold in a country be deleted?
If the product has never been sold in that country and never will be, do not publish its page on that market's version, and remove it from the sitemaps and hreflang annotations. If it is temporarily unavailable, keep the page online with an OutOfStock or BackOrder availability and a restock date if you know it, so that it keeps its search visibility.
Can availability be displayed according to the visitor's country?
Not on the same URL for indexable content. Googlebot crawls mostly from the United States, without a language header, and would see that country's availability on every version. Plan one URL per market with its own availability. A banner can inform a foreign visitor that they are viewing another country's version, without changing the content of the page.
Does Google take eligibleRegion into account?
Google does not mention eligibleRegion or ineligibleRegion in its merchant listing documentation. To describe the countries shipped to, it relies on shippingDetails, whose destination is declared with an ISO 3166-1 alpha-2 country code. You can add eligibleRegion to complete the description of the offer, without expecting any effect in Google.
How often should availability by country be checked?
Check whenever logistics, warehouses or export rules change, and after every theme or plugin update. Otherwise, a monthly check of a sample of products per market is often enough, supplemented by continuous monitoring of availability issues in Merchant Center, which flags discrepancies between the feed and the landing page.
Resources
- Google Search Central: Merchant listing structured datadevelopers.google.com
- Merchant Center Help: Availability attributesupport.google.com
- Merchant Center Help: Automatic item updatessupport.google.com
- Google Search Central: Locale-adaptive pagesdevelopers.google.com
- schema.org: eligibleRegion and ineligibleRegionschema.org
- Shopify Help: Market catalogshelp.shopify.com
Updated on
Topic checklist (PDF)