Loading…
Loading…
Complete GraphQL support for WooCommerce Product Bundles including bundle products, bundled items, and the addBundleToCart mutation.
WooGraphQL Pro provides complete GraphQL support for WooCommerce Product Bundles, enabling you to build headless storefronts with bundle product functionality.
bundle_products)Query and display bundle products with:
Access bundled item details including:
Add bundles to cart with full configuration:
| Type | Values |
|---|---|
ProductBundleMinMaxEnum | MIN, MAX |
BundlePriceDisplayContextEnum | SHOP, PRODUCT |
| Type | Description |
|---|---|
BundleItemInput | Configure a bundled item when adding to cart |
| Type | Description |
|---|---|
BundleProduct | Bundle product type with all fields |
BundleCartItem | Cart item type for bundles |
query GetBundleProduct($id: ID!) { product(id: $id, idType: DATABASE_ID) { ... on BundleProduct { id name price(context: MIN) regularPrice(context: MIN) priceMax: price(context: MAX) minBundleSize maxBundleSize layout editableInCart bundleItems { edges { bundledItemId title description optional pricedIndividually minQuantity maxQuantity defaultQuantity discount node { id name price } } } } } }
mutation AddBundleToCart($productId: Int!, $bundleItems: [BundleItemInput!]!) { addBundleToCart( input: { productId: $productId quantity: 1 bundleItems: $bundleItems } ) { cart { total } cartItem { key quantity total bundledItems { bundleItemId product { node { name } } quantity } } } }
addBundleToCart mutation