Hi XStore team,
I’m customizing the search results experience in my WooCommerce store using Ajax Search Pro, in combination with XStore and Elementor. I’m currently trying to achieve a specific layout for the search results page, but I’m running into some limitations, and I’d really appreciate your guidance.
Context:
Ajax Search Pro handles the search logic, but it relies entirely on the theme (XStore) to render the search results page.
In my case, I would like to display both product categories and products on the same search results page, but each in a different layout:
Categories as a list of text links
Products in the usual product grid layout
The challenge:
The default XStore search results template displays all result types (products, product categories, pages, etc.) using a blog-style layout, which doesn’t work well for WooCommerce products.
The product archive template (grid layout) displays products beautifully, but excludes categories and other result types.
What I’m hoping to achieve:
Display product categories (as links) above or alongside the product results
Display matching products in the XStore product grid
Keep both on the same page
Ideally maintain pagination for the product results
Why I’m reaching out:
Since Ajax Search Pro depends on the theme’s templates for rendering search results, I’m turning to you to ask whether this type of split layout is possible within the XStore framework.
Is there a supported or recommended way in XStore to render different result types in different layouts?
Can I insert a block (e.g. via shortcode or code hook) to display the categories separately from the product grid?
Or is there another approach you suggest for achieving this within your system?
I apologize if this is a less intelligent question or if I’m missing something obvious — I’ve been puzzling over this for a while and may have lost the bigger picture. I truly appreciate your time and any help you can offer.
Thank you in advance!
Best regards,
Nancy