MixProductCard
All functionality for the product card Data: observer: null
trackCounter: 0
Props
Name | Description | Type | Required | Default |
---|
baseTag | Base elemetn tag | String | false | - |
product | Product data | Object | true | - |
pageNumber | Current page number | Number | false | - |
Methods
Method | Description | Parameters |
---|
productClickHandler | Handling product click | - |
addToCartClick | Add to cart if skuId is present, otherwise go to product | - |
gtmViewEvent | Pushing GTM Product Impression | - |
nostoClickEvent | Pushing GTM Nosto click event | - |
gtmClickEvent | Pushing GTM Product Click | - |
getGtmProduct | Getting gtm product format | - |
Computed
Computed | Type | Description | From Store |
---|
nostoResultId | String | ResultId of nosto product list request | No |
productPopulated | Boolean | Is the product populated with data | No |
skuId | String | The current skuId if only one, otherwise empty string | No |
chosenSkuCartQuantity | Number | Returns the number of items with same skuId as the chosen one that you have in cart | No |
MixIns