Merged Shopping cart code with CSRF code