Quick-Add Power: Mastering 'Add to Cart' Buttons for Complementary Products in Shopify's Ride Theme

Hey everyone! Ever found yourself scratching your head, wondering why that "Add to Cart" button just won't show up on your complementary products in the Shopify Ride theme? You're definitely not alone. This is a common head-scratcher, and it recently sparked a really helpful discussion in the Shopify Community forums. As your friendly neighborhood Shopify expert, I've dug into that thread to bring you the clearest path to getting those quick-add buttons working seamlessly.

The First Check: Are Your Complementary Products Even Assigned?

Before you even think about touching a single line of code, there's a fundamental step that many store owners overlook: actually assigning complementary products to your items. Think of it like this: the button needs something to do. If there are no complementary products assigned, there's nothing for the 'quick add' button to attach itself to. As Tim from Sonder Sites (a real pro in the community!) pointed out, "The Ride quick-add toggle only paints a button if Search and Discovery already has complementary products assigned on that exact product."

So, here’s your crucial first step:

  1. In your Shopify admin, go to Products.
  2. Open the specific product you're working on.
  3. Click the ... (More actions) menu.
  4. Select Edit product recommendations.
  5. Scroll down to Complementary products and make sure that list isn't empty! If it is, go ahead and add some relevant products there.

If that list is empty, no amount of toggling in the theme editor will make a button appear. It's like trying to turn on a light switch when there's no bulb!

Unlocking the Quick Add Button in Your Theme Editor

Once you've confirmed your complementary products are all set, the next stop is your theme editor. This is where most of the magic, or sometimes the mystery, happens. Several community members, like VilladsBFO and Priyasha, highlighted these crucial checks:

  1. In your Shopify admin, go to Online Store > Themes.
  2. Find your Ride theme and click Customize.
  3. Navigate to a product page (or the default product template) where you expect to see the complementary products.
  4. In the left sidebar, find the "Product information" section and click on "Complementary products" within it.
  5. Look for a setting like "Enable quick add button" or "Show quick add." Make sure this toggle is ON.
  6. Crucial: Click "Save" in the top right corner of the theme editor! Then, open your live, published store (not just the editor preview) and perform a hard refresh (Ctrl+Shift+R on Windows, Cmd+Shift+R on Mac) to clear any caching. Sometimes it looks unchanged simply because of caching or an unsaved draft.

A Note on Variants and App Blocks

Another quick tip from the community: if your complementary products have multiple variants (think different sizes or colors), the button might display "Select options" instead of a direct "Add to cart." This isn't a bug; it's simply guiding your customers to pick their preference before adding to the cart.

Priyasha also brought up a great point about the Shopify Search & Discovery app. If you're using its block for complementary products (which is added as an app block on your product page), it might have its own separate "show quick add" toggle within that specific block's settings. It's a different toggle from any general theme setting, so definitely double-check there too!

When Settings Aren't Enough: Diving into Code (with Caution!)

Now, what if you've done all of the above, triple-checked everything, and those buttons are still playing hide-and-seek? This is where the community discussion took a turn towards code. Sometimes, especially with older versions of the Ride theme, the 'quick add' setting might not exist, or you might need a more custom approach. Experts like mastroke and devcoders jumped in with code-based solutions.

However, Tim57 wisely warned against jumping straight to custom code: "Do not paste a custom form into the section until those two checks fail. A hand-rolled /cart/add form on complementary cards often fights Ride’s existing product form and you end up with the wrong variant in the cart." This is a really important heads-up! Always try the built-in theme settings first to avoid potential conflicts.

If you absolutely must go the code route, the general idea involves finding the relevant Liquid file (like product.liquid or a specific product recommendation snippet) and adding a small form that submits the product's first available variant to Shopify's /cart/add.js endpoint. Making it AJAX-driven means the product gets added without the customer leaving the page.

Here are the code snippets shared in the thread, but remember, use these as a last resort and consider consulting a developer:

Liquid Code for the Button:

{%- form 'product', block_product -%}

JavaScript for AJAX Submission:

document.addEventListener('submit', function (e) {
const form = e.target.closest('product-form form');
if (!form || !form.closest('.complementary-products, [data-complementary]')) return;
e.preventDefault();

const formData = new FormData(form);
fetch('/cart/add.js', {
method: 'POST',
body: formData,
headers: { 'Accept': 'application/json' }
})
.then((res) => res.json())
.then((data) => {
if (data.status) {
alert(data.description || 'Could not add to cart');
return;
}
document.dispatchEvent(new CustomEvent('cart:refresh'));
})
.catch((err) => console.error(err));
});

So there you have it! The path to getting those 'Add to Cart' buttons on your complementary products in the Ride theme is usually a straightforward journey through your Shopify admin and theme editor. Start with the basics: assign those complementary products, then check your theme's quick-add toggles, save, and refresh. Only if those steps fail should you consider diving into code, and even then, proceed with caution and perhaps get a developer's help to ensure everything plays nicely together. The community's collective wisdom really shines here, reminding us to check the simple things first before reaching for complex solutions. Happy selling, and here's to making your store as efficient as possible for your customers! If you're looking to start your own online store and haven't yet, Shopify makes it incredibly easy to get started.

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases