Hi Cindy - many thanks for the modified code - works a treat!

I still find that when using guest checkout that it is logging me in, i.e. on the guest checkout success page as returned from PayPal it is showing 'log out' at the top of the page. Without logging out and then actually adding something else to the cart and then leaving the site with items still in the cart ... then when I return to the site the items are still in the cart.

So is this simply a cookie thing with the browser? ... or is the guest checkout inadvertently, or purposely, acting as if the user was logged in?

again many thanks,
Mike