Ubercart with Panels
You can use the Context module to conditionally show blocks in certain regions.

So, in your case, you can create a context that is activated on the /cart and /cart/checkout paths, and add the minipanels blocks that you want to the header and footer.