cancel
Showing results for 
Search instead for 
Did you mean: 

Extend functionality of b2ctelcoaddon

nik26jaz
Explorer
0 Kudos

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:

  1. Is the above approach correct?

  2. 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?

  3. If the out-of-box AddOn gets changed in a future release, would it impact the custom AddOn?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nikhil

In Order to override the add-on , you have to do following steps

  1. Create the empty add-on which is as mentioned by you .

  2. Add the dependecies to the extensioninfo.xml of newly created add-on

  3. You can also add the dependency of your custom storefront facades where normally the custom logic resides.

  4. Once you add this make sure to add your newly created extension in localextenion.xml

  5. 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

  1. 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.

  2. 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 .

Answers (0)