Home > widget-integration > CartDrawerRecommendationController > getAddingButtonText
CartDrawerRecommendationController.getAddingButtonText() method
Get the button text displayed while adding a product to cart. Override this method to customize button text for localization or shop-specific messaging.
Signature:
protected getAddingButtonText(): string;
Returns:
string
Button text string shown during add-to-cart operation
Example
Override for French localization:
protected getAddingButtonText() {
return 'Ajout en cours...';
}