Global‑e Session and Cookie attributes
SFCC Session attributes
As long as the Global‑e cartridge is connected to the Site (added to the cartridge path of the Site) the following session custom attributes will be always present and accessible for any purpose (like configuring Customer Group):
Session Parameter | Description | Default Value | Sample Value |
|---|---|---|---|
geEnabled | Whether the Global-e is enabled in Site Preference or not | false | true |
geCountry | The country code, which is identified with using SFCC GeoLocation, from Global‑e country switcher or default Country Code | country code parsed from current request locale (if possible) | GB |
geCountryName | The country name of the country ISO2 code, stored in geCountry | - | Great Britain |
geOperatedCountry | Whether the current Country (selected in Country Switcher or identified by geo IP) operated by Global-e (if Global-e is enabled) or not | false | true |
geSupportsFixedPrices | Whether the fixed prices (from fixed-price price books) should be used for the current Country or not | false | true |
geUseFixedPricesOnly | Only Fixed Prices will be used for the Site, the price will not be dynamically converted | false | true |
geCurrency | The Currency code for end-customer prices, calculated based on current Country (if Global‑e is enabled and current Country is operated by Global‑e) or from session.currency.currencyCode | session.currency.currencyCode | GBP |
geCurrencySymbol | Selected Global‑e Currency's Symbol. Normally used in displaying end-customer price on the storefront. | '' | £ |
geCurrencyMaxDecimalPlaces | Selected Global‑e Currency's Max Decimal Places | 2 | 2 |
geCulture | The Culture Code (similar to locales code, but in a different format, e.g. 'en-GB'), calculated based on current Country (if Global‑e is enabled and current Country is operated by Global‑e), or parsed from request.locale | parsed from request.locale | en-GB |
geLocaleID | ID of selected SFCC locale | locale.ID | en_GB |
geClientSettings | The string of JSON object, which contains some important Global-e parameters for further usage on script loader | '{}' | {\"AllowClientTracking\":{\"Value\":\"true\"}, \"FullClientTracking\":{\"Value\":\"true\"}, \"IsMonitoringMerchant\":{\"Value\":\"true\"}, \"IsV2Checkout\":{\"Value\":\"true\"}, \"TabletAsMobile\":{\"Value\":\"true\"}, \"CheckoutCDNURL\": {\"Value\": \"https://www2.bglobale.com/\"}, \"CheckoutContainerSuffix\": {\"Value\": \"Global-e_International_Checkout\"}} |
geSiteRedirectUrl | The URL where the Global-e has redirected Customer when the new Country was selected in the country switcher | - | |
geUseCountryVAT | Allows to use Country VAT | false | true |
geDefaultCountryVATRate | Country VAT Rate | null | 5.00 |
geCountryCoefficientRate | Country Coefficient Rate | null | 5.00 |
geCountryCoefficientIncludeVAT | Include VAT into Country Coefficient. Possible values: 0, 2, 4, 6, 8 | null | 6 |
geApiVersion | The version of Global-e API | - | 2.1.4 |
geCartHash | The hash of Cart received in response from Global‑e SendCart API | null | 1f038df1-974f-49a7-835c-d1c905edcde9 |
geMerchantOrderNumber | SFCC Order Number | - | - |
Global‑e Cookies
The name of Global-e Cookie is 'GlobalE_Data':
Cookie Parameter | Description | Sample Value |
|---|---|---|
countryISO | The same as session.custom.geCountry | GB |
cultureCode | The same as session.custom.geCulture | en-GB |
currencyCode | The same as session.custom.geCurrency | GBP |
apiVersion | The same as session.custom.geApiVersion | 2.1.4 |