Thanks for pointing me in the right direction. The order was OK but I had a clash of requests. The best way around it is to create a new template, pop the quick cart into it, delete the php code at the top and pop it back in on the individual pages where needed (eg not the cart page as it's there already).