Skip to main content

Smart Cart: Set Up and Publish Your Cart

Create a Smart Cart, set your Shopify theme's Cart type, hide your theme's own cart drawer, and publish the Smart Cart to your storefront.

Written by Tom

Use this article to take a Smart Cart from nothing to live on your storefront. You will create the cart in your Rebuy admin under Cart & Merchandising > Smart Cart, set your Shopify theme's Cart type, hide your theme's own cart, and publish.

The Smart Cart is a flyout cart that Rebuy renders in place of the cart experience your Shopify theme provides. It does not require Shopify Plus.

This article covers setup and publishing. What each component does is covered in the component articles linked from Smart Cart Overview, and what to do when a published cart misbehaves is covered in Smart Cart: Fix Conflicts Between the Smart Cart and Your Shopify Theme.

Enable the Rebuy Connector app embed on your live theme

The Smart Cart needs the Rebuy Connector app embed, since the Smart Cart appears on your storefront only after Rebuy loads, and Rebuy loads through the Rebuy Connector. Set it up before you build a Smart Cart. It takes a setting in your Shopify theme and a setting in your Rebuy admin, and turning on one never turns on the other.

  1. In your Shopify admin, go to Online Store, then Themes.

  2. On your published theme, click Customize.

  3. In the left panel, open App embeds.

  4. Find Rebuy Connector, switch it on, and click Save.

  5. In your Rebuy admin, go to Settings, then App Settings.

  6. In the Load Rebuy through the Rebuy Connector panel at the top of the page, turn on Enable Rebuy JS via Rebuy Connector. It saves as soon as you turn it on.

Smart Cart setup: the App embeds panel in the Shopify theme editor with the Rebuy Connector app embed toggled on
Smart Cart setup: Rebuy App Settings with Enable Rebuy JS via Rebuy Connector turned on in the Load Rebuy through the Rebuy Connector panel

If your Smart Cart is published and does not appear on your storefront, check the Rebuy Connector settings before you look at any Smart Cart setting. The Rebuy Connector loads Rebuy only while the app embed is on in your published theme and Enable Rebuy JS via Rebuy Connector is on in your Rebuy admin. If the Smart Cart appears only on pages that have a Rebuy widget block, the Rebuy Connector is not loading Rebuy yet, since a widget block loads Rebuy on its own page only.

Shopify saves app embeds separately for each theme, so turn the Rebuy Connector on in any new theme before you publish it, or the Smart Cart stops appearing when you switch themes. Stores that still load Rebuy through Enable Rebuy JS via script tag (legacy, ends Mar 1, 2027) need the Rebuy Connector set up before March 1st, 2027, when Shopify stops running script tags and the Smart Cart stops appearing on stores that load Rebuy only that way. Load Rebuy Faster explains each Rebuy loading setting.


Create a Smart Cart

You create a cart from the Smart Cart overview page in your Rebuy admin, and the new cart starts out disabled so nothing changes on your storefront until you publish it.

  1. Go to Smart Cart in your Rebuy admin under Cart & Merchandising.

  2. Click New Smart Cart. The Create New Smart Cart dialog opens.

  3. Enter a Name. This is what you will see in the cart list, so name it for what it is doing rather than for the date.

  4. Under Select your Layout, choose Single Column or Double Column. Double Column adds a Cross-Sells anchor beside the cart body. You can change the layout later in the editor.

  5. Under Smart Cart Widget, leave Create a new Cross-Sell widget for this Smart Cart checked to get a recommendations widget built for this cart, or clear it if you want to attach an existing cart widget instead.

  6. Click Create Smart Cart.

Rebuy opens the new cart in the Cart Editor with a starting set of components already placed: Cart Items, Cart Subtotal, Checkout Area, Title Bar, Cart Share, Login Button, and a Cross-Sell Widget. If the New Smart Cart button is greyed out and reads Max Reached, you are at the limit of 45 carts and need to delete one first.

Smart Cart setup: the Create New Smart Cart dialog with the Name field, the Single Column and Double Column layout tiles, and the checkbox to create a new Cross-Sell widget for this Smart Cart

Build the cart before you publish it

Building the cart means adding, removing, and configuring components in the Cart Editor, and it is worth finishing before you publish, since a published cart is live to shoppers the moment you enable it.

Open the cart from the Smart Cart overview page and work through the components you want. Smart Cart: Build Your Cart in the Cart Editor covers layouts, anchors, and how to add or remove a component, and each component article is linked from Smart Cart Overview.

