Skip to main content

MixProductPage

All functionality for the product page

Methods

MethodDescriptionParameters
emitGTMEventGTM event emitter-
onQuantityChangeHandler for changing quantityvalue (Number)
addToCartClickAction for clicking the add to cart button-
replaceProductReplace product data without reloading the page. Used for changing between product variantsalias (String)
sizeChangeHandlerHandler for changing the skudata (Object)
quantityThresholdHandlerHandler for reaching quantity threshold-
switchToCanonicalSwitching to canonical url if different from route path-

Computed

ComputedTypeDescriptionFrom Store
productImagesArrayQuick ref to product imagesNo
prodAliasStringAlias used to fetch product data, using replaceAlias if it has a valueNo
widgetAreaFiltersArrayReturns array of widget filtersNo
breadcrumbsCurrentObjectCurrent breadcrumb objectNo
relatedProductsRelatedArrayRelated product with relation RELATEDNo
relatedProductsAccessoriesArrayRelated product with relation ACCESSORIESNo
relatedProductsSimilarArrayRelated product with relation SIMILARNo
imgSrc[String, Boolean]Image src used for meta imageNo

MixIns

MixIn
MixMetaReplacement
MixApolloRefetch

Watch

NameDescriptionParameters
undefinedWatching currentStock.totalStock to change quantity if set higher than totalStock-
prodAliasWatching prodAlias to fetch request when alias state change-