Try something like this
global $product;
if ( ! $product->managing_stock() && ! $product->is_in_stock() )
echo '<p>This product is out of stock. It can be purchased by custom made order.</p>';
Related Posts:
- how can I edit flexslider in woocommerce. [Urgent]
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How to display custom field in woocommerce orders in admin panel?
- Issues with title-tag and document_title_parts
- How to create a custom order status in woocommerce!
- Is it ok to use a function to output the text domain name in a wordpress theme
- Display random categories on the front page (Finding and Editing Theme Functions)
- How to show product SKU on product page
- Woocommerce add to simple product attribute programmatically [closed]
- TinyMCE custom styles remove class when switching styles
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- Apply jquery script to only woocommerce product pages and categories
- In WooCommerce I need to modify the thankyou.php page [closed]
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- How can I add an extra WooCommerce hook
- Return only top-level navigation items from a menu using wp_get_nav_menu_items
- Organize functions.php
- How to override functions.php in child theme?
- Overriding core functions in child theme
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- Change parent theme file function in child themes functions.php
- How to Acheive the custom woocommerce category template
- Add inline css to theme
- Dequeue Scripts and Style for Mobile not working?
- Remove product description from product archive page
- Hide some items from Screen options in dashboard for products
- display 100 products per page on product category page [closed]
- Displaying Widgets
- Adding WooCommerce to a Custom Theme – not working [closed]
- Issue adding text after short description on product pages Woocommerce [closed]
- Dequeue script in template isn’t working
- Exclude Empty Child Categories in Menu
- Can you use admin pages functionality on the frontend of your site
- change billing and shipping address 1 and 2 field placeholders [closed]
- Add external js file to footer with id
- Changing itemprop from logo to image on custom logo?
- Creating loop within functions.php
- How to add background image control to page admin controls?
- Override woocommerce wc-class function
- Best Practice for Syncing Local Development With Staging Development [closed]
- Display WooCommerce subscriptions for user [closed]
- Increment price for Woocommerce Minicart [closed]
- Change woocommerce products weight varation based its product category or tags? [closed]
- woocommerce target button with class after ajax update
- Overwrite Parent Theme add_image_size in Child Theme
- Show excerpt for only first post in query
- How to add css class to image attached in all the posts?
- WordPress function for 1 to for many
- How to call custom function from functions.php in site-wide template files?
- How to use thumbnails in gallery?
- Logic to Print/echo a css class only for 1st post and ignore all post after 1st? [closed]
- My Own layout in WooCommerce pages [closed]
- Pass parameters to function through an action
- Is there a way to add a class to non current menu item?
- Woocommerce checkout field maxlength, make input number field only (postcode)
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- change in form-checkout.php by using code in functions.php
- How to use Internationalized human_time_diff() function in Chinese?
- Set quantity of woocommerce product on page visit [closed]
- is_dynamic_sidebar always returns true while using Jetpack visibility
- How to enable template page only for a post id page
- Product Tags in Add New product as checkbox list [closed]
- Calling a function from anywhere, used in different places
- Selective Product Category for Carousel
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- I want to get product attirbute in the section below
- Add caption functionality to custom WordPress theme
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Override a theme function in a child theme?
- Pulling Twitter RSS feed not working as expected (fatal error)
- How can I remove the main description text box in a Woocommerce product editor page? I only use the “Product short description” text box [closed]
- Use register_setting() in a loop
- Load Woocommerce and WordPress Functions Outside
- How to display custom option field in woocommerce orders in admin panel?
- Best practices regarding the creation of custom widgets?
- How to add a slide toggle to the Woocommerce-Layout__Activity-Panel area in the orders admin page
- Add to cart php not working [closed]
- Add dynamic links in WordPress custom theme
- WordPress menu link doesn’t work properly
- Search filter by Post title OR Meta Title Value [duplicate]
- How to auto refresh when user change postcode
- When sale price is 0.00 show only regular price
- Remove the product category module block from the Woocommerce product page
- admin-ajax.php + load-scripts.php hanging for minutes
- enqueue styles for only mobile wp
- Jquery implementation not working on page reload
- Unique sequential reservation code
- woocommerce change currency per category [closed]
- Usage of theme name in functions
- Functions.php Problem
- Redirect to another page using contact form 7? [closed]
- ACF not showing
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- help I changed one currency in woocommerce and everything is ruined [closed]
- Functions when woocommerce isn’t installed
- How to override woocommerce.css?
- How can I use Woocommerce $product->get_attribute in functions.php? (if at all)
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- Control the srcset much more (not all sizes in it each time)
- Check if the image size is available and if not use ‘full’ image size