The Smart Cart inherits its colors, fonts, and other visual defaults from your Rebuy theme, so restyling the theme restyles the cart. See Manage Rebuy Theme. Any styling your Rebuy theme does not offer needs CSS code. See Smart Cart CSS Customization Guide.

Preview a Smart Cart on your storefront before publishing

Preview opens your live storefront with the cart you are editing rendered on it, without publishing that cart and without changing which cart your shoppers see.

  1. Go to Smart Cart in your Rebuy admin under Cart & Merchandising.

  2. Click the Preview icon on the cart's row, or click Preview in the top bar of the Cart Editor.

  3. Your storefront opens in a new tab with Rebuy's preview bar across the top.

The preview URL carries ?preview_smart_cart= followed by the cart's ID, and Rebuy also writes that ID to a cookie so the preview follows you as you browse to other pages on the storefront. Use the preview bar's exit control to end the preview, which clears the cookie and strips the preview parameters from the URL. Learn more about Rebuy's storefront preview mode at Using Rebuy preview mode.

Smart Cart setup: a storefront address bar showing the preview_smart_cart query parameter followed by the cart ID, which is how Rebuy previews an unpublished cart


Set your Shopify theme's cart Type to Drawer

Your Shopify theme's cart Type setting decides what happens when a shopper adds a product to the cart. Rebuy recommends setting the cart Type to Drawer on every store that uses the Rebuy Smart Cart. With Drawer, shoppers stay on the page they are on, and the Smart Cart opens there. It also keeps your theme's own cart ready as a backup for any page where the Smart Cart does not load. That happens, for example, when the Rebuy Connector app embed is off.

The table below lists each cart Type, what happens with the Smart Cart, and what happens when the Smart Cart does not load.

Cart Type

With the Smart Cart

When the Smart Cart does not load

Drawer

The shopper stays on the page and the Smart Cart opens. Your theme's drawer also opens behind it until you hide your theme's drawer from the Smart Cart's settings.

Your theme's drawer opens, and shoppers check out from it.

Page

In many themes, including Shopify's Dawn, add to cart sends the shopper to Shopify's /cart page. The Smart Cart does not load on /cart, so the shopper sees your theme's cart page without the Smart Cart's upsells or Tiered Progress Bar.

Shoppers check out from your theme's /cart page.

