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. UsesetSession from int_globale/cartridge/scripts/helpers/globaleHelpers.js, which takes a countryCode and a currencyCode:
Country/currency-aware links
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
glCountryandglCurrencyto 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
- Price calculation — how Global-e converts prices
- Jobs overview — building feeds in a job context
- Customization —
globaleHelpersusage

