Hide product variants depending on the cut off date?

trisdean
Tourist
4 0 1

My client offers online workshops. The workshop is held once a week only (Friday). But my client requires a certain cutoff during the week to accept orders. I plan to do the dates as product variants.

Let's say, the event is always on a Friday. They would want users to be able to order a slot latest Tuesday prior to the event (That's at least 3 days before the date of the workshop). If they order during a Wednesday, they will not be able to select the nearest Friday but instead, they can book for next week Friday. Is there an app that can hide variants depending on the cut off dates? Or if anyone could suggest another way of achieving this?

 

Please let me know. Thank you so much!