Skip to content

VisibilityConfig

The VisibilityConfig object represents a product availability visibility configuration.

classDiagram
  direction LR
  class VisibilityConfig{
    bool isProductPageGalleryAndNameGrey
    bool isListsItemGrey
    bool isSearchResultsItemGrey
  }

Properties

Attribute name Type Description
isProductPageGalleryAndNameGrey bool When buying a product is impossible, it returns true if name and gallery of a product on product page must be greyed out.
isListsItemGrey bool When buying a product is impossible, it returns true if product tile must be greyed out on lists.
isSearchResultsItemGrey bool When buying a product is impossible, it returns true if product tile must be greyed out on search results.

Examples

isProductPageGalleryAndNameGrey property

{{ visibilityConfig.isProductPageGalleryAndNameGrey }}
true

isListsItemGrey property

{{ visibilityConfig.isListsItemGrey }}
false

isSearchResultsItemGrey property

{{ visibilityConfig.isSearchResultsItemGrey }}
true