Boost AI Search & Discovery Logo
  • Docs
  • Library
  • API Reference
Boost Website

Widget Integration (Client)

OverviewAppModuleAppServiceB2BModuleB2BServiceBackInStockAPIBackInStockConstantsBackInStockControllerBackInStockModuleBackInStockServiceCartAPICartControllerCartDrawerRecommendationConstantsCartDrawerRecommendationControllerCartDrawerRecommendationLifecycleCartDrawerRecommendationServiceCartModuleCartSelectorsCartServiceCombinedProductListingsAPICombinedProductListingsControllerCombinedProductListingsModuleCombinedProductListingsServiceCountdownTimerAPICountdownTimerControllerCountdownTimerModuleCountdownTimerAPICountdownTimerControllerCustomizationCompatibilityFilterAPIFilterControllerFilterFormatHelperFilterHandlerFilterHelperFilterModuleFilterRenderFilterSearchPageAPIFilterSearchPageControllerFilterSearchPageServiceFilterServiceFilterStorageHelperFilterStoreFilterTranslationServiceFilterUrlHelperFilterValidationHelperInstantSearchAPIInstantSearchControllerInstantSearchModuleInstantSearchSelectorsInstantSearchServicePlatformLoaderPlatformModulePositionServicePredictiveBundleAPIPredictiveBundleConstantsPredictiveBundleControllerPredictiveBundleModelPredictiveBundleModulePredictiveBundleServicePredictiveBundleStateServicePreOrderAPIPreOrderControllerPreOrderModulePreOrderServiceProductAPIProductControllerProductModelProductModuleProductServiceProductSwatchServiceQuickAddToCartControllerQuickViewControllerQuickViewModuleRecentlyViewedProductModuleRecentlyViewedProductServiceRecentSearchServiceRecommendationAnalyticRecommendationAPIBoostAPIRecommendationModelRecommendationModuleRecommendationServiceRecommendationWidgetControllerShopifyPlatformShopifyRouterStickyControllerStickyServiceTemplateAPITemplateModuleTierDiscountAPITierDiscountModelTierDiscountModuleTierDiscountServiceTierDiscountWidgetControllerVolumeBundleAPIVolumeBundleConstantsVolumeBundleControllerVolumeBundleEventServiceVolumeBundleModelVolumeBundleModuleVolumeBundleService
Library Reference›packages›

Home > widget-integration > ProductController

ProductController class

Signature:

export declare class ProductController extends Controller 

Extends: Controller

Constructors

Constructor

Modifiers

Description

(constructor)(appService, productService, swatchService, quickViewController, quickAddToCartController, dtoHelper)

Constructs a new instance of the ProductController class

Properties

Property

Modifiers

Type

Description

appService

protected

AppService

dtoHelper

protected

DTOHelper

productService

protected

ProductService

quickAddToCartController

protected

QuickAddToCartController

quickViewController

protected

QuickViewController

swatchService

protected

ProductSwatchService

Methods

Method

Modifiers

Description

detectBlockType(rootElement)

protected

getSwatchSettings()

protected

handleAddToCartClick(target)

handleClickOutside(target)

handleCloseQuickAddToCart(target)

handleProductItemClick(target)

handleQuickViewClick(productId, target)

handleSelectOptionClick(productId, target)

handleSwatchClick(target, productItem)

initLocaleUrls(rootElement)

initPriceTransformation(rootElement)

initProductItems(rootElement)

initSwatches(rootElement)

initTooltips(rootElement)

parseProductData(productItem)

protected

positionTooltip(tooltip, anchor)

protected

shouldShowQuickView()

protected

← Back to Library Reference

On this page

ProductController classConstructorsPropertiesMethods

TURBO Documentation

  • Getting Started
  • Architecture
  • Templates & Widgets
  • API Reference
  • Event Tracking API

Resources

  • Blog
  • TURBO Install Guide

Support

  • Help Center

Boost Commerce

  • Main Website
  • Status Page
© 2026 Boost Commerce. All rights reserved.