Create AddOns

AddOns are built on top of the existing SAP Commerce Cloud to extend the functionality of the SAP Commerce Cloud Accelerator.

AddOns are a type of extension that allow you to add front-end files (such JSP, HTML, CSS, and JavaScript files, as well as images) from within your own AddOn, instead of modifying the storefront front-end files directly.

Best Practice Guidelines

SAP recommends these guidelines for software developers extending SAP Commerce Cloud.

Separate front-end functionality into reusable AddOns
Putting stuff in add-on extensions instead of directly into the main storefront extension avoids the need for manual merging of files when upgrading the Accelerator code base. Putting functionality into AddOns, builds a library of self-contained, reusable components for your future projects.
Name Addon extensions based on domain concept with a suffix of Addon
Name the adding extension after the domain functionality that it provides followed by the character string "Addon." The following shows some examples:
  • accountsummaryaddon

  • b2bacceleratoraddon

  • recentvieweditemsaddon

Only put front-end logic and resources in Addon extensions

For flexibility and reusability, keep business logic and storefront-related features in separate extensions.

For example, do not include services, facades, backoffice configuration in AddOns. Separate these out into their own extensions.