add web buy  function