K
K
Knowledge Base - Ajax Search Pro for WordPress
Buy Ajax Search Pro!DocumentationGet Support
Search…
⌃K
Links
Knowledge Base
Safe Coding Guideline
Hooks
Filters
Templating
Constants
Frontend Filters
Taxonomy Filters
Frontend filters API
Tips & Miscellaneous
Tutorials
Post Types
Taxonomy Terms
WooCommerce
Ordering product by stock status
Making a product in-stock & out of stock filter
Add to cart button for Vertical and Horizontal results
Get formatted price in result title or in content
Showing products in-stock only
Showing in-stock and backorder products only
Excluding hidden catalog products
How to search products & product SKU?
How to search Products by variation SKUs?
Search product attributes
How to search users by city, state, zip code… ?
Compatibility
Other
Other
ASP_Query
REST API
Building a custom REST API
Javascript API
Javascript Hooks
Theme Functions
Changelog
Powered By GitBook

Showing in-stock and backorder products only

Excluding out of stock, but including instock and onbackorder products
​
​
  • Open up the Frontend search settings -> Custom fields panel
  • Click to create a New filter
  • For the filter name you can choose anything, we typed "Stock"
  • For the field name choose _stock_status
  • For the field type choose Hidden
  • For the field value enter: instock::onbackorder
  • For the field operator choose EXACTLY LIKE
  • Save the field and the search settings
Previous
Showing products in-stock only
Next
Excluding hidden catalog products
Last modified 8mo ago
Copy link