Variant Publication Control on Single Variant Items?

Hi,

I am finding that items with only one variant (or really just items with no variant options) can have their publications altered on a variant level, but we are unable to edit the variant in the UX.

Could it be possible to adjust the logic to take this from the product, where there is no variant option?

Hey Chris! A product with a single variant (no options) never renders that individual variant in the admin, so there’s no per-variant control anywhere to view or change it.

Product-level publication is what to use for these products. On the API side, publishing is done at the product or collection level. publishablePublish takes a product or collection ID and returns a Variant publishing is not supported. user error if you pass a variant ID, so there’s no public mutation to toggle a single variant’s publication directly.

As for changing the logic so single-variant products fall back to product-level publication that’s not something I can commit to from here, but it’s good feedback and I’ve logged it internally so the team can see the demand.

If you’re actually blocked by a variant stuck in the wrong state with no way to fix it, let me know the product/variant and I’ll be happy to take a look!

@Donal-Shopify

Thanks, understood. I think the issues is if we adjust publication for single variant products, so currently there is no ability to revise this after this has been done.

We can use a mutation on these to publish to channels, or alternatively create a single variant to expose the selectors, but it would be better to roll up moving forward.