When creating a publication through the admin API, we have the ability to set the defaultState to EMPTY, preventing the publication from being populated with existing products. We would like the sales channel publication that is created when installing our sales channel app to have the EMPTY defaultState so that it is not populated with existing products, allowing merchants to opt-in the products which they want synced. This improves the merchant experience.
We can’t configure this on our side, but we would like to know if there is way Shopify can configure this for us?
1 Like
Hey @Brendan_S, there isn’t currently a setting to disable this.
One workaround you could use here is to run a mutation like publishableUnpublish on the products to remove them on installation.
Alternatively, you could add an additional step in your onboarding to allow merchants to validate or remove certain products before you ultimately list them on your channel for sale.
1 Like
Hi @KyleG-Shopify, thanks for the info! We’ve taken the approach to run the publishableUnpublish mutation on install and noticed that Shopify publishes products asynchronously and incrementally. For our dev stores with 100+ products, it’s taking Shopify significant time to publish all products (sometimes several or tens of minutes). Do you know if publishing performance is faster in production stores and/or for real merchants?
Hey Brendan. This is done asynchronously so I would expect it to take longer for larger stores.
1 Like