{"id":282604,"date":"2026-02-28T11:21:49","date_gmt":"2026-02-28T11:21:49","guid":{"rendered":"https:\/\/it.wordpress.org\/plugins\/londom-out-of-stock-alternatives\/"},"modified":"2026-02-28T11:23:54","modified_gmt":"2026-02-28T11:23:54","slug":"londom-out-of-stock-alternatives","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/londom-out-of-stock-alternatives\/","author":20777599,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.5","stable_tag":"1.3.5","tested":"6.9.4","requires":"6.0","requires_php":"8.0","requires_plugins":null,"header_name":"LONDOM - Out of Stock Alternatives","header_author":"LondomLab","header_description":"Automatically show in-stock alternative products when items are out of stock. Never lose a sale again with smart upsell recommendations.","assets_banners_color":"cdcfd2","last_updated":"2026-02-28 11:23:54","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/londom-out-of-stock-alternatives\/","header_author_uri":"https:\/\/londomlab.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":242,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.3.5":{"tag":"1.3.5","author":"londom","date":"2026-02-28 11:23:54"}},"upgrade_notice":{"1.3.2":"<p>Important update for WordPress.org compliance. Aligns text domain with plugin slug and improves code quality. No breaking changes. Safe to update.<\/p>","1.3.1":"<p>Improved cache system and better product placement. Recommended update for all users.<\/p>","1.3.0":"<p>First stable release. Install and activate to start showing alternatives on out-of-stock products.<\/p>"},"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3471584,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3471584,"resolution":"1544x500","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.3.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3471584,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3471584,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3471584,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Alternatives block shown at the top of an out-of-stock product page","2":"Mobile view with responsive grid layout","3":"Alternative products with prices and images"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[256787,4423,59098,1311,286],"plugin_category":[45],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-282604","plugin","type-plugin","status-publish","hentry","plugin_tags-alternatives","plugin_tags-out-of-stock","plugin_tags-stock-management","plugin_tags-upsell","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_committers-londom"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/londom-out-of-stock-alternatives\/assets\/icon-256x256.png?rev=3471584","icon_2x":"https:\/\/ps.w.org\/londom-out-of-stock-alternatives\/assets\/icon-256x256.png?rev=3471584","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/londom-out-of-stock-alternatives\/assets\/screenshot-1.png?rev=3471584","caption":"Alternatives block shown at the top of an out-of-stock product page"},{"src":"https:\/\/ps.w.org\/londom-out-of-stock-alternatives\/assets\/screenshot-2.png?rev=3471584","caption":"Mobile view with responsive grid layout"},{"src":"https:\/\/ps.w.org\/londom-out-of-stock-alternatives\/assets\/screenshot-3.png?rev=3471584","caption":"Alternative products with prices and images"}],"raw_content":"<!--section=description-->\n<p><strong>Stop losing sales when products sell out.<\/strong><br \/>\nLONDOM - Out of Stock Alternatives automatically replaces the Add to Cart button with smart product recommendations when an item is completely out of stock.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Smart Recommendations<\/strong> - Shows upsells first, then products from the same category<\/li>\n<li><strong>Variable Product Support<\/strong> - Correctly handles products with multiple variations<\/li>\n<li><strong>Mobile-First Design<\/strong> - Clean, responsive interface that works on all devices<\/li>\n<li><strong>Performance Optimized<\/strong> - Intelligent caching system with soft-refresh validation<\/li>\n<li><strong>Multilingual Ready<\/strong> - Compatible with Polylang and WPML<\/li>\n<li><strong>Cache Plugin Support<\/strong> - Works with WP Rocket, W3TC, LiteSpeed, and WP Fastest Cache<\/li>\n<li><strong>Accessible<\/strong> - Full ARIA support and keyboard navigation<\/li>\n<li><strong>Dark Mode Aware<\/strong> - Automatically adapts to user's color scheme preference<\/li>\n<\/ul>\n\n<h4>How It Works<\/h4>\n\n<ol>\n<li><strong>Detection<\/strong> - Automatically detects when a product (simple or variable) is completely out of stock<\/li>\n<li><strong>Replacement<\/strong> - Removes the Add to Cart button and shows an alternatives block<\/li>\n<li><strong>Recommendations<\/strong> - Displays 4 in-stock products: upsells first, then same-category items<\/li>\n<li><strong>Smart Caching<\/strong> - Validates cached products on each page load to ensure accuracy<\/li>\n<\/ol>\n\n<h4>Perfect For<\/h4>\n\n<ul>\n<li>WooCommerce stores with frequent stock changes<\/li>\n<li>Fashion and apparel shops with seasonal inventory<\/li>\n<li>Electronics stores with limited stock items<\/li>\n<li>Any e-commerce site that wants to reduce lost sales from stockouts<\/li>\n<\/ul>\n\n<h4>Developer Friendly<\/h4>\n\n<p>Multiple filters and actions available for customization:<\/p>\n\n<ul>\n<li><code>londom_alternatives_count<\/code> - Change number of alternatives shown<\/li>\n<li><code>londom_alternatives_title<\/code> - Customize the heading text<\/li>\n<li><code>londom_alternative_products_query_args<\/code> - Modify the query for finding alternatives<\/li>\n<li><code>londom_should_replace_add_to_cart<\/code> - Control when replacement happens<\/li>\n<li><code>londom_use_context_aware_cache<\/code> - Enable context-aware caching<\/li>\n<li>And many more...<\/li>\n<\/ul>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>WordPress 6.0 or higher<\/li>\n<li>WooCommerce 6.0 or higher<\/li>\n<li>PHP 8.0 or higher<\/li>\n<\/ul>\n\n<h4>Support<\/h4>\n\n<p>For support, please use the <a href=\"https:\/\/wordpress.org\/support\/plugin\/londom-out-of-stock-alternatives\/\">WordPress.org support forum<\/a>.<\/p>\n\n<h3>Additional Information<\/h3>\n\n<h4>About LondomLab<\/h4>\n\n<p>LondomLab creates practical WooCommerce tools that help online stores increase sales and improve customer experience. Visit <a href=\"https:\/\/londomlab.com\">londomlab.com<\/a> for more plugins and solutions.<\/p>\n\n<h4>Privacy &amp; Data<\/h4>\n\n<p>This plugin does not:\n* Collect any user data\n* Use cookies or tracking\n* Send data to external servers\n* Store personal information<\/p>\n\n<p>All data processing happens locally on your WordPress installation.<\/p>\n\n<h4>Contributing<\/h4>\n\n<p>Found a bug or have a feature request? Please report it on the <a href=\"https:\/\/wordpress.org\/support\/plugin\/londom-out-of-stock-alternatives\/\">support forum<\/a>.<\/p>\n\n<h4>Credits<\/h4>\n\n<p>Developed with \u2764\ufe0f by the LondomLab team.<\/p>\n\n<!--section=installation-->\n<h4>Automatic Installation<\/h4>\n\n<ol>\n<li>Log into your WordPress admin panel<\/li>\n<li>Navigate to Plugins \u2192 Add New<\/li>\n<li>Search for \"LONDOM Out of Stock Alternatives\"<\/li>\n<li>Click \"Install Now\" and then \"Activate\"<\/li>\n<\/ol>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Download the plugin ZIP file<\/li>\n<li>Log into your WordPress admin panel<\/li>\n<li>Navigate to Plugins \u2192 Add New \u2192 Upload Plugin<\/li>\n<li>Choose the ZIP file and click \"Install Now\"<\/li>\n<li>Activate the plugin<\/li>\n<\/ol>\n\n<h4>After Activation<\/h4>\n\n<p>The plugin works automatically! Visit any out-of-stock product page to see the alternatives block in action.<\/p>\n\n<p><strong>Optional Configuration:<\/strong><\/p>\n\n<p>You can customize behavior using WordPress filters in your theme's <code>functions.php<\/code>:<\/p>\n\n<pre><code>\/\/ Change number of alternatives shown (default: 4)\nadd_filter( 'londom_alternatives_count', function() { \n    return 6; \n});\n\n\/\/ Customize the heading text\nadd_filter( 'londom_alternatives_title', function() { \n    return 'You might also like these'; \n});\n\n\/\/ Enable context-aware caching (for multilingual\/multi-currency sites)\nadd_filter( 'londom_use_context_aware_cache', '__return_true' );\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id=\"why%20isn%27t%20the%20alternatives%20block%20showing%3F\"><h3>Why isn't the alternatives block showing?<\/h3><\/dt>\n<dd><p>The plugin only displays alternatives when a product is <strong>completely<\/strong> out of stock:\n* For simple products: stock must be 0 and backorders disabled\n* For variable products: ALL variations must be out of stock or unavailable<\/p>\n\n<p>Check your product's stock settings in WooCommerce.<\/p><\/dd>\n<dt id=\"can%20i%20change%20how%20many%20alternative%20products%20are%20shown%3F\"><h3>Can I change how many alternative products are shown?<\/h3><\/dt>\n<dd><p>Yes! Use this filter in your theme's functions.php:<\/p>\n\n<pre><code>add_filter( 'londom_alternatives_count', function() { return 6; });\n<\/code><\/pre><\/dd>\n<dt id=\"how%20are%20alternative%20products%20selected%3F\"><h3>How are alternative products selected?<\/h3><\/dt>\n<dd><p>The plugin uses a smart two-step process:\n1. <strong>First priority:<\/strong> Upsell products (that are in stock)\n2. <strong>Fallback:<\/strong> Products from the same categories, ordered by sales performance<\/p>\n\n<p>This ensures relevant recommendations every time.<\/p><\/dd>\n<dt id=\"is%20it%20compatible%20with%20my%20theme%3F\"><h3>Is it compatible with my theme?<\/h3><\/dt>\n<dd><p>Yes! The plugin uses standard WooCommerce hooks and includes mobile-first CSS that adapts to most themes. The styles are minimal and designed to blend with your existing design.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20variable%20products%3F\"><h3>Does it work with variable products?<\/h3><\/dt>\n<dd><p>Absolutely! The plugin intelligently checks all variations. If even ONE variation is available (in stock or with backorders enabled), the normal Add to Cart remains visible.<\/p><\/dd>\n<dt id=\"will%20it%20slow%20down%20my%20site%3F\"><h3>Will it slow down my site?<\/h3><\/dt>\n<dd><p>No. The plugin includes an intelligent caching system that stores alternative product IDs and validates them on each page load. This \"soft-refresh\" approach keeps data accurate while maintaining performance.<\/p><\/dd>\n<dt id=\"is%20it%20compatible%20with%20caching%20plugins%3F\"><h3>Is it compatible with caching plugins?<\/h3><\/dt>\n<dd><p>Yes! Built-in compatibility with:\n* WP Rocket\n* W3 Total Cache\n* LiteSpeed Cache\n* WP Fastest Cache<\/p>\n\n<p>The plugin automatically purges relevant cache when products are updated.<\/p><\/dd>\n<dt id=\"can%20i%20translate%20the%20plugin%3F\"><h3>Can I translate the plugin?<\/h3><\/dt>\n<dd><p>Yes! The plugin is fully translation-ready:\n* Text domain: <code>londom-out-of-stock-alternatives<\/code>\n* Compatible with Polylang and WPML\n* All user-facing strings are translatable<\/p><\/dd>\n<dt id=\"how%20do%20i%20clear%20the%20plugin%27s%20cache%3F\"><h3>How do I clear the plugin's cache?<\/h3><\/dt>\n<dd><p>The cache clears automatically when:\n* A product is updated\n* Stock status changes\n* Prices change\n* Upsells are modified<\/p>\n\n<p>For manual clearing, deactivate and reactivate the plugin.<\/p><\/dd>\n<dt id=\"can%20i%20customize%20the%20appearance%3F\"><h3>Can I customize the appearance?<\/h3><\/dt>\n<dd><p>Yes! The plugin includes CSS classes you can target:\n* <code>.londom-oos-banner<\/code> - The \"out of stock\" notice\n* <code>.londom-oos-box<\/code> - The alternatives container\n* <code>.londom-oos-grid<\/code> - The product grid\n* <code>.londom-oos-item<\/code> - Individual product cards<\/p>\n\n<p>Add custom CSS in Customizer \u2192 Additional CSS.<\/p><\/dd>\n<dt id=\"does%20it%20support%20hpos%20%28high-performance%20order%20storage%29%3F\"><h3>Does it support HPOS (High-Performance Order Storage)?<\/h3><\/dt>\n<dd><p>Yes! The plugin declares full compatibility with WooCommerce HPOS.<\/p><\/dd>\n<dt id=\"is%20there%20a%20pro%20version%3F\"><h3>Is there a PRO version?<\/h3><\/dt>\n<dd><p>Not yet, but we're working on advanced features for a PRO version. The FREE version will always remain feature-complete for basic needs.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.5 - 2026-02-10<\/h4>\n\n<ul>\n<li>Fixed: Plugin file name aligned with WordPress.org slug<\/li>\n<li>Fixed: Text domain consistency across all files<\/li>\n<li>Improved: Full compliance with WordPress.org requirements<\/li>\n<li>Updated: Plugin URI and documentation links<\/li>\n<\/ul>\n\n<h4>1.3.4 - 2026-02-10<\/h4>\n\n<ul>\n<li>Fixed: Text domain aligned with WordPress.org assigned slug<\/li>\n<li>Fixed: Plugin name formatting consistency across all files<\/li>\n<li>Updated: Minimum requirements - WordPress 6.0+ and PHP 8.0+<\/li>\n<li>Improved: Full compliance with WordPress.org plugin guidelines<\/li>\n<\/ul>\n\n<h4>1.3.2 - 2025-01-22<\/h4>\n\n<ul>\n<li>Fixed: Text domain alignment with plugin slug for WordPress.org compliance<\/li>\n<li>Fixed: Replaced <code>_e()<\/code> with <code>esc_html_e()<\/code> for safe output<\/li>\n<li>Fixed: Added missing translators comments for sprintf placeholders<\/li>\n<li>Improved: Cache index system without direct SQL queries<\/li>\n<li>Improved: Enhanced code documentation and inline comments<\/li>\n<li>Improved: Better error handling for edge cases<\/li>\n<li>Tested: WordPress 6.9 compatibility<\/li>\n<li>Tested: WooCommerce 9.0 compatibility<\/li>\n<\/ul>\n\n<h4>1.3.1 - 2024-12-10<\/h4>\n\n<ul>\n<li>Added: eBay-like placement at top of product page<\/li>\n<li>Added: Soft-refresh cache validation on page hits<\/li>\n<li>Added: Context-aware cache support (opt-in)<\/li>\n<li>Improved: Extended cache invalidation hooks<\/li>\n<li>Improved: Better variable product detection<\/li>\n<li>Fixed: Cache clearing on variation updates<\/li>\n<\/ul>\n\n<h4>1.3.0 - 2024-11-15<\/h4>\n\n<ul>\n<li>Initial public release<\/li>\n<li>Feature: Automatic out-of-stock detection<\/li>\n<li>Feature: Smart alternatives via upsells \u2192 category fallback<\/li>\n<li>Feature: Mobile-first responsive design<\/li>\n<li>Feature: Accessible markup with ARIA labels<\/li>\n<li>Feature: Cache system with transients<\/li>\n<li>Feature: Multilingual support (Polylang\/WPML)<\/li>\n<li>Feature: HPOS compatibility<\/li>\n<\/ul>","raw_excerpt":"Automatically show in-stock alternative products when items are out of stock. Smart recommendations prevent lost sales.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/282604","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=282604"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/londom"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=282604"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=282604"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=282604"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=282604"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=282604"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=282604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}