Home > widget-integration > CartDrawerRecommendationController > getFailedButtonText
CartDrawerRecommendationController.getFailedButtonText() method
Get the button text displayed when adding a product to cart fails. Override this method to customize error button text for localization or shop-specific messaging.
Signature:
protected getFailedButtonText(): string;
Returns:
string
Button text string shown after failed add-to-cart attempt
Example
Override for German localization:
protected getFailedButtonText() {
return 'Fehler';
}