ResolvedSearch Products
- This topic has 2 replies, 2 voices, and was last updated 3 years, 1 month ago by
lucymuddle.
- AuthorPosts
- February 25, 2020 at 12:43 pm #21483
lucymuddle
ParticipantHi Team,
When I search a product using the search bar in the header it does what it should – searches specifically for the product name but if the product is under the category “clothes” and i search “clothes” nothing comes up. How do I ensure the product search picks up the category not just what in the product name.
Also, I want to add a product search in the body of the home page, i though there was an element i could use but when i search for elements that contain “search” only the worpdress search element appears – which isn’t helpful. I must have removed a vital plugin when I was cleaning up the website. Do you know what i could be missing here?
Thanks in advance for you help.
Kind Regards,
LucyFebruary 25, 2020 at 4:12 pm #21490Althemist
KeymasterHi Lucy,
I am afraid there is nothing to be done here. It’s not theme related, it’s how search works in WordPress and WooCommerce. It would only detect the search term in the title and content, so you can’t search by category, SKU or other attribute.
As for the search form in content – it doesn’t sound like you have something deleted, as the product search widget is not included in the page builder elements. Basically, you can do the following:
Create a new custom sidebar called “Content Search” under Theme Options > Sidebars
Under Appearance > Widgets assign an instance of the Products Search widget to the newly created custom sidebar.
Open the page where you want the search bar to appear and place a “Widgetized Sidebar” content element using the page builder. Set this element to use the custom sidebar and you’re good to go. We are using the same approach in our Marketplace Demo.
Hope this helps.
Regards,
DimitarFebruary 27, 2020 at 1:01 pm #21523lucymuddle
ParticipantAmazing, this worked perfectly! Thank you so much.
- AuthorPosts
You must be logged in and have valid license to reply to this topic.