Add products to smarty function