My app creates some bundle products with a custom template. I try to run ProductUpdate Mutation to update these products.
When the sales channel includes POS, it gives an user error:
user_errors = [{'field': ['publications', '1', 'channelId'], 'message': 'Channel Channel Point of Sale does not support bundle products'}]
And the product cannot be successfully updated. The user error looks like a minor error but the product doesn’t update at all. My users think it’s working but the data is completely outdated
So I use the Admin Rest API to update the published scope to online store only:
product.published_scope = 'web'
For the products with online store and POS, it works. I run the productUpdate mutation again. And the user error is gone. However, when there are other channels like Facebook or others, the mutation gives an user error again:
'userErrors': [{'field': ['publications', '1', 'channelId'], 'message': 'Channel Channel Daxko Sales Channel does not support bundle products'}]
Look like changing the published scope doesn’t work
How can I resolve this? Do I have to use publishableUnpublish to unpublish the product from the extra channels? The problem is that the productUpdate mutation doesn’t give me the publication ID. It’s separated from the sale channels in the latest API version. I can’t do so.
Why is it so complicated to get the current sales channels of a product or publish a product to the online store only? The related fields are all deprecated