commerce_cart_order_load not working for anonymous user in drupal commerce
Every thing is ok,I had the same problem after spend a half night I found that sometimes drupal dont start session for anonymous users then you should start it manually if begin of your function

   drupal_session_start();