Commerce checkout button text
Categories
Component ID
1615410
Component name
Commerce checkout button text
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Change the displayed text of the button which takes the user to the payment process.
In some cases the standard text needs to be customised e.g. to comply with legal regulations. This module allows you to change the text to whatever you need. For Germany, this is needed to comply with the "Button Lösung" regulation.
The module has no UI. After the usual install, go to commerce_checkout_button_text.module and type in your button text. In this example below the button shows "Buy & submit payment" and is translated to "Kaufen" (see screenshot).
function commerce_checkout_button_text_commerce_checkout_page_info_alter(&$pages) {
if(!empty($pages['review'])) {
$pages['review']['submit_value'] = t('Buy & submit payment');
}
}
