'PDP per product type
Is it possible to have few PDP's, so for example based on some Product attribute or Product type display different product details pages? If it's not possible OOTB, can somebody from spartacus team guide how it can be archived?
Solution 1:[1]
There are few options to achieve it:
- In Backoffice CMS you can configure different page template per product code (or category code). For example, in the sample data used by the the Spartacus demo site, there are configured 2 different page templates for 2 different PLP pages, based on the category code:
- Alternatively, you can provide a custom
PageLayoutHandlerin Spartacus to amend the page layout, based on additional informations from services, e.g. checking the product code from service or route. For reference, see the implementation of the OOTB CartPageLayoutHandler and how it's provided.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
