is product an id or a hash of attributes?