How is the best way to work with a default Hybris addon
? There are some really nice addon features we want to use in our projects, but of course not exactly the way they are. So what is the best practice to modify them?
Is it the way to copy the addon into the own project and then handle it as an own addon? (So put it under the 'custom' folder and modify it as needed)
A normal extension doesn't need to install but addon needs to. It means if you are creating an addon, you need to install it in your existing storefront template.
An extension is an encapsulated piece of the hybris e-Commerce Suite that can contain business logic, type definitions, a web application, or a hybris Management Console (hMC) configuration. That way, you link up in one place all of the functionality that covers a certain field of use.
How is the best way to work with a default addon from hybris?
Addons are used to extend Hybris platform functionalities without changing its source code, they are standard extensions, So, I think that the best way is to create your own addon, so you keep your code independent of Hybris business logic and modular for future evolution. In general SAP Hybris recommends the extension of its code without modifying it.
What exactly happens by installing an addon on an extension?
Once you execute the following command :
ant addoninstall -Daddonnames="myAddOn" -DaddonStorefront.yacceleratorstorefront="myStorefront"
ant addoninstall will :
When need to uninstall an addon, does it need to use the uninstall command?
Yes, you need to execute ant addonuninstall in order to rollback the actions listed in the second response.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With