Hello,

May i kindly ask you to make this line editable - "I agree with the Terms of Service"?

Comments

silypointer’s picture

Hi Arman,

You can implement hook_form_alter and update title as per your requirement. See the sample code below:

<?php
function MODULE_NAME_form_alter(&$form, &$form_state, $form_id) {
  switch ($form_id) {
    case 'commerce_checkout_form_checkout':
      $form['extra_pane__node__NID']['termsofservice']['#title'] = t('I accept the !link', array('!link' => l(t('Terms & Conditions'), 'node/NID')));
      break;
  }
}
?>
spatical’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new5.61 KB

I would like to suggest making the "I agree with the Terms of Service" and the validation error message both easily configured within the settings for the pane. I've attached a patch that creates new pane settings for those two fields.

Also I kept the actual link text configurable by using the title of the referenced entity.

anybody’s picture

Yes, it's an important point, I agree.

As an alternative you could allow to use the title of the linked node as title... "I agree with the %title of node%"

pvdjay’s picture

This looks to be a duplicate of https://drupal.org/node/1714236

pvdjay’s picture

Status: Needs review » Closed (duplicate)
fugazi’s picture

StatusFileSize
new19.53 KB
new15.56 KB

@spatical you can add the information for required field, see screenshot.

fugazi’s picture

Status: Closed (duplicate) » Needs review
fugazi’s picture

Status: Needs review » Needs work
fugazi’s picture

Status: Needs work » Closed (duplicate)
fugazi’s picture

StatusFileSize
new906 bytes
fugazi’s picture

Status: Closed (duplicate) » Needs review
fugazi’s picture

Status: Needs review » Closed (duplicate)
fugazi’s picture

I solve for me the error in duplicate https://www.drupal.org/node/1714236#comment-8906989. Sorry for all the commentaries.