on 2018 May 22 11:32 AM
Hi all,
I am using Hybris 6.7 Accelerator. I want to extend an AddOn called b2ctelcoaddon. The general approach I have read so far is to create an empty AddOn and add a dependency to the Out-of-the-box addOn. However, I have a few questions:
Is the above approach correct?
When I create the empty AddOn, should I copy only those UI-specific files(JSP,tag etc.) to the custom AddOn which I want to modify?
If the out-of-box AddOn gets changed in a future release, would it impact the custom AddOn?
Hi Nikhil
In Order to override the add-on , you have to do following steps
Create the empty add-on which is as mentioned by you .
Add the dependecies to the extensioninfo.xml of newly created add-on
You can also add the dependency of your custom storefront facades where normally the custom logic resides.
Once you add this make sure to add your newly created extension in localextenion.xml
Later which you can install your custom add on to your storefront .
I create the empty AddOn, should I copy only those UI-specific files(JSP,tag etc.) to the custom AddOn which I want to modify?
The answer to this question lies in the requirement you have
If you want to Override any component in the existing page of add-on ,You will do the following
a. create the new component jsp and necessary tag files.
b. Create necessary cms content impex and component entry pointing to new component jsp
c. Example cartPage has some default CartComponent , if you want to override this , create new cartDisplay.jsp adding your changes and give the entry of new cartDisplay.jsp in cms-content.impex of your add-on.
If you want to add any new component in the existing page of add-on
a. You will create the cms-content.impex and component entry in impex.
b. You have to write appropriate custom renderer or component controller and have to create necessary jsp and tag file
If the out-of-box AddOn gets changed in a future release, would it impact the custom AddOn?
Yes It may have impact on the custom AddOn .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.