company logo

Help center

Go to Biscuits Bundles
View Biscuits on the Shopify App Store
All collectionsIntegrationsCart drawer and cart upsell apps (Rebuy, UpCart, Monster Cart, Slide Cart, iCart)

Cart drawer and cart upsell apps (Rebuy, UpCart, Monster Cart, Slide Cart, iCart)

Stop a cart drawer or upsell app (Rebuy, UpCart, Monster Cart, Slide Cart, iCart) from intercepting the bundle's add to cart.

Biscuits Bundles works alongside most cart drawer and upsell apps, but there is one common conflict to be aware of and fix.

Why the conflict happens

A bundle has its own add-to-cart flow, because it adds several component products at once. Cart drawer and upsell apps work by attaching their own code to the add-to-cart buttons on your store, so they can run their version of "add to cart" and open their drawer. When that code also runs on the bundle's add-to-cart button, it intercepts the bundle's own add to cart and can break it, so the bundle does not add or the drawer does not open. For an ordinary product a cart app can take the click straight away. A bundle needs a moment first, to check the selections, build the bundle and add it as one request, which is what the cart app's code cuts short.

The fix is to stop the cart app from running its own add to cart on the bundle's button, so the bundle can add itself. This is not the same as getting the app to open its cart: opening the drawer after the fact does not help if the app has already broken the add. The sections below cover how to disable each app's add to cart on the bundle's button, page or template.

Localised bundles: on a localised bundle with any discount type except a fixed total price, the Biscuits add to cart button is always used, and the theme's own button and express checkout buttons are hidden on its page. If a cart app or custom code hides or replaces the Biscuits button there, the bundle will not work at all, so the fixes below matter even more. A localised bundle with a fixed total price adds to the cart like any other bundle. See Localised bundles: pricing for Shopify Markets.

Your theme's own add to cart button: we recommend the Biscuits add to cart button. Localised bundles with any discount type except a fixed total price always use it (see above). On other bundles, with the summary bar turned on, the bar has its own Biscuits button, and your theme's button stays beside it. On your other bundles, your theme's own button is used when Show add to cart button on the Biscuits Bundle Builder block is set to No. If the bundle adds to the cart as normal with your theme's button and your cart app, keeping your theme's button is fine. You do not need to switch.

Note: Other apps' menus, settings and steps change over time and are outside our control. Always check the app's own documentation for the latest, and contact that app's support for anything specific to their app. The pointers below are a starting point.

The general approach

