Home > widget-integration > CombinedProductListingsService

CombinedProductListingsService class

Signature:

export declare class CombinedProductListingsService 

Constructors

Constructor

Modifiers

Description

(constructor)(appService, combinedProductListingsAPI, preOrderAPI)

Constructs a new instance of the CombinedProductListingsService class

Methods

Method

Modifiers

Description

fetchProductData(productId)

Fetch combined listing product data (parent and children) from the API.

fetchQuickViewTemplate(params)

getCombinedListingsConfig()

getProductById(productId)

getVariantByIdFromProduct(productId, variantId)

initCombinedListingCTAButtons(container, selectOptionsLabel)

Initialize CTA buttons (e.g. "Select options") for combined listing products, by adding necessary metadata and updating the label for screen readers.

isEnabled()

isLikelyCombinedListingProduct(product)