Example: Sample usages of the addStore script for creating custom stores

Consult the examples in this topic for sample usages of the addStore script. The examples include sample gradle.properties file values that can be passed in when creating our custom store. The following example demonstrates a scenario where your company:

  1. Creates an initial store.

  2. Adds an extended site to support a new geography.

  3. Adds an extended site that uses a different catalog.

  4. Adds an extended site that uses a new storefront asset store.


1 Creates an initial store

Your company, Ycom, performs its initial deployment in United States English. The following assets must be created:

The sample gradle.properties file contains the following values:


2 Adds an extended site to support a new geography

Your company, Ycom, decides to expand to Asia. You create a second extended site store, YcomAsiaEsite, that reuses all stores and assets from the initial deployment. The sample gradle.properties file contains the following values:

Then, populate bootstrap data for the new extended site store: Populating the store's bootstrap data into the database.


3 Adds an extended site that uses a different catalog

Your company, Ycom, acquires a hardware manufacturing company. You create a third extended site store, YComHDEsite, that uses a new catalog asset store, YcomHardwareCatalogAssetStore, but reuses the storefront asset store from the initial deployment. The sample gradle.properties file contains the following values:

Then, populate bootstrap data for the new extended site store: Populating the store's bootstrap data into the database. Use the Catalogs tool to upload our own catalog data into your new catalog asset store.


4 Adds an extended site that uses a new storefront asset store

Your company, Ycom, decides to market its Men's apparel category differently. You create a fourth extended site store, YComManEsite, that reuses the catalog asset store from the initial deployment, but uses a new storefront asset store, YComMenStoreFrontAssetStore. The sample gradle.properties file contains the following values:

Then, populate bootstrap data for the new extended site store: Populating the store's bootstrap data into the database.