Starter store directory structure
Starter store files are organized by default in a defined directory structure.
The directory structure used in the examples represent a server environment. For development environments, the equivalent directory structure applies: for example, WC_eardir\Stores.war\storedir. The following directory structure exists when your store is published:
- WC_eardir/Stores.war/storedir/css
- Contains the CSS files for the store using the following naming conventions:
-
- commonX_Y.css
- The main CSS file used for all locales, excluding the locale-specific CSS files, for example common1_1ja_JP.css.
-
- WC_eardir/Stores.war/storedir/images/
- Contains common store icons and images.
- WC_eardir/Stores.war/storedir/images/advertisements
- Contains all the images for store advertisements. Most of the advertisement images are a content file asset found in WebSphere Commerce Accelerator or Management Center.
- WC_eardir/Stores.war/storedir/images/attachments
- Contains file assets attachments that are linked to a product.
- WC_eardir/Stores.war/storedir/images/catalog
- Contains catalog, category, and product images.
- WC_eardir/Stores.war/storedir/images/colors/colorY
- Contains images that are style and color dependant when customizing the layout and presentation of the store. For example, the border colors of an image are modified to remain consistent with a change in the store's color scheme.
- WC_eardir/Stores.war/storedir/include
- Contains JSP files and JSP file fragments according to the following usage:
- Files containing JSTL constants.
- Files containing repetitive code that is included in all pages.
- Files that are used by JSP files in the include/styles/style1 directory, common to all styles.
- WC_eardir/Stores.war/storedir/include/styles/styleX
- Contains JSP files that define the entire frame surrounding the content pages of the store.
- WC_eardir/Stores.war/storedir/javascript
- Contains JavaScript files used in the store.
- WC_eardir/Stores.war/storedir/Messages
- Contains JSP files used to compose e-mail messages sent to customers. These JSP files create HTML e-mail messages, therefore, ensure the message types are set up accordingly in the Administration Console.
- WC_eardir/Stores.war/storedir/ShoppingArea/CatalogSection
- Contains the full-page JSP files that render the store pages contained in the catalog browsing flow.
- WC_eardir/Stores.war/storedir/ShoppingArea/CheckoutSection
- Contains the full-page JSP files that render the store pages contained in the checkout flow.
- WC_eardir/Stores.war/storedir/StoreInfoArea
- Contains the full-page JSP files that render the store information pages, for example, the Help/Contact Us page.
- WC_eardir/Stores.war/storedir/Snippets
- Contains JSP files and JSP file fragments that are reused in the full-page store JSP files. The
JSP file snippets are created to keep code modular and to render specific features of WebSphere
Commerce. It contains JSP files, for example, that render:
- The contents of an e-Marketing Spot.
- An address form.
- A promotion code.
- WC_eardir/Stores.war/storedir/UserArea
- Contains the full-page JSP files that display the store's My Account section, Sign in, Registration, and Password Reset pages.
- WC_eardir/Stores.war/storedir/
- Contains error JSP files used in the store.
- WC_eardir/Stores.war/storedir/StoreLocatorArea
- Contains JSP fragments for the store locator.