Home > widget-integration > CartController > getButtonTextSelectors

CartController.getButtonTextSelectors() method

Get button text selectors for cart buttons Override to use different selectors for custom themes

Signature:

protected getButtonTextSelectors(): string[];

Returns:

string[]

Array of CSS selectors

Example

// Add custom theme button selector
protected getButtonTextSelectors(): string[] {
  return [...super.getButtonTextSelectors(), '.custom-theme-btn'];
}