Ajax Search – How To Disable Stock In Results

This topic has 2 replies, 2 voices, and was last updated 2 years, 5 months ago ago by Tony Rodriguez

  • Avatar: nothingandco
    nothingandco
    Participant
    July 19, 2023 at 01:50

    Hello,

    I have the ajax search bar in my header menu and I noticed that whenever I am searching for a product it will showcase for example:

    Product Name
    1 in stock
    Price

    I do NOT want to show the ‘1 in stock’ portion within the results.

    Could you assist me with this on how I can remove this as I cannot seem to find the option for it within the theme customizer.

    Thank you in advance!

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    July 19, 2023 at 05:27

    Hello, @nothingandco,

    Thank you for choosing XStore as your WooCommerce WordPress theme.

    To remove the number of stocks from the Search Products, please copy and paste the following CSS code to XStore >> Theme Options >> Theme Custom CSS >> Global CSS and then clear your browser cache:

    .autocomplete-suggestion .ajax-item-info>.stock {
        display: none !important;
    }

    Best Regards,
    8Theme’s Team.

    Please contact administrator
    for this information.
  • Viewing 2 results - 1 through 2 (of 2 total)

The issue related to '‘Ajax Search – How To Disable Stock In Results’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.