1
votes

I got a case where I should override/extend that ProductGridItemComponent, in the electronics-spa base-site. Normally when overriding components in Spartacus one could add an outlet template like this:

<ng-template cxOutletRef="ProductGridItemComponent">
  My custom code here
</ng-template>

But this doesn't seem to have any effect. If I try to override the ProductListComponent is works but then I would have to copy a lot of code from the source code to make it behave and look as the provided code from Spartacus. Is it possible to override only the ProductGridItemComponent or do I have to do override the ProductListComponent and build it up from scratch?

-- EDIT --

I found the answer on another thread. How to customize lower level components in Spartacus?

The ProductGridItemComponent is not customizable. It has to be done on a higher level, ProductListComponent.

1

1 Answers

1
votes

It doesn't look like ProductGridItemComponent has available outlets for customization. The alternative is to extend and override the component to customize its behaviour.