fixxed the shopping cart and added working add function in templates etc