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
- Is it ok to use a function to output the text domain name in a wordpress theme
- How to show product SKU on product page
- Woocommerce add to simple product attribute programmatically [closed]
- In WooCommerce I need to modify the thankyou.php page [closed]
- Organize functions.php
- Overriding core functions in child theme
- Change parent theme file function in child themes functions.php
- Dequeue Scripts and Style for Mobile not working?
- Remove product description from product archive page
- display 100 products per page on product category page [closed]
- Displaying Widgets
- Adding WooCommerce to a Custom Theme – not working [closed]
- Can you use admin pages functionality on the frontend of your site
- Changing itemprop from logo to image on custom logo?
- Creating loop within functions.php
- 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]
- 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?
- 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]
- How to enable template page only for a post id page
- Add caption functionality to custom WordPress theme
- 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]
- How to display custom option field in woocommerce orders in admin panel?
- Best practices regarding the creation of custom widgets?
- WordPress menu link doesn’t work properly
- Search filter by Post title OR Meta Title Value [duplicate]
- Remove the product category module block from the Woocommerce product page
- admin-ajax.php + load-scripts.php hanging for minutes
- Unique sequential reservation code
- woocommerce change currency per category [closed]
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- 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)
- Some questions about how proper add 2 CSS file in a WordPress theme?
- Functions php shortcode for displaying main menu with no child items
- replace text in Sort Box
- add referrer to woo
- Create a Woocommerce product widget with category filter
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- WP Customizer API loaded into functions.php
- call_user_func_array() expects parameter 1 to be a valid callback, function
- why can’t i add front.css to my frontpage.php
- Adding product to WooCommerce cart [closed]
- Change WooCommerce add_to_cart Button Text?
- WooCommerce -> wc_enqueue_js not working [closed]
- Use existing image sizes for WooCommerce
- contact form in template with jquery,validate and ajax
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- How to hide content on mobile in the functions.php file – woocommerce
- Woocommerce Default sorting product by product type
- Exclude specific post from query
- Advanced method to control cache of enqueued style/script
- Change class woocommerce on function.php
- Hide ‘add to cart’ when certain value in dropdown is selected
- Remove text after a dot and a colon in Woocommerce product title
- Is_Page doesnt detect my page
- price of product can’t return when get data of product in functions.php
- Test CDN link from function.php or wp_enqueue_script/style?
- Woocommerce product price change
- Help with with my function for wordpress
- How to customize archive widget only for cpt?
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- Problems adding a new field to product in cart
- Why does echo on functions.php not yield result in source code?
- Variable function names
- Add meta data in head from theme
- what is `get_section()` and how to use it?
- Woocommerce – Switching Price for Category
- add product thumbnail to checkout page only and include variation name
- Echo a String Based On Geolocation? [Woocommerce || ACF]
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- Move product attributes after summary on single product page
- Which method is more correct for removing WooCommerce Extensions menu item?
- Insert menu into theme location depending on user logged in/out status
- wp_nav_walker that interacts with widgets to setup mega menu
- Allow tags and attributes in post and pages content
- add variable to actions/functions across different files (woocommerce)
- Why functions metaboxes is causing White Screen in Admin [closed]
- reusing code in function and running it with loop
- Getting error on function.php
- woocommerce_sort_product_tabs() expects an array
- Setcookie not setting cookies anywhere except admin
- Copy and Modified WooCommerce function is_coupon_valid [closed]