By default, business hours settings are applicable only to the floating chat icon/button. To apply business hours settings for the WhatsApp icon/button added at a WooCommerce single product page and shop page, enable this option.
Navigate to ‘Click to Chat’ –> ‘WooCommerce‘ and enable ‘Apply Business hours settings‘ in advanced Settings
Note: The WooCommerce settings page displays only if the WooCommerce plugin is activated.
Example 1: To hide the WhatsApp when offline (i.e., non-business hours) on the WooCommerce shop, single product pages.
Step 1: Navigate to Click to Chat –> Business Hours – Offline/Online and select the business hours.
Step 2: Select Hide when offline to hide WhatsApp during non-business hours.
Step 3: Navigate to ‘Click to Chat’ –> ‘WooCommerce’ and scroll down to Apply Business Hours Settings. Enable “Apply Business hours settings” to apply business hours settings for the WhatsApp added at WooCommerce single product page, shop page
Example 2: Instead of hiding the WhatsApp button, we can add a separate Call to Action and WhatsApp number when offline (non-business hours) to WooCommerce Shop, single product pages.
Step 1: Navigate to ‘Click to Chat’ –> ‘Business Hours—Offline/Online’ and select the business hours.
Step 2: Uncheck Hide when Offline and enter the offline number and offline call to action. These values apply when offline (non-business hours).
Step 3: Navigate to Click to Chat –> WooCommerce and scroll down to Apply Business Hours Settings.
Now, the Call to Action and WhatsApp number added at WooCommerce Shop, single product pages change when offline.