shopping cart is empty when I programmically create order I create a order with below code

      global $user;
     $product_id = 860;
     $price=intval($form_state['values']['field_suggest_your_price']['und'][0]['value']);
     dsm($price);
     dsm($form_state['values']);
// Create the new order in checkout; you might also check first to
// see if your user already has an order to use instead of a new one.
       $order = commerce_order_new($user-&gt;uid, 'checkout_checkout');

// Save the order to get its ID.
        commerce_order_save($order);

// Load whatever product represents the item the customer will be
// paying for and create a line item for it.
        $product = commerce_product_load($product_id);
        $product-&gt;commerce_price["und"][0]["amount"]=$price;

        $line_item = commerce_product_line_item_new($product, 1, $order-&gt;order_id);
//// Save the line item to get its ID.
        commerce_line_item_save($line_item);
//// Add the line item to the order using fago's rockin' wrapper.
$order_wrapper = entity_metadata_wrapper('commerce_order', $order);
$order_wrapper-&gt;commerce_line_items[] = $line_item;
//// Save the order again to update its line item reference field.
commerce_order_save($order);
dsm($order);

//// Redirect to the order's checkout form. Obviously, if this were a
//// form submit handler, you'd just set $form_state['redirect'].
drupal_goto('checkout/' . $order-&gt;order_id);


but in checkout/orderid  shopping cart is empty, any body know where is my fault?
appreciate any urgency help
Here's an example on how to programmatically create an order and add a product to it, then redirect to checkout.

/**
 * Create new commerce_order with product
 * based on $_GET['pid'] from URL
 */
function MODULE_commerce_order_new(){

  global $user;

  // Sanitize just in case
  $product_id = filter_xss($_GET['pid']);

  // Load product
  $product = commerce_product_load((int)$product_id);

  if((empty($product-&gt;product_id)) || (!$product-&gt;status)){
    drupal_set_message(t('Invalid product id'));
    drupal_goto(); // frontpage
    return FALSE;
  }

  // Attempt to load existing order for user from session
  $order = commerce_cart_order_load();
  if(!$order){
    $order = commerce_cart_order_new($user-&gt;uid);
  }

  // Save new order to get order id
  if(empty($order-&gt;order_id)){
    $order-&gt;revision = FALSE;
    commerce_order_save($order);
  }
  $order_id = $order-&gt;order_id;

  // Wrapper for easy field access and adding line items, order passed by reference
  $order_wrapper = entity_metadata_wrapper('commerce_order', $order);
  // Create new line item based on selected product
  $line_item = commerce_product_line_item_new($product, 1, $order-&gt;order_id);
  // Save new line item to get line item id
  commerce_line_item_save($line_item);
  // Add line item to order wrapper
  $order_wrapper-&gt;commerce_line_items[] = $line_item;

  // Save order with new order number and line item added
  $order-&gt;revision = FALSE;
  $order_wrapper-&gt;save();

  if(!empty($order-&gt;order_id)){
    drupal_set_message(t('Thank you, your %product is ready for checkout.',
                         array('%product' =&gt; $product-&gt;title)));
    drupal_goto('checkout/'.$order-&gt;order_id);
  }else{
    drupal_set_message(t('Sorry, there was a problem building your order. Please try again later.'), 'error');
    drupal_goto(); // frontpage
  }

}