intershop-pwa
intershop-pwa copied to clipboard
feat: add configurable product attributes
An attempt to make product defaut easily overridable was made on ticket #1098. However, this change only affects the product listing. It is not possible to easily add an attribute globally on all the products of the site (and the api rest on the backoffice side is quite rigid). This modificationintroduces a service which allows to solve this problem more easily and also to make this configuration parameterizable at the level of an extension by using the "FeatureToggleService".
BREAKING CHANGES: products-list-attribute.ts no longer provide default export
PR Type
[ ] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no API changes) [ ] Build-related changes [ ] CI-related changes [ ] Documentation content changes [ ] Application / infrastructure changes [ ] Other:
What Is the Current Behavior?
Issue Number: Closes #
What Is the New Behavior?
Does this PR Introduce a Breaking Change?
[ ] Yes [ ] No
Other Information
Hi Tristan. Reading your comment on the quite rigid REST API I wonder if you are familiar with the way the Product REST API can be configured in the backoffice to contain additional attributes. You can manage so called product attribute groups in the Intershop Backoffice and configure if the attributes of this group should be exposed via REST or not. This seems to be the use case you are looking for.
Hi @rkarl-ish You right about this fonctionnality, and it is usefull for product listing. But it did not find any way to use this feature and a product details api {loc}{cur}/products{spgid}/{productKey}
Maybe I missed something ?
PS: https://jxdemoserver6.intershop.de/INTERSHOP/rest/WFS/inSPIRED-inTRONICS_Business-Site/rest;loc=en_US;cur=USD/products;spgid=FUOGrzQ_VjORpGaN8DRGmLLE0000/10666802?attrs=sku%2CinStock%2Cmanufacturer&view=default&imageView=front&imageType=2XS&allImages=false&basketId=3CwKDgAFvUgAAAF3PScz6KVy&invoiceToAddressId=QdasEQAFJKAAAAF3o89ZTnFf&shipToAddressId=QdasEQAFJKAAAAF3o89ZTnFf&shipFromAddressId=SX6sEQAFMaYAAAF33DhZTnFf&extended=false
This is an exemple of a request with a configured rest attribute group. And as you can see, nothing is displayed there
If the product details API does not work as expected, please create a support ticket to get this checked.