Home > widget-integration > TierDiscountWidgetController
TierDiscountWidgetController class
Signature:
export declare class TierDiscountWidgetController extends Controller
Extends: Controller
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
(constructor)(appService, tierDiscountService, cartService, tierDiscountAPI, cartController) |
Constructs a new instance of the |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
NodeJS.Timeout | null | ||
|
|
string | ||
|
|
NodeJS.Timeout | null | ||
|
| |||
|
|
Map<string, Promise<any>> | ||
|
| |||
|
| |||
|
|
(variantId: string, quantity: number) => void | ||
|
Signal<{ loading: boolean; model: TierDiscountModel | null; }> | |||
|
|
() => Promise<void> | ||
|
| |||
|
| |||
|
|
(cart: any) => void |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
|
Hides the chevron SVG on the Add button for products that have only a single "Default Title" variant — clicking the button adds immediately without needing a dropdown, so the arrow indicator is misleading. | |
|
| ||
|
|
Navigates to a product URL with locale-aware path building. Matches the behaviour of handleClickTagAItemBuildUrlWithLocale used by the classic bundle. | |
|
| ||
|
| ||
|
| ||
|
| ||
|
|
Safely set HTML content to avoid XSS vulnerabilities | |
|
| ||
|
| ||
|
updateModalFooter(discountedTotal, originalTotal, hasDiscount) |
| |
|
updatePriceSummaryUI(totalQty, originalCents, totalCents, hasDiscount, items) |
|