Sana Assistant (online)
Table of Contents

ProductSearchVisualComponentImages reference

This article provides reference material about ProductSearchVisualComponentImages record.

ProductSearchVisualComponentImages

Properties

Primary

The primary image URL of the visual component.

Can be left empty. The built-in storefront uses the primary image in grid view.

Horizontal

The horizontal image URL of the visual component.

Can be left empty. The built-in storefront uses the horizontal image in list view and does not fall back to the primary image.

Provide both image URLs to support both layouts.

Example:

var images = new ProductSearchVisualComponentImages(
    Primary: "https://example.com/banner-primary.jpg",
    Horizontal: "https://example.com/banner-horizontal.jpg");

See also