Enabling Commerce Cloud Endless Aisle CalculateCart Hooks

If your storefront is based on a version of SiteGenesis previous to release 15.1, you must make changes to your code to enable calls to CalculateCart. If you don't do so, your Endless Aisle app doesn't perform several cart-related operations.

Before completing the following steps, you should have:

  1. Copy ea_sitegenesis_storefront/package.json goes into the app_<site>_core folder.
  2. Copy ea_sitegenesis_storefront/cartridge/scripts/hooks.json into the app_<site>_core/cartridge/scripts folder.
  3. Copy ea_sitegenesis_storefront/cartridge/scripts/cart/calculate.js into the app_<site>_core/cartridge/scripts/cart folder and change the importScript line to point to the CalculateCart.ds file.
  4. The next step is enabling multi-currency in Endless Aisle
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.