error alert in case of undefined cartid