Store assets
Store assets are located in the crs-web archive on the Store server. The crs-web assets include static resource files, such as JSP, JavaScript, and image files.
- Site-level, non-customizable assets, static assets, and default configuration files.
- Store-level, customizable assets and configuration files.
The crs-web project in your Externalized Customization workspace acts as our customized store web project and as the storefront asset store template. Therefore, It contains all the required files for the store, and also copies them to your target folder when you run the addStore Gradle script when creating your custom store.
Pre-published stores exist in your Externalized Customization workspace. These stores are furnished for sample purposes only, so that we can see the capabilities that are given to you as a starting point for the site. They are not intended to be used in production for our company's site. The following list details the types of files based on where they originate:
Stores web archive (crs-web)
- Default static assets.
- Default JavaServer Page files (JSP files):
- Widgets
- Site level WebSphere Commerce error JSP files
- Ajax response JSP files
- Store preview JSP files
- Default configuration files:
- Alias configuration file
- Widget and store preview resource bundles
- REST template
- Spring MVC view and action configuration file and template. Used for the unmodified serving of store and widget JSP files.
- JSP tag libraries. Supporting tag libraries for tag references that are made within JSP files.
- cachespec.xml. The standard cache specification file and template. Used for unmodified store and widget JSP file caching.
The following screen capture shows the structure of the crs-web archive:
Where the WebContent directory contains the static resource files for the AuroraB2BStorefrontAssetStore, AuroraStorefrontAssetStore, and ExtendedSitesCatalogAssetStore sample stores.
We can copy the store files from the store directories in crs-web archive into our own store directory within the same archive and then update the following files:
- Store JSP files. Requires customization.
- Store resource bundles. Requires customization.
- SEO patterns. Requires customization.
- Custom static assets.
- JSP tag libraries. Supporting tag libraries for tag references that are made within JSP files.
- error.jsp and GenericJSPPageError.jsp.
- cachespec.xml. The cache specification file and template. Used for unmodified store and widget JSP file caching.
- Aurora starter store directory structure
Store files are organized by default in a defined directory structure.- 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.- Catalog image requirements for the Aurora starter store
For each catalog entry (product, SKU, bundle, and kit), the Aurora starter store displays images in various sizes in different locations.
Related tasks
Customizing the store
Related reference
Store configuration files