Creating a bundle a product that shows up as bundle on the Reports

Topic summary

A developer successfully created a product bundle using Shopify’s Expand function, which works correctly for order processing. However, the bundle doesn’t appear in reports when filtering with line_item_is_bundle = true in ShopifyQL queries, unlike bundles created with Shopify Bundles or other bundle apps.

Attempted solutions (unsuccessful):

  • Setting claimOwnership: { bundles: true } in GraphQL
  • Configuring requiresComponents on product variants
  • Adding “line_item_is_bundle” as a cart line item attribute property

Current status: The issue remains unresolved. One respondent suggested custom code may be required, but no specific implementation details were provided. The core question is how to ensure custom bundles are properly flagged as bundles in Shopify’s reporting system.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Hello,

I made a Shopify function that makes use of the Expand function to make a bundle. Everything works regarding the function, and making the order. However when I go to reports and run a ShopifyQL query that has

WHERE line_type = 'product' AND line_item_is_bundle = true

my order that includes that Bundle does not show. If I make a bundle with Shopify Bundles or use any other Bundle Apps the order will show. So I tried to make a new product using GraphQL that has the following

claimOwnership: {
      bundles: true
    }

... 

 productVariants {
      id
      requiresComponents
    }

That has not done it. I also tried to add “line_item_is_bundle” as a cart line item attribute property which also had no affect.
My question is how can I create a bundle item that has “line_item_is_bundle” as true when using the reports?

Thanks,

Ahmed

Hey @Ahmed-pacer this need to do a custom code to achieve this.