- Issue created by @andyd328
- 🇷🇸Serbia majmunbog
I can create a custom hook
belgrade_button_classes
that we could use to override the button classes like this:/** * Implements hook_belgrade_button_classes_alter(). */ function YOUR_MODULE_NAME_belgrade_button_classes_alter(&$button_classes, $string, $variables) { if ($string === t('Add to cart')->render()) { $button_classes = [ 'btn', 'btn-primary', 'bi-btn-basket' ]; } }
- Merge request !32Issue #3496129: Modifying 'Add to cart' button text → (Merged) created by majmunbog
- Status changed to Needs review
about 1 month ago 1:45pm 5 August 2025 - First commit to issue fork.
-
majmunbog →
committed 2e493b43 on 2.x
Issue #3496129: Support alternative Add to Cart button text for custom...
-
majmunbog →
committed 2e493b43 on 2.x
Automatically closed - issue fixed for 2 weeks with no activity.