Projet

Général

Profil

Révision b858700c

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/commerce/modules/checkout/includes/commerce_checkout.pages.inc
39 39
    }
40 40
  }
41 41

  
42
  // If there are no line items on the order, redirect away.
43
  $wrapper = entity_metadata_wrapper('commerce_order', $order);
44

  
45
  if (commerce_line_items_quantity($wrapper->commerce_line_items, commerce_product_line_item_types()) == 0) {
42
  // Ensure the order can proceed to checkout; if not, redirect away.
43
  if (!commerce_checkout_order_can_checkout($order)) {
46 44
    drupal_goto('<front>');
47 45
  }
48 46

  
......
231 229
 * are happy, we move on to the next page.
232 230
 */
233 231
function commerce_checkout_form_validate($form, &$form_state) {
234
  global $user;
235

  
236 232
  $checkout_page = $form_state['checkout_page'];
237 233

  
238 234
  // Load a fresh copy of the order stored in the form.

Formats disponibles : Unified diff