The only place I can see the cart trying to write anything to the OrderID column is in the store Cart Summary in Database screen. Are you saying that I should remove that line ... <?php echo $dtelecart->DisplayInfo("ID"); ?>
Yes, exactly.
In the store order summary behavior you should not be saving any value to the OrderID column which is the primary key column for that table. leave that column unbound.