Created by Michael Visser 2017-07-22 View revision File functions.php Added Side-by-side diff More Ignore whitespace Hide word diff +<?php + +// Prevents Checkout and displays a notice to customers +function custom_woocommerce_prevent_checkout() { + + $message = 'Checkout is locked until 00:01 when the big sale begins.'; + wc_add_notice( $message, 'error' ); + +} +add_action( 'woocommerce_check_cart_items', 'custom_woocommerce_prevent_checkout' ); + +?>