Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
It would be great to have a setting to change the ' I agree with the Terms of Service' text to something else, for example, ' I agree with the Terms and Conditions'.
Comment | File | Size | Author |
---|---|---|---|
#3 | Screenshot_190.png | 130.98 KB | ibuildit |
#3 | Screenshot_190.png | 130.98 KB | ibuildit |
Comments
Comment #1
glennnz CreditAttribution: glennnz commentedComment #2
howdytom CreditAttribution: howdytom as a volunteer commentedYes, totally agree. Did you already find a solution for that?
Comment #3
ibuildit CreditAttribution: ibuildit commentedI made a solution for it, unfortunately I can't make a patch right now, but I'll just drop it here and hopefully we can get it into the module at some point.
These changes uses the node title. See attached screenshots.
row 70-74 in commerce_extra_panes_termsofservice.module
$node = node_load($extra_pane->extra_id);
$checkboxtitle = 'I agree with the ' . $node->title;
$form[$pane_id]['termsofservice'] = array(
'#type' => 'checkbox',
'#title' => t($checkboxtitle),