{"id":418997,"date":"2026-12-02T09:49:52","date_gmt":"2026-12-02T09:49:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/custom-availability-messages-for-woocommerce\/"},"modified":"2026-12-02T09:49:32","modified_gmt":"2026-12-02T09:49:32","slug":"custom-availability-messages-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/custom-availability-messages-for-woocommerce\/","author":14162121,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"7.0","requires_php":"8.3","requires_plugins":null,"header_name":"Custom Availability Messages for WooCommerce","header_author":"Piotr Pesta","header_description":"Customize WooCommerce availability messages and optional dispatch lead times.","last_updated":"2026-12-02 09:49:32","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/piotr-pesta\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":35,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"Piotr Pesta","date":"2026-12-02 09:49:32","revision":3839587}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3839587,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3839587,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3839587,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3839587,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3839587,"resolution":"1","location":"assets","locale":"","width":1208,"height":1185},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3839587,"resolution":"2","location":"assets","locale":"","width":449,"height":964},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3839587,"resolution":"3","location":"assets","locale":"","width":970,"height":1823},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3839587,"resolution":"4","location":"assets","locale":"","width":1280,"height":1261},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3839587,"resolution":"5","location":"assets","locale":"","width":820,"height":1571},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3839587,"resolution":"6","location":"assets","locale":"","width":417,"height":342},"screenshot-7.png":{"filename":"screenshot-7.png","revision":3839587,"resolution":"7","location":"assets","locale":"","width":1298,"height":501},"screenshot-8.png":{"filename":"screenshot-8.png","revision":3839587,"resolution":"8","location":"assets","locale":"","width":602,"height":342},"screenshot-9.png":{"filename":"screenshot-9.png","revision":3839587,"resolution":"9","location":"assets","locale":"","width":602,"height":342}},"screenshots":{"1":"Getting started and configured message previews among the four stock states under WooCommerce &gt; Settings &gt; Products &gt; Availability messages.","2":"Token replacement and the live preview for a saved message using the short calendar-day label.","3":"Availability rules and category priority in the product category editor.","4":"Availability messages under Product data &gt; Inventory for an individual product.","5":"Availability messages for an individual variation under Product data &gt; Variations.","6":"A dispatch message on the public product page.","7":"The Settings link on the Installed Plugins screen.","8":"The in-stock dispatch message when a shopper selects one unit.","9":"The backorder message when the shopper selects more than the stocked quantity."}},"plugin_section":[],"plugin_tags":[133531,297106,155129,178469,286],"plugin_category":[45],"plugin_contributors":[85542],"plugin_business_model":[],"class_list":["post-418997","plugin","type-plugin","status-publish","hentry","plugin_tags-backorders","plugin_tags-lead-time","plugin_tags-product-availability","plugin_tags-stock-status","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-piotr-pesta","plugin_committers-piotr-pesta"],"banners":{"banner":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/banner-772x250.png?rev=3839587","banner_2x":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/banner-1544x500.png?rev=3839587","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/icon-128x128.png?rev=3839587","icon_2x":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/icon-256x256.png?rev=3839587","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-1.png?rev=3839587","caption":"Getting started and configured message previews among the four stock states under WooCommerce &gt; Settings &gt; Products &gt; Availability messages."},{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-2.png?rev=3839587","caption":"Token replacement and the live preview for a saved message using the short calendar-day label."},{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-3.png?rev=3839587","caption":"Availability rules and category priority in the product category editor."},{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-4.png?rev=3839587","caption":"Availability messages under Product data &gt; Inventory for an individual product."},{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-5.png?rev=3839587","caption":"Availability messages for an individual variation under Product data &gt; Variations."},{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-6.png?rev=3839587","caption":"A dispatch message on the public product page."},{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-7.png?rev=3839587","caption":"The Settings link on the Installed Plugins screen."},{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-8.png?rev=3839587","caption":"The in-stock dispatch message when a shopper selects one unit."},{"src":"https:\/\/ps.w.org\/custom-availability-messages-for-woocommerce\/assets\/screenshot-9.png?rev=3839587","caption":"The backorder message when the shopper selects more than the stocked quantity."}],"raw_content":"<!--section=description-->\n<p>Give shoppers clearer product availability messages and tell them when an order is expected to ship. Set store-wide defaults and override them for a category, product or variation. Edit each stock state separately and see the result in the live preview before saving.<\/p>\n\n<h4>Stock messages for each product<\/h4>\n\n<ul>\n<li>Write custom stock messages for <strong>In stock<\/strong>, <strong>Low stock<\/strong>, <strong>On backorder<\/strong> and <strong>Out of stock<\/strong>.<\/li>\n<li>Set an optional text color, hide the message, or inherit it from another scope.<\/li>\n<li>Use the translated placeholder as a suggestion, or choose <strong>Use example<\/strong> to insert editable text.<\/li>\n<li>Use category priorities to decide which category supplies a rule when several apply.<\/li>\n<\/ul>\n\n<h4>Dispatch lead times<\/h4>\n\n<ul>\n<li>Set a single value or a range in hours, calendar days or business days, with separate rules per stock state.<\/li>\n<li>Insert <code>{lead_time}<\/code> to display the effective value in a stock message. A message using the token updates when its inherited lead time changes.<\/li>\n<li>Display calendar days as <strong>days<\/strong> or <strong>calendar days<\/strong>. The wording can follow its own inheritance rule while the underlying dispatch time stays the same.<\/li>\n<li>Add an optional message for products without a configured lead time.<\/li>\n<li>On supported single-product forms, show the backorder message when the selected quantity exceeds tracked stock and WooCommerce allows backorders.<\/li>\n<\/ul>\n\n<p>Dispatch lead time is the time until a product is shipped. Delivery time also includes the carrier's transit time after dispatch.<\/p>\n\n<h4>Examples<\/h4>\n\n<ul>\n<li><strong>Ships in 24 hours<\/strong> for items in your warehouse.<\/li>\n<li><strong>Only a few left in stock<\/strong> when a product reaches WooCommerce's low-stock threshold.<\/li>\n<li><strong>Available to order \u2014 ships in 7\u201314 days<\/strong> for backordered products.<\/li>\n<li>Give a made-to-order category its own dispatch range, then set a separate value for a product that takes longer to prepare.<\/li>\n<li>Update a category's lead time once to refresh messages wherever products inherit that term and use <code>{lead_time}<\/code>.<\/li>\n<\/ul>\n\n<p>The plugin supports classic WooCommerce product pages and the Product Stock Indicator block, including variation selection. It is compatible with High-Performance Order Storage (HPOS). WooCommerce still controls stock levels, stock status, pricing and checkout. The plugin is free and WooCommerce is its only plugin dependency. External integrations can read the effective dispatch time through the PHP API.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Use WordPress 7.0 or later, PHP 8.3 or later and an active installation of WooCommerce 11.2 or later.<\/li>\n<li>Install and activate Custom Availability Messages for WooCommerce.<\/li>\n<li>Go to <strong>Plugins &gt; Installed Plugins<\/strong> and select <strong>Settings<\/strong> below the plugin name. This opens <strong>WooCommerce &gt; Settings &gt; Products &gt; Availability messages<\/strong>. Expand <strong>Getting started<\/strong> for a quick guide.<\/li>\n<li>To add an override, edit a product category, open <strong>Product data &gt; Inventory<\/strong> for a product, or expand <strong>Availability messages<\/strong> inside a variation.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"which%20rule%20takes%20precedence%3F\"><h3>Which rule takes precedence?<\/h3><\/dt>\n<dd><p>For each stock state, the plugin checks the variation, the product, its directly assigned categories, their ancestors and global settings in that order. Within each category group, higher priority numbers win. Ties use category depth and then the lowest category ID. If no Low stock rule applies, the plugin checks the In stock hierarchy. If no message applies, WooCommerce uses its default.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20hide%20a%20message%20or%20leave%20it%20blank%3F\"><h3>What happens when I hide a message or leave it blank?<\/h3><\/dt>\n<dd><p><strong>Hide<\/strong> stops message inheritance and removes the stock message. A blank custom message inherits. Hiding a message still lets integrations read its effective dispatch time.<\/p><\/dd>\n<dt id=\"how%20do%20i%20add%20a%20dispatch%20time%20to%20a%20message%3F\"><h3>How do I add a dispatch time to a message?<\/h3><\/dt>\n<dd><p>Open <strong>Dispatch lead time<\/strong> and enter a minimum. Leave the maximum blank for a single value. Zero is accepted. <strong>Inherit<\/strong> looks for a rule in the next scope. <strong>No lead time<\/strong> stops numeric inheritance. Under <strong>Custom message<\/strong>, enable <strong>Replace the token with the effective lead time<\/strong>, then use <strong>Insert {lead_time}<\/strong> and check the result in the live preview. If the time is missing, the message falls back to your optional text or the applicable WooCommerce default.<\/p><\/dd>\n<dt id=\"can%20i%20keep%20an%20inherited%20lead%20time%20and%20show%20a%20shorter%20unit%3F\"><h3>Can I keep an inherited lead time and show a shorter unit?<\/h3><\/dt>\n<dd><p>Yes. When the effective unit is <strong>Calendar days<\/strong>, choose <strong>Use short unit name<\/strong> to show a value such as <code>5\u20137 days<\/code>, or <strong>Use full unit name<\/strong> to show <code>5\u20137 calendar days<\/code>. The wording preference inherits independently of the numeric rule. When no preference applies, the full label is used.<\/p><\/dd>\n<dt id=\"how%20can%20an%20integration%20read%20the%20dispatch%20time%3F\"><h3>How can an integration read the dispatch time?<\/h3><\/dt>\n<dd><p>After WooCommerce has initialized, call <code>\\PiotrPesta\\CustomAvailabilityMessages\\get_effective_lead_time( $product_or_id, $state )<\/code>. Pass a variation ID or its WooCommerce object to resolve that variation. Omit the state to use the current presentation state. The API returns the unit, minimum, maximum, status and source. It returns <code>calendar_days<\/code> for both calendar-day labels and <code>null<\/code> for an invalid product or state. Check that the function is callable before using it. The installable ZIP includes the full contract in <code>docs\/public-api.md<\/code>.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20calculate%20delivery%20dates%20or%20sync%20with%20google%20merchant%20center%3F\"><h3>Does the plugin calculate delivery dates or sync with Google Merchant Center?<\/h3><\/dt>\n<dd><p>CAM displays the configured time until dispatch. It does not calculate delivery dates, manage a holiday calendar or sync with Google Merchant Center on its own. External integrations can read the effective dispatch time through the PHP API.<\/p><\/dd>\n<dt id=\"can%20the%20message%20change%20when%20shoppers%20select%20a%20larger%20quantity%3F\"><h3>Can the message change when shoppers select a larger quantity?<\/h3><\/dt>\n<dd><p>Yes. The classic WooCommerce product form and the Product Stock Indicator inside the Add to Cart with Options block can switch from the in-stock or low-stock message to the backorder message. WooCommerce must track the stock and allow backorders. The change reflects the quantity selected on the product page. It does not include units already in the cart. WooCommerce still validates purchases and stock.<\/p>\n\n<p>The browser compares the selected quantity with the in-stock threshold without making a request. If WooCommerce hides that stock count, CAM leaves the feature off unless you enable <strong>Allow this also when stock quantities are hidden<\/strong> under <strong>Dynamic availability messages<\/strong>, immediately below <strong>Getting started<\/strong>. Enabling it lets a visitor determine the threshold. Without JavaScript, the original message remains.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20deactivate%20or%20delete%20the%20plugin%3F\"><h3>What happens when I deactivate or delete the plugin?<\/h3><\/dt>\n<dd><p>Deactivation restores the WooCommerce display and keeps your settings. Deleting the plugin removes its settings from the installation.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial public release with custom stock messages and independently inherited dispatch lead times.<\/li>\n<li>Add single values, ranges and an optional short label for calendar days.<\/li>\n<li>Include the getting-started guide, live preview, message examples and <code>{lead_time}<\/code> token.<\/li>\n<li>Support the Product Stock Indicator block and provide a read-only PHP API and bundled Polish translations.<\/li>\n<li>Update storefront messages when the selected quantity crosses the in-stock threshold, with an explicit opt-in when WooCommerce hides the stock count.<\/li>\n<\/ul>","raw_excerpt":"Customize WooCommerce stock messages and shipping lead times globally, by category, product or variation.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/418997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=418997"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/piotr-pesta"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=418997"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=418997"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=418997"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=418997"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=418997"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=418997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}