Where to find these
In the cart editor, open Cart settings. The options below are grouped under Behavior and Custom selector.Open the cart when an item is added
Open cart when an item is added controls whether the drawer pops open automatically each time a shopper adds a product. It’s on by default. Turn it off if you’d rather the cart stay closed until the shopper opens it themselves.Theme selectors
Aftersell hooks into your storefront through CSS selectors — for example, to know which element opens the cart, or which cart-icon count to keep in sync. Built-in detection covers the most popular Shopify themes (Dawn, Sense, Crave, Debut, Impulse, Horizon, and many others), so most stores never need to touch these. Adjust a selector only if something isn’t wiring up correctly on your theme.Selector modes
Each selector offers the same three modes:
The selector input is enabled only for the Default + custom and Custom only modes.
The three selectors
How to find a selector
- Open your storefront in a browser (Chrome recommended).
- Right-click the element you want to target — your cart icon, the count number, or the add-to-cart button — and choose Inspect.
- In the panel that opens, find the element that represents it (the count is often a
spaninside the cart icon). - Note its class (starts with
.) or ID (starts with#) — for example.header__cart-count spanor#CartCount. - Back in Cart settings, set the selector to Default + custom or Custom only and paste it in.
- Save, then test on both desktop and mobile.