-
AuthorPosts
-
February 23, 2020 at 7:08 am #1187056
Hello
I am facing some problems and i gave up researching ! Hope you can helpThe search function on Enfold keeps showing the results of “out of stock” products although i have disabled the option to show “out of stock” products from within WooCommerce Product Inventory settings.
Is there any way i can solve this case ?
Also Product Visibility when set to “shop only” (excluding search), does not work, as i can still see the product in the search result (i did clear my browsing history, cache, cookies etc .)Thank you !
- This topic was modified 4 years, 9 months ago by Cloudypro.
February 24, 2020 at 5:25 pm #1187407Hey Mohamad,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( to be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.Best regards,
NikkoFebruary 24, 2020 at 6:23 pm #1187457I have the same problem – please show the solution when its resolved !
regards mikeFebruary 25, 2020 at 1:26 am #1187518I have achieved to have the product not show in the search result page
but in the AJAX search it does show !The moment you start typing the product name, it shows in the ajax search (BEFORE YOU PRESS ENTER)
if you type the product name and press enter, and you get redirected to the search page result, it says “Sorry, no posts matched your criteria. Please try another search”so my main issue is the Ajax Search .. any code i can use to disable out of stock products from appearing there
See attached photo when i search in ajax (the product that appears is out of stock, and the visibility is set to shop only)
If there is no solution, then maybe there is a way to disable some product category from the Ajax search ? this way i can add a special category or tag to the out of stock products and maybe use a specific code to hide them from the ajax search ?!February 27, 2020 at 6:00 am #1188329Hi Cloudypro,
Thanks for providing the screenshots.
We will forward this issue to our dev team for further investigation.Best regards,
NikkoMarch 2, 2020 at 4:10 am #1189303Hi Cloudypro,
Can you try the solution Ismael posted on this thread: https://kriesi.at/support/topic/out-of-stock-products-showing-up-in-search/
Hope it helps.Cheers!
NikkoMarch 2, 2020 at 4:56 am #1189320@Nikko thank you for the follow up
I found an alternative semi-solution, Actually i do not want to have the option to “Hide out of stock items from the catalog” ticked in the WooCommerce Product -> Inventory option !
I just want a code to hide out of stock items from the AJAX Search !
March 4, 2020 at 5:27 am #1189885Hi Cloudypro,
I have reported this issue to our dev and a hook will be added in the upcoming version of Enfold.
Please go to wp-content > themes > enfold > functions-enfold.php line 246-400 (erase this) and replace with: https://pastebin.com/cbPHMHJi
Then go to wp-content > themes > enfold > config-woocommerce > config.php, erase all content inside it and replace with: https://pastebin.com/5wAYbCUK
And on your child theme’s functions.php add this code: https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Search/avf_ajax_search_woocommerce_params.php
Hope this helps.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.