to fix the errors not getting product id from cookie (cont)