- Exclude restricted or forbidden products from search results and suggestions.
- Prevent shoppers from purchasing restricted or forbidden products for the selected shipping country.
/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 inint_globale/cartridge/scripts/globale/helpers/searchHelpers.js:
SFRA
SFRA search usesint_globale_sfra/cartridge/scripts/helpers/searchHelpers.js, which delegates to the core helper above.
searchHelpers
int_globale_sfra/cartridge/models/search/suggestions/product.js when a searchable-products promotion is active:
SiteGenesis
SiteGenesis search usesint_globale_sitegenesis/cartridge/scripts/models/SearchModel.js:
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.-
Create a promotion in Business Manager (Merchant Tools → Online Marketing → Promotions). Use a Product promotion type; ID should match
geSearchableProductsPromotionId(with or without placeholders). -
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 exampleAUfor Australia). To also exclude forbidden products, add a second excluded-products condition on the Global-e Is Forbidden attribute (geIsForbidden=true) —geRestrictedCountriesalone does not cover forbidden products. In this example, products withAUingeRestrictedCountries(plus any product withgeIsForbidden = true) are excluded from search results for Australia. - 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.
- Rebuild search indexes in Business Manager (Merchant Tools → Search → Search Indexes → rebuild product index).
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:
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’sisGeRestricted(countryCode) / getGeRestrictionMessage(countryCode) methods (from int_globale/cartridge/models/globale/dw/product/decorators/geRestrictions.js) in your Product controller.

