[Resolved] Problems with search

Home Forums Support Problems with search

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #280175
    Dani

    If I understand it correctly, the wordpress search uses the theme’s search page to display results. Is that correct?
    I have the search in my header widgets, but when I search for a product, the search result is not only shown in the middle of the page, but in the sidebars, too. If I activate the Woocommerce product search in the widget instead of the wordpress search it looks even worse, because it shows the result ONLY in the sidebars, not the page itself. That looks blank. Also it gives me results for two languages instead just the language of the user. (That could be a conflict with my WPML language plugin) What am I doing wrong?
    Ideally I would like to display only product search result in the middle of the page in a grid like the normal category page displays.

    GeneratePress 1.3.44
    GP Premium 1.2.94
    #280270
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    That’s correct.

    Can you link me to a search results page that looks off so I can take a look at what’s happening?

    Thanks!

    #280295
    Dani

    This is the link for an example: https://shop.adorablepaws.de/?s=magnusson

    You can see on the left side bar all the Magnusson products added to the widgets. They were not there before the search.

    #280299
    Dani

    Arg, I just noticed, I had a plugin called Woo Search By Product Tag. Just deactivated it and the search is not shown in the widgets anymore. Sorry!

    But is there a way to modify he generatepress searchform so it seraches for products and tags and shows like a product grid?

    #280431
    Tom
    Lead Developer
    Lead Developer

    The regular search form or the navigation search form?

    #280830
    Dani

    Hello again, first I want to apologise, I was totally confused with the WordPress/Woocommerce searches, I think I completely misunderstand it all.

    Now I understood how it works, but still have some questions. I hope they are related to your themes programming, if not, please let me know and I try to find another solution.

    My first question:
    If you go to https://shop.adorablepaws.de/en and take a look the left sidebar widgets. There is a search box with the submit button. How can I align the submit button with the search box so t’s not showing underneath the box?

    My second question:
    I now installed the Relevanssi plugin to get better search results. That works really good. The thing I don’t like is how the results are displayed. I have difficulties explaining it in English, but I try. 😉 I would like the result to show not below each other, but listed as if it was a product gallery with an image like if you are clicking through my shop for example on the category puppy equipment: https://shop.adorablepaws.de/en/pets/puppy-equipment/ and scroll down a bit you see the products listed with name and image.

    Is that possible?

    #280935
    Leo
    Staff
    Customer Support

    Hi Dani,

    1. Try this CSS:

    .widget .search-field {
        width: 75%;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    2. I think this question would be more suitable for the Relevanssi plugin author.
    However, the Search results pages of this page might help: https://www.relevanssi.com/category/knowledge-base/

    Hope this helps!

    #280954
    Dani

    Thank you very much Leo. The code worked!

    I’ll have a look through the Relevanssi page. Thanks for pointing me in the right direction.

    #280964
    Leo
    Staff
    Customer Support

    You’re very welcome 🙂

    #281711
    Dani

    I can be very insistent if I want something 🙂 and I found a solution. I’d thought I’d post here, in case some others have the same “problem”.

    Perhaps I explained my questions incorrect due to the lack of technical English. The plugin Relevanssi works perfect with GP+Woocommerce and my problem with not liking the display of search result was solved by customising in the GP settings. The features image must be enabled and the blog columns layout set to three and voila, the search result displays Woocommerce products with product image, a short description and the layout is in columns, just like a shop product list view. This is how my search looks now: https://shop.adorablepaws.de/en/search/yento

    The only thing missing or I should say what I would like to ideally see displayed in the search result, too, is the product price.

    The Relevanssi plugin author said, that for the price to be shown the theme’s search file must be modified.

    Besides you writing “no direct access please” in your serach file, I admit not having much knowledge of php. If you have any idea how to amend your search form to also show the product price, please let me know what I need to add where. If not, no worries. I’m happy that at least I have the search result now closely looking like I wanted it 🙂

    #282150
    Leo
    Staff
    Customer Support

    Thanks for reporting back and sharing the solution 🙂

    #282248
    Tom
    Lead Developer
    Lead Developer

    Including the price in the search results would require a custom template to be added.

    I do have a WooCommerce add-on planned which would have this functionality.

    For now, you might find a third party plugin or WC extension that will help.

    Here’s an interesting one: https://en-ca.wordpress.org/plugins/advanced-woo-search/

    #282258
    Dani

    Thanks for the info Tom. I’ll stick with my search plugin for now. Looking forward to your Woocommerce add-on 🙂

    #282556
    Tom
    Lead Developer
    Lead Developer
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.