Managing Assets
Managing Assets
Application and store assets are located in extensions/assets/ext-assets/src/main/assets.
Application Assets
The following application assets are required to run Commerce Manager Client.
- cmassets - Commerce Manager assets, containing velocity templates used in the Commerce Manager Client.
- content-wrappers
- import - Commerce Manager .csv files, (used for importing products, jobs, catalogs, etc)
Store Assets
Store assets are used by the Storefront, Cortex and the Integration servers. These assets include:
- dynamiccontent (assets used by your Dynamic Content)
- images (images used by your catalog data)
- storeassets (Miscellaneous store assets)
- themes (the look-and-feel related resources, including Velocity templates, CSS files, Javascript files, and storefront images)
- digital assets (downloadable binaries, such as software, images, etc)
Using Assets Locally
To use local assets for development:
- In your settings.xml, configure the ep.local.asset.path property to point to the assets source folder as described in Configure Maven Settings.xml.
- Re-populate your local database following the Populate the Database instructions. This updates the COMMERCE/STORE/ASSETS/assetLocation setting value in the database.
Deploying Assets for Production
When you build a deployment package using the extensions\packager module, an ext-assets.zip package is included in the the deployment package.
Assets are typically deployed to a local file system directory on each VM running the Elastic Path servers. The asset location is specified by the ep.local.asset.path property in the Data Population filtering.properties file. For more information, see Data Population Acccelerator Kit.
Specifying the Asset Path
You can change the asset path by modifying the assetLocation setting in Commerce Manager Client.
- Log on to the Commerce Manager Client.
- In the Activity menu, choose Configuration.
- In the Configuration menu, choose System Configuration.
- In the Filter, enter COMMERCE/STORE/ASSETS/assetLocation.
- In the Setting Name menu, select the assetLocation setting.
- Under Defined Values, select the default setting and click the Edit... button.
- Under Value, enter your new asset location.
- Click Save to apply your changes.
Specifying the Assets Server URL
The assetServerBaseUrl setting defines the URL for your media assets. For example, if assetServerBaseUrl was https://media.samplestore.com for www.samplestore.com; then, image URLs would be: https://media.samplestore.com/thumbnail_hd.jpg
You can change the assets server URL by modifying the assetServerBaseUrl setting in the Commerce Manager Client.
To change assetServerBaseUrl:
- Log on to the Commerce Manager Client.
- In the Activity menu, choose Configuration.
- In the Configuration menu, choose System Configuration.
- In the Filter, enter COMMERCE/STORE/ASSETS/assetServerBaseUrl.
- In the Setting Name menu, select the assetServerBaseUrl setting.
- Under Defined Values, click the New... button.
- Under Context, enter your StoreCode.
- Under Value, enter your asset server URL.
- Click Save to apply your changes.