Use smarty specific function here : 
{product attr="id"}