- This topic has 4 replies, 2 voices, and was last updated 12 years, 7 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Product Search – excluding a product
Hi – is it possible to exclude a product from product search results other than deleting the product.
I have some products that I want to stop selling for a bit, but don’t want to delete the products and then have to re-load all the details. Just a way to stop them showing in the search results.
Is that possible?
Many thanks
Jonathan
You can use the category to apply filter and achieve a similar result. For following example will give you a good idea of what I mean:
1) Create a category called “Active Products” (lets say the ID of this category is 1)
2) Edit your product(s) and add this category to all of your products that you are currently selling. You can add as many category as you want to a particular product
3) Now, use the following search shortcode for your product search option. It will exclude any products that are not in the “Active Products” category (category ID 1):
[wp_eStore_product_search category_id=1]
This way when you want to stop a product from appearing in the search result, you simply take it out of the “Active Products” category (no need to delete the product).
Hi – great got that working- thank you – just had to download your latest version of the extra shortcodes plug.
I don’t suppose there is a way to batch edit the category membership of products – I have 300 to do…
One last thing is there a way to edit the name “Product Search” to “Music Search”?
Thanks again,
Joanthan
No, there is no batch edit option. Open the “eStore-extra-shortcodes.php” field and search for the following:
Product Search
Once you find it change it with the following:
Music Searc
Great
Thank you
J