in Web & Tech

Override the Drupal Commerce Checkout Button

In your theme’s template.php:

function MYTHEME_form_alter(&$form, &$form_state, $form_id) {
  switch ($form_id){
    case 'views_form_commerce_cart_form_default':
      $form['actions']['checkout']['#value'] = 'Buy / Kaufen';
      break;
  }
}

Write a Comment

Comment