Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix search multiple products single query

Discussion in 'Misc WordPress Requests' started by jedidiah13, Mar 22, 2018.

  1. jedidiah13

    Guest

    search multiple products single query, by jedidiah13

    My company has a WordPress webstore built using Woocommerce.
    All our items are listed as Products, so when I log into the store i navigate to the products tab…
    Now I can use the Search Products text input to seach inside the Products posts using a mySQL query.
    What I want to know is this…
    Is there a way I can search for and return multiple item using multiple search skus…
    for example if i enter 7206 it will search for any item with that number in the title or description, and I think i have a code snippet working properly to search the meta _sku as well.
    However I when i enter more than one number in the search it does an AND relation search returning nothing… for example i enter this in the search box: 7026 4567
    Now it returns nothing because no items contain both those numbers, but i want it to return both the items with 7026 and the items with 4567

    search multiple products single query
     
    #1

Share This Page

Monarch Social Sharing Plugin