Posts

Showing posts from March, 2025

Differences between Extension and AddOn in SAP Hybris

In this article, I have explained differences between Extension and AddOn in details in SAP Commerce [Hybris] and also described when to use Extensions and when to use AddOn's. An Extension is a self-contained module that adds or modifies functionality in SAP Commerce.   An Extension generally represents a larger functionality and it contains business logic, type definitions, back-office configurations and other configuration files like xml, properties and etc, whereas AddOns are used to extend the functionality of SAP Commerce Accelerator[storefront] without modifying the core code base. AddOns are plugin kind of extension, you can easily remove your AddOns without refactoring the code of your Accelerator extension. Extension can work independently or extend the another extension whereas AddOn always depends on an existing extension (e.g. acceleratorstorefront). Extensions are used for business logic whereas AddOns are mostly used for Frontend/UI customization.     ...

AddOns in SAP Commerce [Hybris]

In this article, I explain in details about the AddOns in SAP Commerce and demonstrate how to create our own custom AddOn using ant extgen command based on yaddon template.  AddOns are used to extend the functionality of SAP Commerce Accelerator[storefront] without modifying the core code base. AddOn is a type of extension that allow you to add front-end related files such as JSP, HTML, CSS and JavaScript files without modifying the storefront front-end files directly. AddOns will never alter the core business logic rather it just enhances the existing storefront behaviour. AddOns often refers to plug and play kind of extensions and anytime you can install or uninstall from the storefront without effecting core business functionality. Generally, AddOns contains front-end related logic whereas extensions contain business logic. Creating a custom AddOn:           We can use same ant extgen command to create your own custom AddOn and need to provid...