Initial attempt at fixing bug where cart and session data was not cleared at the end of a transaction.