Can one make a purchase online erev Shabbos (or Yom Tov) if it will likely be processed on shabbos (or Yom Tov) and will be delivered on Sunday? (or on Chol Homoed or after Yom Tov?) meaning placing orders within hours to Shabbos or Yom Tov.
like with walmart or amazon
Please see the following post where a very similar question was discussed.