Shopify Autocomplete
The Autocomplete page configures Dynamic Autocomplete, which enhances the Shopify theme's search bar with instant keyword predictions, product previews, brand and content links, exact SKU navigation, and predefined suggestions before shoppers begin typing.
Enabling Dynamic Autocomplete
- In Shopify admin, open Online Store > Themes and select Customize on the active theme.
- Open App Embeds (the puzzle-piece icon), enable Dynamic Autocomplete, and select Save.
- In the Retail Cloud Connect Shopify App, open Autocomplete to choose which surfaces appear: keywords, products, brands, collections, pages, articles, and predefined suggestions.
Most stores require no theme code edits: once the App Embed is enabled, Dynamic Autocomplete locates the theme's search box automatically.
Stores previously using Keyword Autocomplete should disable its App Embed when enabling Dynamic Autocomplete so the two experiences do not compete for the same search input.
Edit Autocomplete Settings in a Profile
The page header's Editing Production or Editing profile name pill controls which profile is being edited. Layout, AI prediction, and predefined suggestion changes share one page-level Save and Discard action.
Named profiles can be tested on the Dynamic Autocomplete App Embed in Shopify's Theme Editor without changing Production. See Storefront Settings Profiles for creating, comparing, and promoting profiles, and Product Card Builder to customize the Autocomplete product card layout.
How It Takes Over the Search Bar
Dynamic Autocomplete attaches to the search inputs already present in the theme:
- Standard search inputs attach automatically. Shopify themes submit search with an input named
q, so Dynamic Autocomplete attaches toinput[name="q"]by default. When a shopper taps or focuses that input, the default Dynamic Autocomplete dialog opens with its own search field. - The theme's search field can stay primary. Select Keep theme search field under Search Field to keep shoppers typing in the visible theme input and show results below it. While there is room for suggestions, this optional mode has no duplicate search field, modal focus trap, or page scroll lock. If the field moves outside the visible viewport or the mobile keyboard leaves too little room below it, autocomplete switches to its dialog and preserves the query. Disable the theme's own suggestion panel to avoid competing results. Search icons, other button triggers, and fields inside a theme dialog still open the autocomplete dialog with its own field. Existing stores retain the default dialog until this setting is changed.
- Search inputs rendered after load are detected. Many themes only render their search field inside a drawer or popup after the shopper taps a search icon. Dynamic Autocomplete watches the page for search inputs that are added or replaced after load and attaches to them immediately.
- Custom themes can add selectors. If a theme uses a search input without
name="q", add up to ten CSS selectors (one per line) in Trigger Selectors under Layout & Behavior. Matching inputs open the dialog on focus when Open on Focus is enabled (the default), and non-input elements such as a search icon open it on click. - Any element can become a search button. Add
aria-controls="rcc-dynamic-autocomplete"andaria-haspopup="dialog"to a button, link, or icon in the theme, or useon:click="#rcc-dynamic/showDialog"in Shopify theme markup. Either option opens Dynamic Autocomplete without selector configuration, prevents the element's default action, stops click propagation so the theme's search drawer does not also open, and restores focus when the dialog closes. Use Dynamic Autocomplete events to track opens, closes, and search submissions. - Individual inputs can opt out. Add
data-rcc-autocomplete="off"to a specific search input to keep the theme's native behavior there, such as a blog-only sidebar search.
Shoppers can also press / anywhere on the page (outside another text field) to open Dynamic Autocomplete focused and ready for typing.
Troubleshooting the Search Trigger
Layout & Behavior
The debounce controls are collapsed under Advanced Settings on the page; their saved values continue to apply while hidden. For visual restyling with .rcc-dynamic CSS variables, see Styling App Blocks.
AI Predictions
Keywords
Keyword Autocomplete and Dynamic Autocomplete can also include queries from enabled Retail Cloud Connect redirect rules and active Google Cloud redirect controls. They appear before other predictions, are deduplicated, and count toward the configured suggestion limit (at most two redirect terms; up to six suggestions overall in Dynamic Autocomplete, or up to eight in Keyword Autocomplete). Automatically generated brand and sale redirects are excluded.
Redirect suggestions match exact text first, then prefixes, and only fall back to single-edit typo matching after at least three characters. Selecting the suggested phrase opens the redirect destination, while pressing Enter on an uncorrected misspelling still runs a normal search. See Search Redirects for full redirect rules.
Products
Additional Suggestions
Each AI Predictions source can be enabled independently. Product searches run separately from faster keyword, brand, collection, page, article, and SKU lookups so lightweight suggestions appear first. Article suggestions use Shopify content search in the shopper's active language and country.
Predefined Suggestions
Predefined Suggestions appear when Dynamic Autocomplete opens before a shopper begins typing.
Default Products
Products from a selected collection retain Shopify's collection order, and the storefront heading uses the collection title translated for the shopper's active language when available.
Personalized Products
The dropdown includes configurations backed by Recommended for you, Buy it again, On sale, and Recently Viewed models, and excludes AI Commerce Search configurations, models requiring an anchor product, and Page-level Optimization. See Recommendations AI for model details.
Recent Searches
Shoppers can clear their recent searches directly from the Dynamic Autocomplete dialog.
Sample Queries
Sample queries can be localized for secondary languages on the Translations page.
Keyword Autocomplete (Legacy)
Stores that only want a lightweight text-suggestion dropdown can enable the legacy Keyword Autocomplete App Embed instead of Dynamic Autocomplete. Its Enable Shopify Fallback setting uses existing Shopify search suggestions while AI Commerce Search trains on storefront traffic (typically a few days to begin learning and one to two weeks to mature on active stores). Do not enable both autocomplete App Embeds at the same time.