Product Search Results Template
Overview
Section titled “Overview”The Product Search Results template controls the layout and design of your product search results page. This template provides a block-based foundation for displaying search results, filters, and product grids.
This is one of two core templates provided by Commerce Connect (the other is Single Product template).
What It Controls
Section titled “What It Controls”The Product Search Results template defines:
- Product grid layout - How search results are displayed (grid columns, spacing, card design)
- Filter sidebar - Where filters appear and which filter types are shown
- Search controls - Sort options, result count, active filters display
- Page structure - Header, main content area, sidebar arrangement
Default Layout
Section titled “Default Layout”Out of the box, the Product Search Results template includes:
Main Content Area
Section titled “Main Content Area”- Products Grid - Displays matching products in a responsive grid
- Products Count - Shows total number of results (“Showing 24 products”)
- Products Sort Control - Dropdown for sorting (price, name, newest)
Sidebar
Section titled “Sidebar”- Products Filters - Complete filter system with:
- Price range filter
- Category filter
- Brand filter
- Color/size/attribute filters (based on your BigCommerce product setup)
- Products Filter Selections - Active filter tags showing applied filters
Search Header
Section titled “Search Header”- Products Search Label - Displays current search term (“Results for: coffee table”)
How to Customize
Section titled “How to Customize”Access the Template
Section titled “Access the Template”- Navigate to Appearance > Site Editor in WordPress® admin
- Click Templates in the left sidebar
- Filter by Author is: wpe-mustang to show Commerce Connect templates
- Click Product Search Results to open the template
Editing the Template
Section titled “Editing the Template”The template is fully editable using WordPress®‘s block editor:
Change Grid Layout
Section titled “Change Grid Layout”- Select the Products Grid block
- In the right sidebar, adjust:
- Columns - Number of products per row (2, 3, 4, or 6 columns)
- Gap - Spacing between products
- Alignment - Full width, wide, or contained
Customize Filters
Section titled “Customize Filters”- Select the Products Filters block in the sidebar
- Toggle individual filters on/off:
- Show/hide price filter
- Show/hide category filter
- Show/hide brand filter
- Show/hide attribute filters
- Adjust filter display order by dragging blocks
Modify Sort Options
Section titled “Modify Sort Options”- Select the Products Sort Control block
- Choose which sort options to display:
- Price: Low to High
- Price: High to Low
- Name: A-Z
- Newest First
- Best Selling
Add Custom Content
Section titled “Add Custom Content”Mix Commerce Connect blocks with regular WordPress® blocks:
- Add a Heading block above results
- Insert a Paragraph block for search tips
- Include a Columns block for featured categories
- Add a Spacer block for layout control
Example Customizations
Section titled “Example Customizations”2-Column Grid with Large Product Cards
Section titled “2-Column Grid with Large Product Cards”- Select Products Grid block
- Set Columns to 2
- Set Gap to Large (32px)
- Select individual product card blocks inside
- Adjust product image size to Large
Horizontal Filter Bar Instead of Sidebar
Section titled “Horizontal Filter Bar Instead of Sidebar”- Create a new Group block above the products grid
- Set the group to Row layout direction
- Move filter controls into this horizontal group
- Remove the sidebar container
Add Search Suggestions
Section titled “Add Search Suggestions”- Above the products grid, add a Heading block
- Below it, add a Categories block showing popular categories
- Add a Paragraph block: “Popular searches: coffee tables, linen shirts, candles”
Working with Blocks
Section titled “Working with Blocks”Available Blocks
Section titled “Available Blocks”You can use any of these blocks in the Product Search Results template:
Product Collection Blocks:
- Products - Main grid container
- Products Grid - Grid layout
- Products Count - Result count
- Products Sort Control - Sort dropdown
- Products Filters - Filter system
- Products Filter Control - Individual filters
- Products Filter Selections - Active filters
- Products Search Label - Search term display
Standard WordPress® Blocks:
- Heading, Paragraph, Image, Spacer, Separator
- Columns, Group, Row, Stack
- Buttons, List, Quote
Block Settings
Section titled “Block Settings”Each Commerce Connect block includes:
- Layout settings - Columns, spacing, alignment, width
- Display options - Toggle visibility of elements
- Style settings - Colors, typography, borders, shadows
- Advanced settings - Custom CSS classes, HTML attributes
Workflow
Section titled “Workflow”Step-by-Step Customization
Section titled “Step-by-Step Customization”-
Plan your layout
- Sketch the desired search results page structure
- Decide on grid columns, filter placement, and custom content
-
Open the template
- Navigate to Appearance > Site Editor > Templates
- Filter by wpe-mustang author
- Click Product Search Results
-
Modify the structure
- Adjust the products grid (columns, spacing)
- Configure which filters appear in the sidebar
- Customize sort options and result count display
-
Add custom content
- Insert headings, paragraphs, or images
- Add categories or featured products
- Include search tips or promotional banners
-
Style the blocks
- Apply colors and typography
- Set spacing and padding
- Add borders or shadows
-
Preview your changes
- Click Preview to see the live search results page
- Test with different search terms
- Verify filters work correctly
-
Publish the template
- Click Save to publish your changes
- All product search results will now use this layout
Customization Examples
Section titled “Customization Examples”Example 1: Minimal Search Results (No Sidebar)
Section titled “Example 1: Minimal Search Results (No Sidebar)”Remove the sidebar and show only essential elements:
- Delete the Products Filters sidebar block
- Add a horizontal Group block above the grid
- Move Products Sort Control and Products Count into this group
- Set the group to Row layout with Space Between justification
- Increase grid columns to 4 for more products per row
Example 2: Filter-First Layout
Section titled “Example 2: Filter-First Layout”Emphasize filtering for large catalogs:
- Move Products Filters above the products grid
- Set filters to horizontal layout (Row direction)
- Add a Heading block: “Narrow Your Search”
- Show Products Filter Selections prominently above results
- Use 3-column grid to show more products
Example 3: Search Results with Category Suggestions
Section titled “Example 3: Search Results with Category Suggestions”Help users discover related categories:
- Below the search label, add a Heading: “Related Categories”
- Insert a Categories block showing relevant categories
- Add a Separator block for visual division
- Below that, show the standard products grid with filters
Advanced Customization
Section titled “Advanced Customization”Custom CSS
Section titled “Custom CSS”Target the search results template with custom CSS:
/* Search results container */.wp-block-commerce-connect-products { max-width: 1400px; margin: 0 auto;}
/* Products grid spacing */.products__grid { gap: 3rem;}
/* Filter sidebar styling */.wp-block-commerce-connect-products-filters { background: #f9f9f9; padding: 2rem; border-radius: 8px;}
/* Search label */.wp-block-commerce-connect-products-search-label { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem;}Add custom CSS in Appearance > Customize > Additional CSS.
Template Parts
Section titled “Template Parts”Break the search results template into reusable parts:
- Create a Template Part for the filter sidebar
- Create a Template Part for the search header
- Reuse these parts in other templates (category pages, shop page)
Dynamic Content
Section titled “Dynamic Content”Combine search results with dynamic WordPress® content:
- Add a Query Loop block to show blog posts related to the search term
- Insert a Latest Posts block showing recent articles
- Include a Custom HTML block for third-party search widgets
Troubleshooting
Section titled “Troubleshooting”Filters Not Appearing
Section titled “Filters Not Appearing”Cause: Filter blocks may be hidden or removed from template.
Solution:
- Open the Product Search Results template in Site Editor
- Ensure Products Filters block exists
- Check that individual filter controls are enabled
- Verify your BigCommerce products have filterable attributes
Grid Layout Broken
Section titled “Grid Layout Broken”Cause: Conflicting CSS from theme or plugins.
Solution:
- Inspect the page with browser DevTools
- Look for CSS conflicts on
.products__gridclass - Add custom CSS to override conflicting styles
- Consider switching to a block-based theme for better compatibility
Search Results Not Updating
Section titled “Search Results Not Updating”Cause: Template changes not saved or caching issue.
Solution:
- Ensure you clicked Save in the Site Editor
- Clear your site cache (WP Engine cache, CDN cache)
- Hard refresh your browser (Cmd+Shift+R)
- Check that product sync is active (Commerce Connect > Settings > Products)
Best Practices
Section titled “Best Practices”Design
Section titled “Design”- Use 3-4 column grids for optimal product display on desktop
- Show 2 columns on mobile using responsive settings
- Keep filters visible - Don’t hide them behind a toggle on desktop
- Display active filters prominently so users can easily remove them
Performance
Section titled “Performance”- Limit products per page to 24-48 for faster loading
- Use image optimization - BigCommerce serves optimized images via CDN
- Enable pagination instead of infinite scroll for large result sets
- Cache the template - WP Engine automatically caches this template
User Experience
Section titled “User Experience”- Show result count so users know how many products matched
- Provide clear sort options - Price and relevance are most common
- Display “No results” message when search returns nothing
- Suggest related products or categories when no exact matches
Related Documentation
Section titled “Related Documentation”- Single Product template - The other core plugin template
- Products Block - Main products grid block
- Products Filters Block - Filter system
- Site Editor Guide - Using the WordPress® Site Editor
- Block Customization - Styling blocks with CSS
Next Steps
Section titled “Next Steps”- Customize the Single Product template
- Explore all available blocks →
- Learn about product sync →