Skip to content
vviinn DocsDocs Beta

Product List (vviinn-results)

Generated from vviinn-widgets 2.228.0, the latest release when these docs were built. If you pin an older version, some of these may not be in it yet — check the Changelog.

Try the properties live in the Playground.

Set them as HTML attributes.

add-price-container

Wrap the Product Card's price values in the container.

Type: boolean · Default: false

add-to-basket-show

Show or hide Add to Basket buttons

Type: boolean · Default: false

api-path

API endpoint URL (optional, defaults to production)

Type: string

Campaign ID used for Text Search

Type: string · Default: ""

Campaign ID used for Visual Search

Type: string · Default: ""

css-url

URL to external CSS file for custom styling

Type: string · Default: null

currency-sign

The currency sign is displayed after the price

Type: string

favorite-show

Show or hide Favorite button

Type: boolean · Default: false

filter-column

Column for performing Product Listing Page request

Type: string · Default: "product_type"

filter-value

Value for performing Product Listing Page request

Type: string

image-resolution-width

Resolution width of an image in the product card

Type: number · Default: RESULTS_WIDGET_IMAGE_RESOLUTION_WIDTH

locale

Locale for text localization

Type: Locale

number-locale

Locale for number formatting. Falls back to locale

Type: string

one-click-discovery-campaigns

Comma-separated list of campaign IDs

Type: string · Default: ""

one-click-discovery-mode

One-Click Discovery Mode

Type: "append-grid" | "append-slider" | "modal" | "unset" · Default: "append-grid"

price-prefix

Prefix is displayed before the price

Type: string

product-details-new-tab

Toggle for opening product link in new tab or not

Type: boolean · Default: false

product-details-redirect

Toggle for redirection to PDP on product's click

Type: boolean · Default: true

results-count

Number of results displayed for text search and product listing page (less or equal to the value, set in the campaign)

Type: number

results-page-params

Custom URL param names parsed from results page URL. Default: "query=query&searchId=searchId".

Type: string

results-page-url

URL of the results page. When set, the component parses URL parameters (query, searchId) on load.

Type: string

search-id

Search ID for results request

Type: string

show-multiple-images

Show multiple images: swiper on mobile, hover on desktop in product cards

Type: boolean · Default: false

text-search-query

Query to perform a text search. It is recommended to use the search-query prop for vviinn-text-search instead, when using the Search Bar on the same page.

Type: string

token

Vviinn customer's token (required)

Type: string

Listen with document.addEventListener(). The pages under Events describe the data each event carries.

EventDescription
vviinnNoResultTriggered when a text search request fails
vviinnProductClickClick on the product's link
vviinnProductLoadRecommended product renders on the page
vviinnProductViewRecommended product appears in the viewport
vviinnResultLoadThe search result renders on the page
vviinnResultViewThe search result appears in the viewport

Replace texts and icons with your own content: Replace Widget Content.

SlotDescription
vviinn-basket-button-iconText of Add to Basket icon.
vviinn-basket-button-icon-pressedIcon of pressed Add to Basket button.
vviinn-basket-button-textText of Add to Basket button.
vviinn-basket-button-text-pressedText of pressed Add to Basket button.
vviinn-custom-label-0Custom label with index 0.
vviinn-custom-label-1Custom label with index 1.
vviinn-custom-label-2Custom label with index 2.
vviinn-custom-label-3Custom label with index 3.
vviinn-custom-label-4Custom label with index 4.
vviinn-favorite-iconIcon of Favorite button.
vviinn-favorite-icon-pressedIcon of pressed Favorite button.
vviinn-image-placeholder-iconIcon or content for the image placeholder.
vviinn-results-vpr-iconOne-Click Discovery icon.

Style these elements with vviinn-results::part(name): Styling Specific Elements.

PartDescription
basket-buttonAdd to Basket button.
basket-button-containerProduct Card's basket button container.
brandBrand inside Product Card.
content-cardContent card container (for entity-type="content").
content-card-content-containerContent card's content container.
content-card-imageContent card's image element.
content-card-image-containerContent card's image container.
content-card-image-pictureContent card's image picture element.
content-containerProduct Card's content container.
content-labelContent card's label.
content-linkContent card's link.
content-titleContent card's title.
currencyCurrency related to price.
custom-label-0Custom label with index 0.
custom-label-1Custom label with index 1.
custom-label-2Custom label with index 2.
custom-label-3Custom label with index 3.
custom-label-4Custom label with index 4.
deeplinkAnchor element around product title. Rendered only if "deeplink" property is filled.
energy-label-containerEnergy label container.
energy-label-data-sheet-linkData sheet link.
energy-label-iconIcon with an energy class.
energy-label-product-typeProduct type.
favorite-buttonFavorite button.
imageProduct Card image.
image-containerProduct Card's image container.
image-linkAnchor element around product image. Rendered only if "deeplink" property is filled.
image-picturePicture element for image.
image-placeholderPlaceholder shown when no image is available.
list-cardList card container (for entity-type="list").
list-card-content-containerList card's content container.
list-card-imageList card's image element.
list-card-image-containerList card's image container.
list-card-image-pictureList card's image picture element.
list-labelList card's label (e.g., "Category").
list-titleList card's title.
price-amount-base-outdatedNumeric part of the base price.
price-amount-base-regularNumeric part of the base price.
price-amount-base-saleNumeric part of the base price.
price-amount-outdatedNumeric part of the price.
price-amount-regularNumeric part of the price.
price-amount-saleNumeric part of the price.
price-outdatedBlock for outdated price. Rendered when the product contains the sale price.
price-prefixBlock rendered before each price element (for ex. "from").
price-regularBlock for a price if no sale price is presented.
price-saleBlock for sale price. Rendered only if the sale price is presented.
product-cardProduct Card itself.
product-card-actionsProduct Card actions wrapper.
product-card-actions-topProduct Card top actions wrapper.
product-images-paginationContainer for product images pagination dots (mobile only).
product-images-pagination-bulletIndividual pagination dot.
product-images-pagination-bullet-activeActive pagination dot.
product-typeProduct Type inside Product Card.
productsProducts container.
titleTitle inside Product Card.

Set them on vviinn-results or a parent element: CSS Variables.

PropertyDescription
--basket-button-bg-color-pressedThe background color of the pressed Basket Button.
--font-familyThe font family of the widget.
--product-card-content-alignThe alignment of the content inside the product card's flex container.
--product-card-image-aspect-ratioThe aspect ratio of the product card image (e.g., "1 / 1", "3 / 4").
--product-card-image-bg-colorThe background color of the product card image.
--product-card-image-borderThe border of the product card image.
--product-card-text-alignThe alignment of the text inside the product card.
--product-card-widthMinimum width of product card inside the grid.
--vviinn-results-row-gapVertical gap between rows of product cards.