Skip to main content
When you generate marketing feeds (for example product feeds for search engines or shopping channels), the prices and links must reflect the Global-e operated country and currency the feed targets — not the merchant’s domestic price. This page describes the two building blocks the cartridges provide: a helper to produce converted prices, and conventions for country/currency-aware links.

Converted prices in a feed

To produce converted prices, initialize a Global-e session for the target country/currency and then read the converted price model. Use setSession from int_globale/cartridge/scripts/helpers/globaleHelpers.js, which takes a countryCode and a currencyCode:
Call this inside your existing feed-generation job to emit converted product prices. So that crawlers index the correct prices and currencies, product links in the feed must preselect the right shipping country and currency. There are two options:
  • GET parameters — append glCountry and glCurrency to product URLs. This is needed when one SFCC locale serves several Global-e operated countries, so the link can preselect the country/currency for each feed entry.
  • Per-country SFCC locale — if each Global-e operated country has its own dedicated SFCC locale, generate the product links with the correct SFCC locale instead.

See also