This code enables the storeowner to apply a custom out of stock message for specific products.
The code adds a text field for the product ids and a text area for your custom out of stock text.
In your WordPress Dashboard, go to WooCommerce > Settings > Custom OOS Text and enter a comma separated string of products ids and a custom out of stock message which is only displayed on these products.
Install the zip file as a new plugin or copy & paste the PHP code from the functions.php file to the end of your child themes functions file or custom functionality plugin.
You must be logged in to post a comment.