Home > widget-integration > CartDrawerRecommendationController > getDefaultAddButtonText

CartDrawerRecommendationController.getDefaultAddButtonText() method

Get the default button text for the Add to Cart button. Override this method to customize default button text for localization or shop-specific messaging.

Signature:

protected getDefaultAddButtonText(): string;

Returns:

string

Default button text string

Example

Override for Italian localization:

protected getDefaultAddButtonText() {
  return 'Aggiungi';
}