Skip to main content

MixProductCard

All functionality for the product card Data: observer: null trackCounter: 0

Props

NameDescriptionTypeRequiredDefault
baseTagBase elemetn tagStringfalse-
productProduct dataObjecttrue-
pageNumberCurrent page numberNumberfalse-

Methods

MethodDescriptionParameters
productClickHandlerHandling product click-
addToCartClickAdd to cart if skuId is present, otherwise go to product-
gtmViewEventPushing GTM Product Impression-
nostoClickEventPushing GTM Nosto click event-
gtmClickEventPushing GTM Product Click-
getGtmProductGetting gtm product format-

Computed

ComputedTypeDescriptionFrom Store
nostoResultIdStringResultId of nosto product list requestNo
productPopulatedBooleanIs the product populated with dataNo
skuIdStringThe current skuId if only one, otherwise empty stringNo
chosenSkuCartQuantityNumberReturns the number of items with same skuId as the chosen one that you have in cartNo

MixIns

MixIn
MixAddToCart