Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1187056

    Hello
    I am facing some problems and i gave up researching ! Hope you can help

    The 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, 8 months ago by Cloudypro.
    #1187407

    Hey Mohamad,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Nikko

    #1187457

    I have the same problem – please show the solution when its resolved !
    regards mike

    #1187518

    I 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 ?!

    https://ibb.co/vX2Xbm6
    https://ibb.co/RyxvXcw

    #1188329

    Hi Cloudypro,

    Thanks for providing the screenshots.
    We will forward this issue to our dev team for further investigation.

    Best regards,
    Nikko

    #1189303

    Hi 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!
    Nikko

    #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 !

    #1189885

    Hi 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.