Shopify’s documentation regarding customized bundles is out of date, it uses the older API which has deprecated fields and objects. The documentation itself mentions what endpoint should be used in place, however when running those queries the end result is not as expected.
Are there any examples or tutorials on creating customized bundles using updated APIs?
How has the behaviour of the customized bundles and the associated APIs changed and what should I do to create on?
What I ran into:
Following the tutorial here:
Add a customized Bundle
Everything works as expected until I get to Step 7
As per the productCreate documentation the “published” field in substep 1 is deprecated. Similarly for “variant” in substep 2. But following the suggestions in the documentation I just used the product field with type “ProductInput”. With the API version and type discrepancies I ran the queries and the associated products and bundle were created. However when trying to do the next step in the documentation which was to add to cart, I couldn’t. The products did not have inventory, and The bundle would not allow me to add inventory, the mechanism to do so seems different than the fixed bundle and from what the documentation implies.
I need help creating customized bundles and understanding how they work, the documentation is outdated and doesn’t do a good job of explaining which endpoints I need to use and why.