<?php echo session_id("slpecart_OrderID"); ?>
is setting the value of the session ID to "slpecart_OrderID"
I think what you should be using for the order number for the order details is:
<?php echo $_SESSION['slpecart_OrderID']; ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.