Experimental project

This is a sandbox project, which contains experimental code for developer use only.

index 73b82c6..1695847 100644 (file)
--- a/modules/checkout/includes/commerce_checkout.pages.inc
+++ b/modules/checkout/includes/commerce_checkout.pages.inc
@@ -182,6 +182,8 @@ function commerce_checkout_form($form, &$form_state, $order, $checkout_page) {
// submit handlers because we're using hook_forms() to use this form builder
// function and to avoid issues if other modules implement button level submit
// handlers on these or custom checkout buttons.
+ $button_operator = '' . t('or') . '';
+
if (!$checkout_page['prev_page'] && !empty($checkout_page['back_value'])) {
// Add an empty "Back" button value to avoid submission errors.
$form['buttons']['back'] = array(
@@ -198,7 +200,7 @@ function commerce_checkout_form($form, &$form_state, $order, $checkout_page) {
'#attributes' => array('class' => array('checkout-cancel')),
'#submit' => array('commerce_checkout_form_cancel_submit'),
'#limit_validation_errors' => array(),
- '#prefix' => t('or'),
+ '#prefix' => $button_operator,
);
}
elseif ($checkout_page['prev_page'] && !empty($checkout_page['back_value'])) {
@@ -208,7 +210,7 @@ function commerce_checkout_form($form, &$form_state, $order, $checkout_page) {
'#attributes' => array('class' => array('checkout-back')),
'#submit' => array('commerce_checkout_form_back_submit'),
'#limit_validation_errors' => array(),
- '#prefix' => t('or'),
+ '#prefix' => $button_operator,
);
}
}

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Obsolete
    Use of this project is deprecated.
  • Created by sachin00700 on , updated