Skip to main content
Global-e supports country-level restricted and forbidden products. Depending on configuration, you can:
  • Exclude restricted or forbidden products from search results and suggestions.
  • Prevent shoppers from purchasing restricted or forbidden products for the selected shipping country.
Restriction data is imported from Global-e through the GlobaleProducts job (/Browsing/RecentProductCountryS) and stored on each product: See GlobaleProducts for job setup and Metadata for attribute definitions. By default, restricted and forbidden products are not excluded from search results or suggestions. To exclude them from search, configure a dedicated promotion in Business Manager (below). For best performance on suggestions, set the promotion ID and use Product Search Model promotion product type.

Search exclusion implementation

Search filtering is implemented in int_globale/cartridge/scripts/globale/helpers/searchHelpers.js:

SFRA

SFRA search uses int_globale_sfra/cartridge/scripts/helpers/searchHelpers.js, which delegates to the core helper above. searchHelpers
In SFRA, product suggestions are filtered in int_globale_sfra/cartridge/models/search/suggestions/product.js when a searchable-products promotion is active:

SiteGenesis

SiteGenesis search uses int_globale_sitegenesis/cartridge/scripts/models/SearchModel.js:
SiteGenesis suggestions are filtered in int_globale_sitegenesis/cartridge/scripts/search/SearchSuggest.js:

Site preference

Configure Searchable Products Promotion ID (geSearchableProductsPromotionId) in Merchant Tools → Site Preferences → Custom Site Preference Groups → Global-e Settings. Use {country} and {currency} placeholders in the promotion ID — the cartridge resolves them from geAppContext at runtime (for example SearchableProducts_{country}_{currency}).

Promotion and campaign setup

The example below targets Australia via customer groups. Restricted and forbidden products are excluded from search for that market only. You can also scope one promotion to multiple Global-e operated countries using campaign customer groups.
  1. Create a promotion in Business Manager (Merchant Tools → Online Marketing → Promotions). Use a Product promotion type; ID should match geSearchableProductsPromotionId (with or without placeholders).
  2. Set Qualifying products: add all products to Included Products 1. In Excluded Products 1, choose the Global-e RestrictedCountries product custom attribute (geRestrictedCountries) and the country codes to exclude (for example AU for Australia). To also exclude forbidden products, add a second excluded-products condition on the Global-e Is Forbidden attribute (geIsForbidden = true) — geRestrictedCountries alone does not cover forbidden products. In this example, products with AU in geRestrictedCountries (plus any product with geIsForbidden = true) are excluded from search results for Australia.
  3. Set Discounted products: remove Included Products 1 and add all products to Excluded Products 1 so no products receive a discount — this keeps PLP, PDP, and basket prices correct while filtering search.
  4. Rebuild search indexes in Business Manager (Merchant Tools → Search → Search Indexes → rebuild product index).
Salesforce B2C Commerce ignores campaign configuration for promotions used with ProductSearchModel.setPromotionID(). Assign the promotion to a Global-e campaign and customer group (for example an Australian group) so filtering applies only in Global-e operated countries. When the promotion ID contains {country} and {currency} placeholders, the cartridge resolves them automatically — a dynamic customer group on the campaign is not required:
If the promotion ID has no placeholders, use a dynamic customer group on the campaign instead.

Disable purchase on PDP

By default, restricted or forbidden products appear on the PDP with an availability message. You can hide them or redirect shoppers — for example to the home page — using the Global-e product wrapper’s isGeRestricted(countryCode) / getGeRestrictionMessage(countryCode) methods (from int_globale/cartridge/models/globale/dw/product/decorators/geRestrictions.js) in your Product controller.

SFRA

Add customization in the SFRA Product controller route: Redirect to Home Page for Restricted and/or Forbidden products

SiteGenesis

Add the same pattern in the SiteGenesis Product controller or pipeline: Redirect to Home Page for Restricted and/or Forbidden products

Einstein product recommendations

If a shopper opens a recommended restricted or forbidden product, they see the restriction message on the PDP (or your custom redirect behavior) and cannot add the product to the basket.

SFRA and SiteGenesis

To hide restricted or forbidden products from Einstein recommendations, update the templates that render recommendation slots per SFCC product recommendations guidance. Example ISML fragment:

Global-e checkout with restricted products

If a shopper reaches Global-e checkout with restricted or forbidden products in the basket, Global-e displays a restriction message and blocks checkout completion.