Skip to main content

Product Result

Product Result Component

Shows compatibility for a single product.

Designed to be used on a product's page.

Component Details

<bikematrix-productresult
data-sku="PRODUCT_SKU"
data-padding-top="Number of Pixels"
data-padding-bottom="Number of Pixels"
>
</bikematrix-productresult>

Attributes

AttributeDefaultRequiredDescriptionExample
data-sku""YesA SKU to check compatibility with. A '*' can be passed in to indicate a 'Blacklisted' product, where no compatibility status will be shown."123456890"
data-padding-top"0"NoPadding above the element in number of pixels."10"
data-padding-bottom"0"NoPadding below the element in number of pixels."10"

Example

<bikematrix-productresult
data-sku="1234567890"
data-padding-top="10"
data-padding-bottom="10"
>
</bikematrix-productresult>

Configuration

A more detailed overview of configuration can be found in the Configuration section.

These options are to be set on a per web page basis:

OptionTypeRequiredDescriptionExample
productCollectionsstring[]YesList of collections the product belongs to. Each value of the list should match a handle in the collections.["brake-pads","brake-rotors"]