Popup notification (only some themes, such as Shopify's Dawn)

Your theme's small added-to-cart popup can appear together with the Smart Cart. Set the cart Type to Drawer instead, so the steps in this article for hiding your theme's drawer apply.

Shoppers reach checkout through your theme's /cart page.

The Smart Cart does not change this setting for you. To set it in your Shopify admin:

  1. Go to Online Store, then Themes.

  2. On your published theme, click Customize.

  3. In the left panel of the theme editor, click the gear icon to open Theme settings.

  4. Open the Cart group. If your theme has no group called Cart, look for the group named for your theme's cart or drawer.

  5. Set Type to Drawer.

  6. Click Save.

Smart Cart setup, where the Shopify theme cart type setting lives: the Theme settings gear in the theme editor left panel, and the Cart group showing the Type setting with its Page and Drawer options

After you save, the Smart Cart and your theme's drawer both open when a shopper adds a product. Do not stop here. Shoppers see both carts until you hide your theme's drawer. The section on keeping your theme's native cart as a fallback shows how to hide it from the Smart Cart's settings while keeping it ready as a backup.

To check the change, add a product from a product page on your storefront. You stay on the page you were on, and the Smart Cart opens.

Some themes have no cart Type setting at all. If yours has none, see the section on add to cart still going to your cart page.

Note: To stop a redirect to /cart, set your Shopify theme's cart Type to Drawer rather than changing the Smart Cart's Product Form Submission Behavior to Stay on current page. That option keeps the page from changing, but your theme still sends its own add to cart, which can add the same product a second time.

When add to cart still goes to your cart page

Adding a product can still take a shopper to the Shopify cart page /cart after you have set Type to Drawer, and some themes do not offer a cart Type setting to change in the first place. In both cases the shopper lands on a page where the Smart Cart is not present.

If you changed the setting, confirm the change actually saved on the theme your storefront is publishing rather than on a draft theme.

If your theme has no cart Type setting in Theme settings, or the change saved and shoppers still land on /cart, the navigation is coming from your theme's own code or 3rd party apps which Rebuy cannot change from the app. Your Shopify theme developer can remove that navigation, or you can switch to a theme that does not have it. Smart Cart: Troubleshoot Common Storefront Problems covers how to tell which of these it is.

Keep your theme's native cart as a fallback instead of turning it off

Rebuy recommends keeping your Shopify theme's native cart turned on and hiding it from inside the Rebuy Smart Cart's settings. Do not delete your theme's cart drawer or its section from your theme. Do not hide it with CSS in your theme's own files either.

Hiding it from the Smart Cart's settings keeps your theme's cart as a backup. Code in the Smart Cart's settings runs only on a page where the Smart Cart loads. On a page where the Smart Cart does not load, nothing hides your native cart. The cart icon and Add to cart then open your theme's own cart, and shoppers check out from it as usual. This happens, for example, when the Rebuy Connector app embed is off on a theme or no Smart Cart is live on your store.

CSS in your theme's own files loads with your theme whether or not the Smart Cart loads. CSS there hides your native cart on every page, so shoppers have no cart on a page where the Smart Cart is not there. A cart drawer deleted from your theme has the same result.

Both pieces of code that hide your theme's cart drawer go in the Smart Cart's settings:

  • CSS in the Smart Cart's Custom CSS box, under Global Settings > Advanced, makes your theme's cart drawer invisible.

  • One line of JavaScript in the Hide Callback, under Global Settings > Advanced > Event Callbacks, closes your theme's drawer whenever the Smart Cart closes.

CSS alone hides the drawer without closing it. Your theme then still treats its drawer as open, and in many themes the page will not scroll after the shopper closes the Smart Cart. The Hide Callback line is what closes the drawer.

Each Smart Cart keeps its own Custom CSS and Hide Callback, so add the code to every Smart Cart you publish. If only the Smart Cart opens when you add a product, your theme has no cart drawer to hide, and you can skip the steps below.

The Smart Cart's Use Cart Page setting does not affect this backup, so keep it on or off as you prefer. When it is off, shoppers who visit Shopify's /cart page go to your home page with the Smart Cart open. That redirect also happens only when the Smart Cart loads. When the Smart Cart does not load, /cart shows your theme's cart page with its own checkout button.

Step 1: Find your theme's cart drawer selectors

Hiding your theme's cart drawer from the Rebuy Smart Cart starts with finding names from your theme, called selectors. You need a selector for each of the following:

  • The outermost element that wraps your theme's whole cart drawer.

  • The drawer's dark backdrop, if the backdrop sits outside that element.

  • The button that closes your theme's drawer, which is usually an X.

Find them in Google Chrome on your storefront, with your theme's cart drawer open. Add a product or click the cart icon to open it. If a Smart Cart is already live, close the Smart Cart first, since your theme's drawer stays open behind it until you hide it.

  1. Right-click inside your theme's cart drawer and choose Inspect. Chrome's Elements panel opens with that spot's line selected.

  2. Move your mouse over the lines higher up in the panel that sit further to the left. Each of those lines wraps the indented lines under it, and Chrome highlights it on your page as you hover.

  3. Stop at the line whose highlight covers your whole drawer. That line is the outermost element.

  4. Check whether that highlight also covers the dark backdrop beside the drawer. If it does not, the backdrop is separate. Right-click the dark area, choose Inspect, and find its line the same way.

  5. Turn each line into a selector, using the list below.

Smart Cart, finding your theme's cart drawer selector: Chrome's Elements panel with the cart-drawer line selected and the theme's whole cart drawer highlighted on the storefront, marking the outermost drawer element

You turn an element's line into a selector in one of these ways:

  • If the line has an id, such as id="CartDrawer", use # followed by the id, which gives #CartDrawer.

  • If the tag name contains a dash, such as <cart-drawer ...>, use the tag name as written, which gives cart-drawer.

  • Otherwise, use a dot followed by one of the line's class names. Pick the one that mentions the cart or the drawer, or close for a close button. For class="cart-drawer drawer", that gives .cart-drawer.

To check a selector, click anywhere in the Elements panel and press Control+F (Command+F on a Mac). Type the selector in the search bar that opens, and Chrome selects the first line that matches. Hover that line. If the highlight covers the right part of your page, the selector works. If nothing matches, or another part of the page lights up, try a different name from the same line.

Find your theme's close button the same way. Right-click the X that closes your theme's drawer, choose Inspect, turn its line into a selector, and check it.

Smart Cart, finding your theme's cart drawer close button selector: Chrome's Elements panel with the drawer__close button line selected, the X button that closes the theme's cart drawer

If you cannot find your theme's selectors, contact Rebuy Support with your store's URL. The team can help you find the code that hides your theme's cart.

Step 2: Hide the drawer with CSS

The CSS that hides your theme's cart drawer goes in the Rebuy Smart Cart's Custom CSS box. In your Rebuy admin, open the Smart Cart, click the Global Settings gear in the editor sidebar, and open Advanced. Paste this CSS into Custom CSS. Replace each capitalized placeholder with your own selector, including its # or . as needed.

Hide your theme's native cart, step 2: the Smart Cart Custom CSS box under Global Settings with .smart-cart--enabled cart-drawer set to display none, which hides the theme's own cart drawer on pages where the Smart Cart loaded

Snippet template:

/* Hides the theme's own cart drawer on pages where the Smart Cart loaded */
.smart-cart--enabled YOUR-DRAWER-SELECTOR {
display: none !important;
}

/* Only if your theme's dark backdrop sits outside the drawer */
.smart-cart--enabled YOUR-BACKDROP-SELECTOR {
display: none !important;
}

If your theme's backdrop is not separate from the drawer, delete the second block. Then click Save.

Keep the space between .smart-cart--enabled and your selector. Keep !important, since your theme's own styling for its drawer often outranks CSS added here. Start every selector with .smart-cart--enabled, which ties the CSS to pages where the Smart Cart has loaded.

Use .smart-cart--enabled here, not .rebuy-cart-visible. The rebuy-cart-visible class is only on the page while the Smart Cart is open, so your theme's drawer would show again each time the Smart Cart closes.

Step 3: Close the drawer with the Hide Callback

The Rebuy Smart Cart's Hide Callback closes your theme's cart drawer by clicking your theme's own close button whenever the Smart Cart closes. CSS hides the drawer without closing it, and this line is what closes it.

In your Rebuy admin, open the Smart Cart, click the Global Settings gear, and open Advanced > Event Callbacks. Check the Hide Callback box. A code box labeled Edit Hide Callback (JavaScript) appears. Paste this line into it. Replace the placeholder with your close button's selector, including its # or ..

Hide your theme's native cart, step 3: Smart Cart Event Callbacks with the Hide Callback box checked and a line in Edit Hide Callback (JavaScript) that clicks the theme's drawer__close button, closing the theme's cart drawer whenever the Smart Cart closes

Snippet template:

/* Closes the theme's own cart drawer whenever the Smart Cart closes */
document.querySelector('YOUR-CLOSE-BUTTON-SELECTOR')?.click();

Use the close button's selector on its own here, without .smart-cart--enabled, and keep the quote marks around it. Then click Save.

Step 4: Test your storefront

Test the Rebuy Smart Cart on your storefront after you save the code that hides your theme's cart drawer. Reload your storefront, add a product, and confirm that only the Smart Cart opens. Close the Smart Cart and scroll the page. If the page will not scroll, Smart Cart: Fix Conflicts Between the Smart Cart and Your Shopify Theme covers what to add next.

Then run the check in the next section, which confirms your theme's cart takes over when the Smart Cart does not load.

Example: the finished code for Shopify's Dawn theme

This example shows the finished Rebuy Smart Cart code that hides the cart drawer in Shopify's Dawn theme. On an unmodified Dawn theme, the outermost drawer element is <cart-drawer>, so the selector is cart-drawer. The backdrop is inside it, so no backdrop CSS is needed. The close button is <button class="drawer__close">, so its selector is .drawer__close. In Dawn, clicking that button also lets the page scroll again.

For example a Shopify Dawn theme, paste this CSS into the Smart Cart's Custom CSS box.

/* Hides the theme's own cart drawer on pages where the Smart Cart loaded */
.smart-cart--enabled cart-drawer {
display: none !important;
}

Then check the Hide Callback box and paste this line into Edit Hide Callback (JavaScript).

/* Closes the theme's own cart drawer whenever the Smart Cart closes */
document.querySelector('.drawer__close')?.click();
Smart Cart, hiding the Dawn theme cart drawer: Global Settings with the CSS that hides cart-drawer in the Custom CSS box, and the Hide Callback box checked with the line that clicks the drawer__close button

Other themes use other names, and a customized Dawn theme can differ. Always check the names in your own theme with the steps in the section on finding your theme's cart drawer selectors.

Check that your theme's cart takes over when the Smart Cart does not load

You can check that your theme's native cart takes over from the Rebuy Smart Cart without disabling it by blocking Rebuy in your own Google Chrome browser. Shoppers on your live store are not affected and still see the Smart Cart. The block applies only in your own browser, while the Inspect panel is open.

  1. Open your storefront, right-click the page, choose Inspect, and open the Network tab.

  2. Reload the page with the Network tab still open, then type rebuy.js in the tab's filter box. The rebuy.js request is listed only when the page reloads while the Network tab is open. Right-click it and choose Block requests > Block request domain. Older versions of Chrome show Block request domain directly in the right-click menu.

  3. Reload the page again. Rebuy does not load, so the Smart Cart does not appear.

  4. Add a product to the cart. Your theme's own cart opens with the product in it, as a drawer or as your /cart page, depending on the cart Type set in your Shopify theme.

  5. Click the checkout button in your theme's cart and confirm that Shopify checkout opens.

  6. Remove the block when you finish. Chrome lists cdn.rebuyengine.com in the Request conditions tab at the bottom of the Inspect panel, or in Network request blocking in older versions of Chrome. Uncheck the entry or delete it, then reload the page and confirm the Smart Cart is back.

Until you remove the block, Chrome keeps blocking Rebuy every time you open the Inspect panel.

Smart Cart fallback check: the Chrome Network tab filtered by rebuy.js, with the rebuy.js request right-clicked and Block request domain chosen under Block requests, which blocks Rebuy in this browser only

If no cart opens when you add a product with Rebuy blocked, something outside the Smart Cart is still hiding or replacing your shopify theme's native cart. Most often it is CSS in your theme's files that hides the cart, or a cart drawer removed from your theme. The FAQ on getting your theme's native cart back covers what to do.

Publish your Smart Cart

Publishing makes the cart you are looking at the live cart on your online store, replacing whatever cart your storefront is currently showing shoppers.

You can publish from either place:

  • In the Cart Editor, switch the Live toggle in the top bar on.

  • On the Smart Cart overview page, open the actions menu at the end of the cart's row, marked with three dots, and choose Enable.

Note: Only one Smart Cart can be live per store, and the limit is enforced when the change is saved. Publishing a cart disables whichever cart was live before it, including a Legacy cart. There is no way to run one Smart Cart for one audience and a different Smart Cart for another.

If the toggle refuses and you see Some issues must be resolved before you can enable this cart, a component in the cart is missing something it needs. Rebuy shows one message per problem, so read them, open the component the message names, complete it, save, and try publishing again.

Smart Cart setup: the Cart Editor top bar with the Live toggle switched on, which publishes the cart to the online store

After you publish, add a product on your storefront to check the Smart Cart. If your theme's native cart drawer also opens behind it, hide your theme's drawer with code in the Smart Cart. The code needs selectors from your own theme, which tell it which part of the page is your theme's drawer. The section on keeping your theme's native cart as a fallback shows how to find your selectors in your browser and where the code goes. If only the Smart Cart opens, your theme has no drawer to hide.


Replacing your live Smart Cart or switching to a new Shopify theme

One Rebuy Smart Cart is live for your whole store. It shows on every Shopify theme where the Rebuy Connector app embed is on. To replace your live Smart Cart, publish the new one, as covered in the section on publishing your Smart Cart. Your previous Smart Cart turns off.

Before you publish a new Smart Cart, check that it hides your theme's native cart the same way your live one does. If your live Smart Cart has hide code in Global Settings > Advanced, copy it into the same boxes in the new one. You can also start from Duplicate on your live Smart Cart, in the actions menu on the Smart Cart overview page. It copies every setting.

Setting up a new Shopify theme for your Smart Cart

A new Shopify theme needs the Rebuy Connector app embed and its cart Type set for your Rebuy Smart Cart. Shopify saves both separately for each theme.

  1. In your Shopify admin, go to Online Store > Themes and click Customize on the new theme.

  2. Open App embeds, turn on Rebuy Connector, and click Save.

  3. In the same Shopify theme editor, set the new theme's cart Type, as covered in the section on setting your Shopify theme's cart Type to Drawer.

Before you publish the new theme, test it with your Smart Cart, as covered below. If its native cart opens behind the Smart Cart, the hide code needs selectors from the new theme. The section on finding your theme's cart drawer selectors shows how. A different theme usually needs new selectors, and a duplicate of your current theme usually does not.

If your hide code is in your live Smart Cart, put the new selectors in a duplicate of that Smart Cart, not in the live one. Your published theme keeps working with the live one. Publish the duplicate when you publish the new theme.

Testing your Smart Cart on a draft Shopify theme

Test a Rebuy Smart Cart on a draft Shopify theme by using Shopify's theme preview and the Smart Cart's storefront preview together. The Rebuy Connector app embed must be on in that theme. Shoppers keep your published theme and live Smart Cart while you test.

  1. In your Shopify admin, go to Online Store > Themes, open the menu on the draft theme, and choose Preview.

  2. In the same browser, open the Smart Cart in your Rebuy admin and click Preview in the Cart Editor's top bar. Your storefront opens on the draft theme with that Smart Cart, and Shopify's and Rebuy's preview bars both show.

  3. Add a product and check that only the Smart Cart opens.

  4. Close the Smart Cart, scroll the page, then click the cart icon to open it again.

Smart Cart: Set Up and Publish Your Cart, testing on a draft Shopify theme. The storefront shows Shopify's theme preview bar and Rebuy's Smart Cart preview bar together.


How do I connect my theme's cart icon to the Smart Cart?

When clicking your theme's cart icon does nothing at all, the Rebuy Smart Cart is not connected to that icon yet. No cart opens, and the page stays where it is. Rebuy connects most cart icons on its own. On some themes, Rebuy cannot find the cart icon by itself. A short script then tells the Smart Cart to open when that icon is clicked.

To find your cart icon's selector, right-click the cart icon on your storefront and choose Inspect. Chrome's Elements panel opens with the cart icon's line selected. In the example below, that line is <cart-icon class="header-actions__cart-icon">, so the selector is .header-actions__cart-icon. The section on finding your theme's cart drawer selectors shows how to turn any line into a selector. Rebuy Support can help you find the selector and add the script.

Smart Cart cart icon does nothing when clicked: Chrome's Elements panel with the theme's cart-icon line selected, showing the class header-actions__cart-icon that becomes the selector in the Ready Callback script

To add the script, open your Smart Cart and go to Global Settings, then Advanced, then Event Callbacks. Check the Ready Callback box, and paste the script below into Edit Ready Callback (JavaScript). The script uses .header-actions__cart-icon, the selector from the example below. Replace it with the selector your theme uses for its cart icon.

/* Opens the Smart Cart when the theme's own cart icon is clicked */
document.querySelector('.header-actions__cart-icon')?.addEventListener('click', () => {
Rebuy.SmartCart.show();
});

Save, reload your storefront, and click the cart icon to check that the Smart Cart opens.

Smart Cart cart icon does nothing when clicked: Event Callbacks with the Ready Callback box checked and a script in Edit Ready Callback (JavaScript) that opens the Smart Cart when the theme's cart icon element is clicked

The Smart Cart does not open on Shopify's cart page (/cart) or on the checkout page, so the script cannot open it there. Test it on any other page of your storefront.

If the click does something else, such as opening your theme's own cart or taking you to your /cart page, the script is not the fix. Smart Cart: Fix Conflicts Between the Smart Cart and Your Shopify Theme walks through those checks.


Frequently asked questions

Why does adding a product open my theme's cart instead of the Smart Cart?

Adding a product opens your theme's cart instead of the Smart Cart when the shopper is being taken somewhere the Smart Cart is not, or when the Smart Cart is not on the page at all. Work through this order: confirm the Rebuy Connector app embed is on in your published theme and Enable Rebuy JS via Rebuy Connector is on in your Rebuy admin under Settings > App Settings, confirm the Smart Cart is published and shows as Live in your Rebuy admin, then check where you land after adding a product on your own storefront and, if that is your /cart page, set your Shopify theme's cart Type to Drawer, since the Smart Cart does not render on /cart. If your theme has no cart Type setting to change, the navigation is built into your theme and your Shopify theme developer has to remove it.

How do I stop my theme's cart and the Smart Cart from appearing at the same time?

You stop your theme's cart and the Smart Cart from appearing together by hiding your theme's cart from inside the Smart Cart's settings. CSS in the Smart Cart's Custom CSS box makes your theme's drawer invisible. A line in its Hide Callback closes your theme's drawer when the Smart Cart closes, so the page keeps scrolling. The steps and a finished example are in the section on keeping your theme's native cart as a fallback.

Can I stop the Smart Cart from loading on certain themes or pages?

Yes, you can stop the Smart Cart from loading on a specific theme or a specific page with a short script in Rebuy's ready callback. Go to Global Settings, then Advanced, then Event Callbacks, and use the ready callback:

/* Removes the Smart Cart on one product page, and cleans up the body class it leaves behind */
if (window.location.pathname.includes('your-product-handle')) {
Rebuy.SmartCart.destroy();
document.body.classList.remove('smart-cart--enabled');
}

To scope it to a theme instead of a page, test Shopify.theme.name in place of the pathname check. Removing the class yourself matters, since destroy() tears the cart down but leaves smart-cart--enabled on the <body> tag, and any CSS you scoped to that class would otherwise keep hiding your theme's cart on a page that no longer has a Smart Cart.

Why did our reached-checkout numbers drop after switching to the Rebuy Smart Cart?

A drop in reached checkout or similar numbers in Shopify Analytics after you switch to the Rebuy Smart Cart is usually a change in how visits are counted. Start by comparing your orders and sales for the same dates. If those held steady, shoppers are buying as before and only the count moved.

Then check where a shopper lands after adding a product. A common cause is your Shopify theme's cart Type set to Page, which sends shoppers to Shopify's /cart page, where the Smart Cart does not open. Add a product on your own storefront. If you land on the /cart page, set the cart Type to Drawer in your Shopify theme editor. Keep your theme's cart turned on and hidden behind the Smart Cart, as covered in the section on keeping your theme's native cart as a fallback. Then compare the numbers over a full week.

How does the Rebuy Smart Cart work with my pixels, ad tracking and Google Analytics?

The Rebuy Smart Cart sends no events to Google Analytics, Meta (Facebook) or Shopify's customer events. It also does not record which ad or campaign brought a shopper to your store. Shopify, your theme, and your pixels and tracking apps record those, and you manage app pixels and custom pixels in your Shopify admin under Settings > Customer events. Rebuy adds its own Smart Cart attribution to orders for Rebuy's reports, and it does not change an order's marketing source in Shopify. Leave Cart Attribution Tracking on in the Smart Cart's Global Settings, since turning it off does not fix a pixel problem and removes Rebuy's Smart Cart metrics.

Duplicate add-to-cart events in your pixels usually mean the Smart Cart and your theme are both handling the same add to cart from your product page. Set the Smart Cart's Product Form Submission Behavior to Disabled (Smart Cart does not manage) so your theme handles it alone. On most themes, the Smart Cart still opens when a shopper adds a product, as covered in Smart Cart: Global Settings. To see Smart Cart opens in Google Analytics 4, use the Littledata integration covered in Littledata and Rebuy Integration. For questions about how your pixels, Google Analytics, Meta or another tracking app is set up, contact Shopify Support or the provider of that app.

I already turned off or removed my theme's native cart. How do I get it back as a fallback for the Smart Cart?

Getting your theme's native cart back as a fallback for the Rebuy Smart Cart most often means changing one setting in your Shopify theme editor. If your theme's cart Type is set to Page, set it back to Drawer, as covered in the section on setting your Shopify theme's cart Type to Drawer. If CSS in your theme's own files hides the drawer, delete it there. Then hide the drawer from the Smart Cart's Custom CSS box instead. Hidden this way, your theme's cart stays ready behind the Smart Cart, as covered in the section on keeping your theme's native cart as a fallback.

If the drawer's code or section was deleted from your theme, restoring it is a change to your theme code, made by your own Shopify theme developer. Then run the check in the section on checking that your theme's cart takes over when the Smart Cart does not load.

Which Smart Cart problems does the fallback to my theme's native cart cover?

The fallback to your theme's native cart covers a page where the Rebuy Smart Cart does not load. Once the Smart Cart loads, it is your shoppers' cart, and your theme's cart stays hidden. The fallback does not step in if a change you made to the Smart Cart's event callbacks or a custom template stops it from working. Test those changes on your storefront, all the way to checkout, before you leave them live.

Your theme's native cart can also open instead of the Smart Cart when the cart icon is clicked while the page is still loading. This comes from how your store's page loads, not from the fallback. When you test, let the page finish loading before you click the cart icon. Smart Cart: Fix Conflicts Between the Smart Cart and Your Shopify Theme explains why this happens.

Did this answer your question?