Commonly used JSTL variables in starter store pages

The crs-web > WebContent > storedir > Common > EnvironmentSetup.jspf file is a configuration file that is commonly included in starter store pages. The variables declared within this file can be modified to change the appearances and behaviors of storefront components.

Styling variables

env_vfileColor
The directory that contains color dependent image files.
env_vfileStylesheet
The name of the cascading style sheet (CSS) file.
env_vfileStylesheetprint
The name of the CSS file for printing order confirmation pages. This file is a printer-friendly CSS file.

Variables used on store pages

storeName
The store name.
userType
The type of the user. This value can be G for guest users, and R for registered users.
storeId
The ID of the store.
langId
The currently selected language ID for the store.
locale
The currently selected locale for the store.
anonymousUser
This variable indicates whether the current user is an anonymous user or not. For example, a user with ID -1002
userId
The ID of the current user.
catalogID
The ID of the store catalog.
lastCmdName
The name of the last command that is run in the page.
urlLangId
This parameter can be passed to wcf:url tags. If passed, this urlLangId variable is used to look up URL keywords. If keywords are not found for this urlLangId, then the store default language ID is used to look up the URL keywords. By default page language ID is set as urlLangId. If store URLs are supported in only one language, then set that language ID as the urlLangId variable.

Store directory variables

env_jspStoreDir
WebAsset directory of the shared file directory. This directory can contain common web file formats such as JSP files, HTML, and images.
jspStoreImgDir
The URL referring to the shared image directory, used to reference images.
storeDir
WebAsset directory of the hosted store. This directory can contain common web file formats such as JSP files, HTML, and images.
storeImgDir
The URL referring to the hosted store home directory, used to reference images.
env_imageContextPath
The path that indicates the context root, which is used for referencing images.
jsAssetsDir
The path that indicates the JavaScript assets directory, used to reference JavaScript files.
env_siteWidgetsDir
The path that indicates the Commerce Composer site-level widgets directory.
jsIBMWidgetsAssetsPrefix
The path to the IBM Widgets directory, used to reference, for example, JavaScript and CSS.
jspIBMWidgetsImgPrefix
The path to the IBM Widgets directory, used to reference images.

Currency variables

env_currencyDecimal
The number of decimal places for currency. For example, JPY and KRW do not contain any decimal places, while other currencies contain two decimal places.
env_currencyCode
The code for currency, for ex: USD.
env_CurrencySymbolToFormat
The currency symbol in the specified format.

Presentation variables

env_absoluteURL
A fully qualified URL to use if necessary
env_defaultPageView
The default view in which products are displayed throughout the store.
env_displayListPriceInProductPage
The variable to indicate whether the list price is to be displayed in the product details page
maxSKUs
The maximum number of SKU identifiers for which the details are fetched.
maxOrderItemsPerPage
The maximum number of displayed ordered items in a single page.
env_maxOrderItemsToInspect
The maximum number of ordered items to inspect in the checkout pages.
maxOrderItemsToInspect
The maximum number of ordered items to inspect in the mini shopping cart.
profileShippingNickname
The default shipping address nickname for the quick checkout profile.
profileBillingNickname
The default billing address nickname for the quick checkout profile.
ariaMessageNode
The variable ariaMessageNode is used to indicate the ID of the span where refreshArea is updated with a message when the content is updated. This message notifies the user when a certain section on the page is updated after the refreshArea is completed by using aria live region. The default span is in MessageDisplay.jspf.
env_inPreview
This variable indicates whether the store is running in preview mode.
storeText
The variable to access the messages file of the store.
lazyLoadDepartmentsList
indicates whether to load the department list on-demand.

If set to true, the department list will be loaded on-demand, when the shopper clicks the department button. Set this value to false if you want the entire department list to be loaded during the page load.

Variables indicating store supported features

showPONumber
The variable showPONumber is used to indicate whether the purchase order number displays for this store.
showProcessedOrders
Show processed orders in the order status page in the My Account page.
showScheduledOrders
Show scheduled orders in the order status page in the My Account page.
showWaitingForApprovalOrders
Show orders that are waiting for approvals in the order status page in the My Account page.
supportPaymentTypePromotions
The variable is used to indicate whether payment type promotions are supported in the shipping and billing page.
env_subsFulfillmentFrequencyAttrName
The variable is used for subscription products to indicate the name of the fulfillment frequency attribute.
env_subsPaymentFrequencyAttrName
The variable is used for subscription products to indicate the name of the payment frequency attribute.
env_subsTimePeriodAttrName
The variable is used for subscription products to indicate the name of the time period attribute.
showDynamicKit
The variable is used to indicate whether the store supports the display of dynamic kit.
B2B directenv_b2bStore
B2B directThe variable indicates whether the store is a B2B store.
env_displayRibbonAdInGridMode
The variable controls whether ribbon ads display for catalog entries in a grid view on store pages.

When the value for the variable is true, a store page must retrieve the attribute information for the catalog entries on the page. The attribute information determines whether any ribbon ads exist for the catalog entries. The retrieval of the attribute information for all catalog entries in a grid view can affect performance. If you do not want to display ribbon ads on store pages, or in a grid view of catalog entries on a page, set the value for the variable to false. When the value is false, ribbon ads display for catalog entries only in list views on store pages. The default value is true.

env_includeJSPFExtension
Controls whether all store pages include the JSPFExtToInclude.jspf file.

When the value for this variable is true, the JSPFExtToInclude.jspf extension file includes other custom JSP files dynamically on all pages for a store. If you do not want to dynamically include custom JSP files, ensure that the value for this variable is false. The default value is false.