Product Teaser component is a server side component written in HTL, allowing to display product teasers on any AEM page linking to the product details. The product data is retrieved from Magento via GraphQL. The component is configured by an author via component dialog or drag & drop.
- Display product teaser including image, name & price
- Configurable product
- Support for product drag & drop
- Style System support.
The Product Teaser component uses the com.adobe.cq.commerce.core.components.models.productteaser.ProductTeaser
Sling model as its Use-object.
The following configuration properties are used:
./cq:DropTargetConfig
- controls the drag & drop behavior of group "product" items onto this component./enableAddToWishList
- enables/disables the add to wish list button, defaults to disabled
The following properties are written to JCR for this component and are expected to be available as Resource
properties:
./selection
- identifies the product to be displayed../cta
- defines the call to action of the product teaser, may one ofadd-to-card
,details
or empty../ctaText
- defines a text that overwrites the default call to action label../linkTarget
- defines the link target of the links generated for the component../id
- defines the component HTML ID attribute.
BLOCK item
ELEMENT item__root
ELEMENT item__images
ELEMENT item__image
ELEMENT item__name
ELEMENT price
ELEMENT productteaser__cta
ELEMENT button__root
BLOCK blank
ELEMENT blank-placeholder
- Vendor: Adobe
- Version: v1
- Compatibility: AEM as a Cloud Service / AEM 6.4 / 6.5
- Status: production-ready