Home Forums WoodMart support forum Search results page opens shop archive instead of search results

Search results page opens shop archive instead of search results

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #706507

    zema80
    Participant

    Hello,

    I am experiencing an issue with the search functionality on my site.

    When I type a keyword into the search field, the AJAX live search works correctly — it shows relevant products in the dropdown.

    However:

    So basically, the site opens the shop page instead of the search results page.

    I will attach a screenshot and a short screencast video showing this behavior.

    Could you please let me know:

    Thank you in advance for your help.

    Best regards,
    Aleksey

    https://skrinshoter.ru/vZoU8OT57dr
    https://dev.klapana.ru/?s=19%D1%8147%D0%BD%D0%B6&post_type=product

    #706548

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    The issue is likely related to a Custom Layout applied to archive pages in WoodMart. When an archive layout is assigned globally, it can also affect the search results page, which is why your site redirects to the Shop layout instead of showing proper search results.

    Please try this:

    Navigate to Layouts > Layout Builder > Edit your Archive layout.

    Check the Conditions and make sure it’s not applied to Search Results. Either exclude Search Results, or create a separate layout and assign it specifically to Search Results.

    For more details and guidance, feel free to check this article:
    https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/

    Best Regards,

    #706574

    zema80
    Participant

    Hello,
    Thank you for your suggestion.
    I tested it and recorded a short screencast of the whole process.
    What I did:

    1. Went to WP Admin → Layouts → Layout Builder and checked my Archive layout conditions.
    2. Confirmed that Search Results are NOT included in the conditions (only the Shop archive).
    3. Then I disabled the Archive layout completely so the Shop page uses the default template.
    4. Tested search again: now the search opens a standard default page and shows results, however it still looks like the search results are being treated as the Shop archive (the same general archive template/behavior), not as a dedicated search results page.

    So it seems there is still some connection where Search falls back to the Shop archive template when no separate Search layout exists.
    My questions:

    • Is it correct that the proper fix is to create a separate Search Results layout and assign it specifically to Search Results?
    • If yes, do you provide any ready-made / prebuilt templates for Search Results pages (recommended design/layout), so I don’t need to build it from scratch?
    • If such templates exist, could you please share links or documentation on how to import/apply them?

    I’m attaching the screencast so you can see exactly what I changed and what the result looks like.
    Best regards,
    Aleksey

    https://skrinshoter.ru/vZolTPWKIDB

    • This reply was modified 4 months, 4 weeks ago by zema80.
    #706581

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    By default, WooCommerce uses the Shop (archive) template for search results unless a separate Search Results layout is assigned. So what you’re seeing is expected behavior: when no Search layout exists, the search page falls back to the archive structure.

    The correct approach is to create a dedicated Search Results layout and assign it specifically to Search Results. This gives you full control and prevents the search page from inheriting the Shop archive behavior.

    Navigate to Layouts > Add new layout > Create layout for search result page and use the predefined layouts: https://postimg.cc/kR4fDxx2

    Best Regards,

    #706623

    zema80
    Participant

    Hello,

    Thank you for the explanation.

    I followed your instructions and created a dedicated Search Results layout (Layouts → Add new layout → Search results page) and assigned it specifically to Search Results, using the predefined layouts from your screenshot.

    However, it still does not work on my site:

    • When I perform a search (click the search icon or “Show all results”), I still get the Shop archive template instead of the Search Results layout.
    • I also tried disabling any search-related options inside the layout that is assigned to the Shop page, but the behavior is the same.

    So at the moment, search always opens the Shop page template, even when a separate Search Results layout exists and is assigned.

    Could you please help me troubleshoot what could override the Search Results layout assignment?

    Possibly:

    • Another layout condition is catching the search page (global archive / shop / product archive rules).
    • A theme option forces search to use the Shop template.
    • A plugin (AJAX search, custom search plugin, SEO plugin, etc.) modifies the default search behavior.

    Please let me know what exactly you need from my side (screenshots of layout conditions, theme options, URLs, etc.). I can also record another screencast showing the current setup.

    Best regards,
    Aleksey

    https://skrinshoter.ru/v/290126/qBCOCv3y.mp4?view=1&name=%D0%92%D0%B8%D0%B4%D0%B5%D0%BE-29-01-2026%2016:50:48.mp4

    #706680

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.

    Best Regards,

    #706788

    zema80
    Participant

    dev.klapana.ru

    #706837

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site, and then check the issue. I am sure your issue will be solved. Then, activate the 3rd party plugins one by one and check which plugin is creating the issue for you.

    Otherwise, if the issue still exists, then keep the 3rd party plugins deactivated and let me know so I can check and give you a possible solution.

    Best Regards,

    #707191

    zema80
    Participant

    Hello,

    I have deactivated all third-party plugins and kept only the theme-required plugins active

    The issue is still present: search results are displayed using the Shop page layout instead of the Search Res

    All third-party plugins are currently disabled, so you can check

    You already

    Please proceed with the investigation and let me know

    Best regards,
    Alekse

    #707215

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Navigate to Theme Settings > Shop > Variable products > disable the option Show single variation and check the issue: https://ibb.co/FqbM946H

    Best Regards

    #707260

    zema80
    Participant

    Hello,

    I tested your suggestion.

    I navigated to Theme Settings → Shop → Variable products and disabled the option Show single variation.

    • After disabling this option, search results started working correctly.
    • At that moment, all third-party plugins were enabled.

    However, when I enable Show single variation again, the issue immediately returns and search results are once again displayed using the Shop page layout instead of the Search Results layout.

    • I need to keep the **Show single variation** option enabled because it is important for my catalog.

    Could you please advise how you can help resolve this conflict?

    • Is this a known bug related to Show single variation and search results?
    • Is there a fix, patch, or workaround that allows using Show single variation without breaking Search Results layout?

    Best regards,
    Aleksey

    #707263

    zema80
    Participant

    Hello,

    One more update.

    I tested the same scenario on another website of mine that also uses the WoodMart theme.

    • The behavior is exactly the same.
    • When **Show single variation** is enabled, search results use the Shop page layout instead of the Search Results layout.
    • When **Show single variation** is disabled, search results work correctly.

    So this looks like a theme-level issue rather than a site-specific or plugin-related problem.

    Please let me know how this can be fixed or escalated to your development team.

    Best regards,
    Aleksey

    #707317

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    I have confirmed it on our test site and the same behaviour.

    When Theme Settings > Shop > Variable products > Show single variation is turned ON, it treats each variation as a separate product in shop loops.

    Because of this, the theme forces the main Shop archive template for rendering those results — including shop search results — which causes the Shop layout to override the Search Results layout.

    When you disable “Show single variation”, it stops converting variations into individual loop items, and the correct template hierarchy is restored, allowing:

    Shop page > Shop layout and Search results > Search Results layout

    If you need separate layouts for Shop and Shop Search Results, the recommended solution is to keep “Show single variation” disabled.

    Best Regards,

    #707330

    zema80
    Participant

    Hello,

    Thank you for the detailed explanation.

    Unfortunately, the suggested workaround does not work for my case.

    • I need to use a custom Shop page layout because my Shop page is not a classic product listing page.
    • The Shop page contains a large amount of promotional and informational content at the top, and only a product listing at the bottom.
    • If the same layout is used for Search Results, it breaks the usability and logic of the search page.

    At the same time, one of the key reasons I chose WoodMart is the ability to work with variable products and use the Show single variation functionality.

    • I need this option to remain enabled.
    • Disabling it is not an acceptable solution for my project.

    From your explanation, it sounds like I am being forced to choose between:

    • Using separate layouts for Shop and Search Results
    • OR using Show single variation

    Please clarify:

    • Is there currently any way to use Show single variation AND still have separate layouts for Shop and Search Results?
    • If not, is this limitation planned to be addressed in future updates?
    • Can this issue be forwarded to your development team as a feature request or bug report?

    I would really appreciate a technical solution rather than a workaround that removes core functionality.

    Best regards,
    Aleksey

    #707432

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You can fix it by applying patch # 707387. To do this, go to Dashboard -> WoodMart -> Patcher, find the corresponding patch and click on the “Apply” button. Let us know if it works for you.

    Best Regards,

    #707570

    zema80
    Participant

    thanks

    #707597

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You’re Most Welcome!

    Feel free to write back anytime. If you need further assistance, we are always here to help you.

    If you have a minute, we’d truly appreciate your feedback — it helps us improve the product and shape future updates more effectively. We’d love your feedback on our theme: https://tally.so/r/w4l54k

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Tagged: 

Viewing 17 posts - 1 through 17 (of 17 total)

The topic ‘Search results page opens shop archive instead of search results’ is closed to new replies.