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

WP SITES

2786

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Checkout
  • Cart
  • Videos

Custom Out of Stock Text 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.

Primary Sidebar

Cart

Code written by Brad Dalton specialist for WooCommerce with more than 10 years of experience.

Advertise · WPEngine · Genesis · Log in

  • Code Snippets
  • Tutorials
  • Videos
  • Account
  • Checkout
  • Cart
 

Loading Comments...
 

You must be logged in to post a comment.