There are five ways to stop a cart app taking over the bundle's add to cart, in order of preference:

  1. Turn off the app's add-to-cart takeover with its public API, set through the Custom JS field on the Biscuits Bundles app block. That field only loads on templates where the bundle is placed, so this scopes the change to your bundle pages and leaves the app working everywhere else. UpCart is the clearest example (below).

  2. Use a setting inside the cart app that disables or prevents its add-to-cart handling, if it has one (for example iCart's "Prevent" option).

  3. Ask the cart app's support to exclude the bundle's button or template, if it offers neither of the above. Give them your bundle page URL and the bundle button's selector: the custom element biscuits-bundle-add-to-cart, whose button carries the class biscuits-bundle-add-to-cart__button.

  4. Ask Biscuits Bundles support to investigate code for the Custom JS field. If the cart app has no setting, no public API and will not exclude the bundle's button, support can investigate whether code in that field keeps the app's code off the button. Whether that is possible depends on the cart app and the theme.

  5. Turn the Biscuits add to cart button off and use your theme's own. Not available on every bundle or theme: see below.

Once the app is no longer taking over the add, check the drawer still shows the bundle's components neatly (see Expand items in cart). If disabling the takeover also stops the app opening its drawer on add, you can optionally reopen it on the bundle's biscuits--add-to-cart-success event (see Developer Javascript and events), as the UpCart example below shows.

Turning the Biscuits add to cart button off

On a bundle that adds a single cart line, your theme's own button is already live alongside the Biscuits button, and either one can add the bundle. Turning the Biscuits button off leaves only your theme's button, so the cart app treats the bundle like any other product. Some cart apps add correctly through the theme's button although they break the Biscuits button. Test it before relying on it.

It is not available on every bundle or theme:

  • It is not available on a localised bundle with any discount type except a fixed total price, or when the summary bar is turned on. Both always use the Biscuits button.

  • Some themes' own add to cart buttons cannot be used for a bundle. The app uses a theme button only when it matches its built-in list of button selectors and sits in a form that references the bundle product. If it cannot be used, turning the Biscuits button off leaves the bundle with no working add to cart button, and the page shows “This bundle is unable to be added to cart”.

To try it:

  1. In the Biscuits Bundles app, turn the summary bar off for this bundle if it is on.

  2. In the theme editor, open the product template your bundle uses. In the Biscuits Bundle Builder block, set Show add to cart button to No.

  3. Check the block holding your theme's own add to cart button is visible. Its name varies by theme — Buy buttons, Product form, and others. If it is hidden, show it again with the eye button, or the page will have no add to cart button at all. In the theme editor the Biscuits block also shows “Don't forget to enable the add to cart button.”

  4. On many themes nothing needs doing here: the app already hides the theme's quantity selector. If a quantity box still appears beside the bundle, hide it where your theme exposes it — in some themes a separate block in the product template, in others a setting in the product section.

Then open the bundle's product page on your live storefront, not only in the theme editor, add a bundle and follow it through to checkout. Check the products you chose are all there. The theme editor shows a warning that the live storefront does not.

If a cart app sends its own add instead of your theme's form, the bundle can arrive holding its default components. On a localised bundle with any discount type except a fixed total price, such a line is removed from the cart, with no charge and no error message.

The drawer shows only the bundle, not its items

A bundle goes into the cart as one line with its components attached, the way Shopify's own bundles do. A cart drawer app draws its own cart, so it has to support the components of a native Shopify bundle itself. The guide linked below updates your theme's own cart code, which a drawer app does not use.

If your drawer shows only the bundle product, ask that app's support whether their drawer can list the components of a native Shopify bundle. What another app's drawer shows is controlled by that app.

The drawer shows the wrong items for a bundle

When a customer adds the same bundle more than once with different choices, some cart drawer apps show the first bundle’s items on every copy, or repeat items, even though each bundle in the cart holds its own choices.

To check, go to checkout: it shows each bundle with its own items. If checkout is right, the order will be right too, and only the cart drawer app’s display is wrong. Contact the cart drawer app’s support and tell them that the same bundle added twice with different choices shows the same items in their drawer.

To show the bundle’s items in your theme’s own cart drawer and cart page, see Expand items in cart.

The drawer shows the wrong price for a bundle

If the drawer shows a lower price than the customer chose, and checkout is right, the drawer is reading the bundle product's own price instead of the price on the cart line.

The bundle product in Shopify carries a price the app calculates and saves to the product's variant each time the bundle's settings are saved. With the standard settings that is the cheapest allowed combination with the bundle discount already applied. If the default components have been edited, it is the price of those components. If the discount type is Fixed total price, it is the fixed figure entered. If Update prices automatically is off, the price already on the Shopify product is written back unchanged. On bundles using localised pricing it is also recalculated between saves, within about a day of a component's price changing.

The amount a customer pays is on the cart line, worked out in the cart from the bundle's rules and the options chosen. A cart drawer that reads the line's own price shows that figure; one that reads the product or variant price shows the saved starting price instead.

This is for the cart app's support to change. Ask them to read the cart line's own price rather than the product's price, and send them a link to your bundle page.

A struck-through “was” price works differently, and is not available on a bundle using localised pricing.

On other bundles there are two pre-discount figures a cart app can read. The bundle product's variant carries a compare-at price, set when the bundle is saved, from the same combination before the discount — unless Don't update compare-at price is ticked. The bundle's component lines can also carry the figure as a line item property, under Settings > App settings > Additional line item property settings > Add pricing information as line item properties: Bundle original price adds the combined price of the selected items before any discount, and Line item original price adds each item's own price before the bundle discount. Both need Enable line item properties pass-through switched on, or the bundle to have custom fields. Bundle original price lands only on the component lines named by the Output item properties on setting, which by default is the first product in the bundle.

Displaying the figure is up to the cart app. It has to read the property from the bundle's component lines and convert the value from cents. Ask that app's support whether theirs can.

Rebuy (Smart Cart)

Rebuy Smart Cart is designed to take over the cart, so it expects your theme's native cart to be hidden rather than to coexist, and it does not offer a setting or API to stop it intercepting a specific add-to-cart button or template. If Rebuy breaks the bundle's add to cart, the reliable fix is to have Rebuy's support (or us) exclude the bundle button or template. Give them the selector above and your bundle page URL.

Rebuy's own guides are a useful starting point: Using Shopify Bundles in Rebuy Smart Cart and Rebuy: hide an existing cart drawer. Because Rebuy replaces the cart entirely, getting it to cooperate with the bundle's add to cart can need a small custom callback, so contact Rebuy's support, or Biscuits Bundles support, if there is a conflict. The routes under Monster Cart below apply here too, in the same order.

UpCart (by AfterSell)

UpCart has a public API that can usually be leveraged so we can prevent UpCart from intercepting the Biscuits Bundles add to cart and breaking its functionality.

Try adding the JS below to disable the UpCart code from running on the Biscuits Bundles product page.

Paste this snippet into the Custom JS setting on the Biscuits Bundles App Block:

JavaScript
window.upcartShouldSkipAddToCartInterceptor = true;
window.upcartShouldOpenOnAddToCartBackgroundNetworkCall = false;

document.addEventListener("biscuits--add-to-cart-success", function() {
  if (typeof window.upcartOpenCart === "function") {
    window.upcartOpenCart();
  }
});

If that does not settle it, UpCart has a setting that turns its add to cart handling off altogether: Cart editor > Settings > Cart settings > Advanced Settings > Enhanced Ajax API compatibility. UpCart's documentation says it "tells Upcart to stop intercepting Add to Cart calls" and "allows other apps, such as bundle apps, page builders, customization apps, and product option apps, to function without interference". It applies to your whole store, not just the bundle, and with it on UpCart's drawer may no longer open by itself on an add.

UpCart's own documentation also says that "some buttons added by custom features, such as bundle apps and upsell apps, may not work even when using this feature", so if UpCart keeps intercepting the bundle's add to cart, contact UpCart support to have the bundle button excluded on the product templates you use for your bundles.

iCart Cart Drawer (by Identixweb)

iCart can be told to stop running its add-to-cart handling, under General Settings > Advanced settings (Developers only):

  • To target just the bundle, put the bundle button's selector (.biscuits-bundle-add-to-cart__button) into the "To prevent click event of theme or iCart" HTML Selectors field, then test that the bundle still adds correctly.

  • Or, to switch iCart's add-to-cart handling off across the whole store, tick "Prevent iCart's add-to-cart event" under Prevent Actions. This is simpler but store-wide, and it also turns off iCart's add-to-cart pixel tracking, so test before going live.

See iCart: advanced settings.

[screenshot - iCart Advanced settings, showing the Prevent Actions and HTML Selectors fields]

Monster Cart Upsells

Monster Cart does not offer a setting or public API to stop it intercepting a specific add-to-cart button or template; its public methods only open or refresh its drawer, which does not prevent it taking over the add. There is no setting to switch off, so this needs either a change by Monster's support or code on the store:

  • Ask Monster's support to exclude the bundle button or template, giving them the selector above and your bundle page URL. Start here: the interception comes from Monster Cart's own code, and a change on their side applies to every store.

  • If they cannot, ask Biscuits Bundles support to investigate whether code in the Custom JS field on the app block keeps Monster Cart's code off the bundle's button. This is not possible on every store.

  • Use your theme's own add to cart button for the bundle instead (see “Turning the Biscuits add to cart button off” above).

If you also see Monster's drawer competing with your theme's own cart, turning off your theme's native cart drawer can help. See Monster Cart: developer methods and selectors and Monster Cart: theme drawer conflict fix.

Slide Cart (by AMP)

Slide Cart is the same as Monster Cart here: it has no setting or API to stop it intercepting a specific button or template, only methods that open its drawer. If Slide Cart breaks the bundle's add to cart, the routes under Monster Cart above apply, in the same order: ask Slide Cart's support to exclude the bundle button or template, then ask Biscuits Bundles support to investigate code for the Custom JS field, then your theme's own button.

If Slide Cart's drawer competes with your theme's own cart, disable your theme's built-in cart drawer. See Slide Cart: installing in your theme and Slide Cart: callbacks and methods.

HS Slide Cart Drawer Upsell (by Heysenior)

This is a different app from Slide Cart by AMP above, despite the similar name. Check your Apps list in your Shopify admin to see which one you have. On the storefront its script is named hs-sl-cart.js.

With this app installed, the bundle's add to cart button does nothing at all: the app's own click handler runs first and stops the click before the bundle can add.

This app publishes no settings or documentation, so there is nothing to switch off. Start by asking Heysenior's support to leave the bundle's add to cart button alone, giving them your bundle page URL and the button's selector from "The general approach" above.

If they cannot, send your store's .myshopify.com URL and your bundle page URL to Biscuits Bundles support. The investigation would look at code in the Custom JS field on the Biscuits Bundles app block, to keep the app's handler off the bundle's button and open the drawer after the add. This does not work on every theme.

An upsell app can block the add as well

It is not only cart drawers. An upsell app that puts an offer on the bundle product can stop the bundle being added. If your bundle will not add and an upsell app is running on the bundle product, exclude your bundle products from that app's offers and test again. If that fixes it, tell that app's support, so they can look at why their offer blocks the add.

If it still is not working

[screenshot - a bundle added correctly, with components expanded in a cart drawer]

These conflicts depend on how each store and cart app are set up, and the more advanced ones can need a small amount of custom code. Reach out with the cart app name and your store's .myshopify.com URL and we will help you get it working.

Did this answer your question?
😞
😐
😁