title: Time based Enable/Disable Add to Cart in Woocommerce
body: <p>I would like my online shop to be deactivated or activated for a certain period of time. When the shop is deactivated, you can see the products, but can't put them in the shopping cart. If you already have things in your shopping cart, you can't checkout and pay. Despite all this, you can see the products, but you can't buy them.</p>
  
  <p>Shop time would be as follows:</p>
  
  <ul>
  <li>Online: Monday to Sunday from 12 am to 22 pm</li>
  <li>Offline: the remaining time is to be deactivated</li>
  </ul>
  
  <p>Is that possible?</p>
  
  <p>I've already found a thread <a href="https://stackoverflow.com/questions/50137386/time-based-enable-disable-woocommerce-add-to-cart-functionality">here</a>, but it doesn't explain exactly how to do all the customizing.</p>
  
  <p>I hope you can help me.</p>