SAP Hybris Extension

What is an extension

Why does SAP Commerce use extensions

Extension Structure

Extension Folder Structure

How to Create Custom Extension

  1. Navigate to the platform folder in the command prompt. Set ant env. Command: setantenv.bat
  2. ant extgen: this command is used to create single extension using the ootb templates of extensions.

Run ant extgen command


ant extgen
Extgen Command
  1. You need to give template name, extension name and package name
Paramters required for extgen Command
  1. After successfully creating extension, we need to add the extension name in localextensions.xml file
Adding custom extension in localExtensions.xml file
  1. Do build.
  2. If the extension contains items.xml file then update the system. 
  3. Start server

Leave a Reply

Your email address will not be published. Required fields are marked *