Home > widget-integration > TierDiscountWidgetController > hideArrowForSingleDefaultVariants
TierDiscountWidgetController.hideArrowForSingleDefaultVariants() method
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.
Signature:
protected hideArrowForSingleDefaultVariants(container: HTMLElement): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
container |
HTMLElement |
Root element containing all tier-discount product rows. |
Returns:
void