To temporarily close your shop, follow the steps below.
After making the changes, click the UPDATE SETTINGS button at the bottom of the page to save the changes.

You can configure this setting from: Dashboard → Settings → Store

Scroll down the page halfway to find GO TO VACATION check box.