Added csrf cookie sending to shop view so that AJAX works properly.