We are currently implementing a custom checkout process that doesn't use the cart. So we initiate the checkout process by visiting checkout/%commerce_order, rather than the cart working it out.

However, the following code hardcodes a link with the cart submodule.

commerce_checkout_progress.module Line 153

  // Option to display back pages as links.
  if ($link) {
    // Load the *shopping cart* order. It gets deleted on last page.
    if ($order = commerce_cart_order_load($GLOBALS['user']->uid)) {
      $order_id = $order->order_id;

I think it should be reasonably easy to work it out, I'll create a possible patch.

Members fund testing for the Drupal project. Drupal Association Learn more


andrewbelcher’s picture

So this checks whether we're on a checkout/%commerce_order page and if so get's the order_id from the path rather than from cart. It also checks whether cart is enabled before calling the cart function.

andrewbelcher’s picture

Issue summary: View changes
Status: Needs review » Closed (duplicate)