I was wondering if there is a way with custom bundles to make it so a bundle’s components are not available on the store but can still be added to the cart through the cart API?
When I tested with Fixed bundles I saw that it still works even if the component is not made available on the sales channel, is there a way to reproduce this behavior with custom bundles?
To prevent the components of the bundle from being individually available on the store, you should be able to make use of the publishablePublish mutation to update the published field of each component product to false. This will hide the product from the sales channels but will not affect the ability to add it to the cart via the API.
Hi Liam, I’m not sure how the publishablePublish mutation can be used to set published to false? Also when you are saying the published field are you referring to the isPublished field on the resourcePublication object?