• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2966

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Checkout
  • Log in

Custom Out of Stock Text for Specific Product Ids

Custom Out of Stock Text Field for Specific Product Ids

$75.00

Demo Video
Category: WooCommerce Tags: array_map, get_option, in_array, intval, is_in_stock, woocommerce_get_availability, woocommerce_settings_tabs, woocommerce_settings_tabs_array, woocommerce_update_options
  • Description

This code enables the storeowner to apply a custom out of stock message for specific products.

Custom Out of Stock Text Field for Specific Product Ids

The code adds a text field for the product ids and a text area for your custom out of stock text.

Configuration

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.

Installation

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.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Code written by Brad Dalton specialist for Genesis & WooCommerce.

Advertise · WPEngine · Genesis · Log in

  • Code Snippets
  • Tutorials
  • Videos
  • Tags
  • Account
  • Checkout
  • Cart
  • Hire Me
  • Log in
 

Loading Comments...