function publish product
function publish product