> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Autocomplete

> Configure Algolia Autocomplete for BigCommerce.

The Algolia integration for BigCommerce includes an autocomplete menu that replaces the default BigCommerce search box and provides results as-you-type.
The autocomplete menu uses Algolia's [Autocomplete UI library](/doc/ui-libraries/autocomplete/introduction/what-is-autocomplete).

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/autocomplete-results.jpeg?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=1140ceea1c8cc3638d6a7813ffe3ccf9" alt="Screenshot of an autocomplete drop-down menu showing product cards for items like 'Dustpan and Brush' and 'Able Brewing System' under 'Products'." width="1280" height="1097" data-path="doc/integration/bigcommerce/search-settings/autocomplete-results.jpeg" />

## Configure the autocomplete menu

To configure the autocomplete menu,
select a channel in your BigCommerce app and open the **Search settings** tab.

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/autocomplete-settings.jpeg?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=e21c11f25a61af44822b0241cc55eacc" alt="Screenshot of Autocomplete settings with source, selectors, placement, and product count fields, plus debug and edit options, and a Save button." width="912" height="1135" data-path="doc/integration/bigcommerce/search-settings/autocomplete-settings.jpeg" />

The **Desktop CSS Selector** option targets the search box on large screens.
The default value is `#quickSearch`.

If your theme uses separate search boxes for large and small screens,
use the **Mobile CSS Selector** option to target the search box on small screens.
The default value is `.navPages-quickSearch`.

When providing a mobile selector,
use the **Max Mobile Width** option to specify the breakpoint for switching between the small screen and large screen versions of the search box.
The default value is `800px`.

After making changes to the settings, click **Save**.

## Customize the autocomplete menu

Autocomplete is pre-configured for the *Cornerstone* theme in BigCommerce.
For other themes, you might need to tweak the Autocomplete menu to match.
You can adjust both the CSS and JavaScript for Autocomplete.

To configure the Autocomplete CSS and JavaScript,
go to the **Search settings** tab and select **Edit CSS** or **Edit JavaScript**.

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/autocomplete-customization-buttons.jpeg?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=3d88350340201f7478bbf9491214ba08" alt="Autocomplete customization buttons in the BigCommerce app" width="658" height="240" data-path="doc/integration/bigcommerce/search-settings/autocomplete-customization-buttons.jpeg" />

In the editor, you can change the Autocomplete CSS or JavaScript.

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/autocomplete-customization.jpeg?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=af3db943801eb00f86e08a035531a0b5" alt="Screenshot of a code editor showing CSS for customizing the autocomplete menu, with 'Save' and 'Reset To Default' buttons at the bottom." width="921" height="1044" data-path="doc/integration/bigcommerce/search-settings/autocomplete-customization.jpeg" />

When you're done, click **Save** at the bottom left of the editor,
and click **Save** again on the main search settings page for Autocomplete to publish your changes.

## Restore default CSS and JavaScript

1. Go to the **Search settings** tab and select **Edit CSS** or **Edit JavaScript**.
2. Pick **Reset to default** on the bottom right of the editor.
3. Confirm that you want to reset the CSS or JavaScript code to its default. This action overwrites any changes you've made.
4. Click **Save** at the bottom left within the editor, then click **Save** on the main search settings page for Autocomplete to publish your changes.

## Update Autocomplete CSS and JavaScript

When there's an Autocomplete CSS and JavaScript update,
the **Search settings** tab shows **Updates available** badges for CSS or JavaScript.
To update, click **Edit CSS** or **Edit JavaScript**.

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/update-banner.jpeg?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=df24f3a0a00410d7a257cf1d4b359d20" alt="Screenshot of a UI section with an 'Edit' button and a red 'Updates Available' label, showing options to edit CSS for the Autocomplete widget." width="622" height="98" data-path="doc/integration/bigcommerce/search-settings/update-banner.jpeg" />

The editor shows the difference between your existing code and the new version.
Paste your custom code and click **Apply Changes**.

<img src="https://mintcdn.com/algolia/hAsVAHDvpFee-pZL/doc/integration/bigcommerce/search-settings/diff-editor.jpeg?fit=max&auto=format&n=hAsVAHDvpFee-pZL&q=85&s=2885420fa00742ef74151bdd3ff03903" alt="Screenshot of a CSS code diff between version 1.01 and 1.02 for an Autocomplete component, with 'Apply Changes' and 'Cancel' buttons." width="932" height="742" data-path="doc/integration/bigcommerce/search-settings/diff-editor.jpeg" />
