Control How Out-of-Stock Products Appear with AI
Hide sold-out products, keep their pages live with backorder messaging, or push them to the end of the catalog, chosen per product and confirmed with a dry run.
Prerequisites
A connected site with WooCommerce active, a recent backup, and a snippets tool (like WPCode) if you want the sort-to-end option.
I want to control how my out-of-stock WooCommerce products behave. Here is what I want: [hide sold-out products from the shop and category pages], and/or [keep these products live but switch them to backorders so customers see "available on backorder" and can still buy], and/or [push sold-out products to the end of the catalog]. Changing stock settings can hide products from customers, so first: remind me to back up my store, then show me a dry run listing every product or setting you plan to change and what it will become. Do not save anything until I approve. For hiding, use WooCommerce's own setting. For backorders, set them per product without inventing stock numbers. For sorting sold-out items last, give me a code snippet I can add through a snippets plugin, and tell me exactly where it goes, since WooCommerce has no built-in setting for this. After I approve, apply the changes and list every product and option you touched so I can confirm nothing important got hidden.
Already connected to WPVibe?
Skip the copy-paste. Just ask your AI for the “Control How Out-of-Stock Products Appear with AI” recipe, or describe the task, and WPVibe runs these steps on your own site.
When a product sells out, WooCommerce often leaves the page up looking exactly like an in-stock one, or your theme hides it in a way you cannot control item by item. Shoppers land on dead ends, or your best sellers vanish the moment stock hits zero. The controls for this are scattered across a global toggle, per-product stock fields, and, for sort order, no setting at all.
WPVibe sets the behavior you actually want. It can hide sold-out items from the catalog with the global setting, or keep their pages live and switch them to backorders so shoppers see “available on backorder” and can still order. For pushing sold-out items to the end of the catalog, which WooCommerce has no built-in option for, it hands you a tested code snippet to add through a snippets tool.
Tell it which behavior you want and which products or categories it applies to. Since changing stock settings in bulk can hide products from customers, back up first and let it show you a dry-run list of what will change before anything saves. It reports every product and setting it touched, so you can confirm nothing important disappeared.
Outcome
Out-of-stock products behaving the way you chose: hidden, on backorder with clear messaging, or sorted to the end, with every change listed for review.