I created custom converter of Product
. It's good, but I have one issue regarding using custom extended type of Product
in services.
For example, my custom OCC Product model & CustomProduct
UI Model have additional fields(e.g. string field). I extended both Occ.Product
and Product
interfaces.
But, e.g. in ProductSummaryComponent
the property product$
doesn't have my field. My suggestion is that it has product$: Observable<Product> = this.currentProductService.getProduct();
- Product
UI Model.
The problem:
I want to use my custom CustomProduct
UI model instead of OOTB Product UI Model of Spartacus anywhere and the same for OOTB Spartacus Occ.Product
model.
Docs describe only how to create custom UI model and use it in Normalizer
. But what if I need to replace OOTB Product
or Occ.Product
UI Model by custom one anywhere (services, adapters, converters, etc)?