You are here:
Enable Customers to Add Products to Their Cart from Search Results
When customers search for products in your store, let them add the product to their cart directly from the search results page.
Required Editions
Configure the Add to Cart Button
These steps apply to the Results component in B2B stores.
- In the navigation sidebar, select a store from the Store dropdown.
- Select Website Design, and then click Experience Builder.
- In Experience Builder, open the search page.
-
From the Components panel, drag the Results component into the page’s Results
section.
When you drag a component over a content or theme layout region, a label appears to identify the region. Components in a content layout region are specific to the page. Components in a theme layout region have the label “Shared” added to the name because they’re shared everywhere that the theme layout region is used.
- In the component’s Results Display section, select Show Call To Action Button.
- Use the customization options to tailor the button style and text.
Configure the Add to Cart Button (D2C Stores Only)
These steps apply to the Results Grid component in D2C stores.
- In the navigation sidebar, select a store from the Store dropdown.
- Select Website Design, and then click Experience Builder.
- In Experience Builder, open the search page.
-
From the Components panel, drag the Results Grid component into the page’s Results
Layout section.
When you drag a component over a content or theme layout region, a label appears to identify the region. Components in a content layout region are specific to the page. Components in a theme layout region have the label “Shared” added to the name because they’re shared everywhere that the theme layout region is used.
-
Edit the Results Grid component properties.
- Go to the component’s Settings tab.
- For Data Source, select Nested Expression.
- For Expression, select Description.
-
Add the Product Card component to the Results Grid component, and edit the Product
Card component properties.
- From the Components panel, drag the Product Card component into the sfdcRepeaterItem section of the Results Grid component.
- Go to the component’s Settings tab.
- For Data Binding, make sure that {!Item} is entered.
- In the Button Settings section, select Show Add to Cart Button.
- Use the customization options to tailor the button style and text.
-
Edit the Results Grid component properties again.
- Go to the component’s Settings tab.
- For Data Source, select Nested Expression.
- For Expression, select Product Cards.
Did this article solve your issue?
Let us know so we can improve!

