Commerce

Перевод непереводимого в Commerce

Перевод "Order total"

/**
 * Implements hook_form_FORM_ID_alter().
 */
function CUSTOMMODULE_form_commerce_checkout_form_review_alter(&$form, &$form_state, $form_id) {
  if (isset($form['cart_contents'])) {
    $form['cart_contents']['cart_contents_view']['#markup'] = str_replace('Order total', t('Order total'), $form['cart_contents']['cart_contents_view']['#markup']);
  }
}

Перевод @count items

1.

Subscribe to Commerce