A store owner wants to add quantity selectors to Shopify’s “Frequently Bought Together” section (from the Search & Discovery app), which currently only allows adding products at a fixed quantity of 1.
Current Situation:
The native Search & Discovery app doesn’t include a quantity selector option in its settings
Shopify support was contacted but a coding solution is needed
Solution Provided:
A detailed code implementation was shared involving four components:
HTML markup - Add a quantity selector wrapper with minus/plus buttons and a number input field
CSS styling - Style the selector with flexbox layout, borders, and button formatting
JavaScript logic - Initialize quantity selectors, handle increment/decrement clicks, enforce minimum value of 1
Cart integration - Update the cart addition function to read quantity values from inputs when adding complementary items
The solution requires editing the theme’s section file that handles product recommendations. Visual examples (GIF and screenshots) demonstrate the working quantity selector interface.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
Hi, so I noticed that when using the shopify complimentary products it does not show a quantity selector, and I would like it too. For example on this page https://alanrichardtextiles.com/products/drmb30 you see there is some drop down options, and then below there Is the “frequently bought together” products. I would like the customer to be able to also select quantities for the products in the frequently bought together section. Can someone please explain how I would set that up?
Check the App or Feature- Determine which app or feature you are using for the “frequently bought together” section. Apps like Frequently Bought Together by Code Black Belt or Shopify’s built-in functionality might need direct app settings changes.
Check the app’s settings to see if it already offers an option to enable the quantity selector.
I have also reached out to support… I was more so looking for a coding expert who could point me in the right direction as to what code to use and where to manually make the quantity selector show.
To add a quantity selector to the “Frequently Bought Together” section, you’ll need to modify your theme code. Here’s a brief outline of what you can do:
Go to Online Store > Themes > Actions > Edit Code.
Find the section that handles the frequently bought together products.
Add an HTML input field for the quantity, like this:
HTML:
Adjust the JavaScript to ensure the quantity is added correctly to the cart.
If you’re not familiar with coding, it’s best to consult a Shopify expert to implement this
I ran into the exact same limitation with Shopify’s complementary products — the Search & Discovery widget doesn’t support quantity selectors at all, and Shopify confirmed it can’t be customized from the app side.
If you’re comfortable editing theme code, you can inject a custom qty selector, but it becomes tricky because you also have to override the add-to-cart behavior to pass the selected quantity for each complementary item. It’s doable, but it’s a fair amount of JS/Liquid work.
For my store, instead of rebuilding that whole component, I ended up using a lightweight rule-based app to control quantities directly on the product and cart (min/max per item, enforce quantity before checkout, etc.). It doesn’t modify the complementary block visually, but it lets customers pick the correct quantity on the main PDP and still enforces limits cleanly.
You’ll need to customize the “frequently bought together” snippet to add quantity inputs for each product. In the liquid code, iterate over the recommended products and display a number input for each variant. Then, modify your AJAX add-to-cart to read those quantities when adding all products at once.
Hi! To allow customers to choose quantities for each product in the “Frequently Bought Together” section, you would need custom development, because Shopify’s default features only support selecting items on or off, without quantity selectors or additional customization.
However, you can achieve this very easily with Easify Product Options, no coding required. The app allows you to build your own fully customizable “Frequently Bought Together” group, and most importantly, each product in the group can have its own quantity selector.
Here’s an example I’ve created so you can see how it works:
First, you simply create a new Option Set in Easify and add the related products using a display type such as Checkbox, Product List, or Image. For each linked product, you can enable the “Allow Quantity Selector” option, allowing customers to increase or decrease the quantity directly on the product page.
The app combines simplicity with reliability, making it perfect for personalized products. And if you run into any issues, Easify’s support team is fantastic!