--- title: Bundles in Hydrogen description: Display product bundles on your Hydrogen storefront. source_url: html: 'https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles' md: 'https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md' --- ExpandOn this page * [Requirements](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#requirements) * [Ingredients](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#ingredients) * [Step 1: Set up the Shopify Bundles app](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-1-set-up-the-shopify-bundles-app) * [Step 2: Create the BundleBadge component](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-2-create-the-bundlebadge-component) * [Step 3: Create a new BundledVariants component](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-3-create-a-new-bundledvariants-component) * [Step 4: Query bundle pricing for recommended products](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-4-query-bundle-pricing-for-recommended-products) * [Step 5: Show bundled products on the product page](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-5-show-bundled-products-on-the-product-page) * [Step 6: Detect bundles in collection listings](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-6-detect-bundles-in-collection-listings) * [Step 7: Identify bundles in the cart](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-7-identify-bundles-in-the-cart) * [Step 8: Show bundle badges in the cart](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-8-show-bundle-badges-in-the-cart) * [Step 9: Update the cart button text for bundles](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-9-update-the-cart-button-text-for-bundles) * [Step 10: Show bundle badges on product images](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-10-show-bundle-badges-on-product-images) * [Step 11: Show bundle badges on product cards](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-11-show-bundle-badges-on-product-cards) * [Step 12: Position bundle badges on images](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#step-12-position-bundle-badges-on-images) * [Next steps](https://shopify.dev/docs/storefronts/headless/hydrogen/cookbook/bundles.md#next-steps) # Bundles in Hydrogen This recipe adds special styling for product bundles on your Hydrogen storefront. Customers will see badges and relevant cover images for bundles when they're viewing product and collection pages. In this recipe you'll make the following changes: 1. Set up the Shopify Bundles app in your Shopify admin and create a new product bundle. 2. Update the GraphQL fragments to query for bundles to identify bundled products. 3. Update the product and collection templates to display badges on product listings, update the copy for the cart buttons, and display bundle-specific information on product and collection pages. 4. Update the cart line item template to display the bundle badge as needed. *** ## Requirements To use product bundles, you need to install a bundles app in your Shopify admin. In this recipe, we'll use the [Shopify Bundles app](https://apps.shopify.com/shopify-bundles). *** ## Ingredients *New files added to the template by this recipe.* | File | Description | | - | - | | [app/components/BundleBadge.tsx](https://github.com/Shopify/hydrogen/blob/12374c8f03f82c6800000cf08e327c4db4c287bb/cookbook/recipes/bundles/ingredients/templates/skeleton/app/components/BundleBadge.tsx) | A badge displayed on bundle product listings. | | [app/components/BundledVariants.tsx](https://github.com/Shopify/hydrogen/blob/12374c8f03f82c6800000cf08e327c4db4c287bb/cookbook/recipes/bundles/ingredients/templates/skeleton/app/components/BundledVariants.tsx) | A component that wraps the variants of a bundle product in a single product listing. | *** ## Step 1: Set up the Shopify Bundles app 1. Install the [Shopify Bundles app](https://apps.shopify.com/shopify-bundles) in your Shopify admin. 2. Make sure your store meets the [eligibility requirements](https://help.shopify.com/en/manual/products/bundles/eligibility-and-considerations). 3. From the [**Bundles**](https://admin.shopify.com/apps/shopify-bundles/app) page, [create a new bundle](https://help.shopify.com/en/manual/products/bundles/shopify-bundles). *** ## Step 2: Create the BundleBadge component Create a new BundleBadge component to be displayed on bundle product listings. #### File: [BundleBadge.tsx](https://github.com/Shopify/hydrogen/blob/12374c8f03f82c6800000cf08e327c4db4c287bb/cookbook/recipes/bundles/ingredients/templates/skeleton/app/components/BundleBadge.tsx) ## File ```tsx export function BundleBadge() { return (
+
{product.title}
+ {isBundle ?