Is different checkout-flow per product possible? I've tried finding a solution to this myself, but have so far been very unlucky in that regard.
To save you checking the tags, this question is about:


Drupal Commerce 8.x-2.0-beta6
Drupal 8.2.7


Question
I want different checkout flows on different products, and while I can find plenty of documentation on how to create these, I cannot find anywhere, how you tell the product which flow it should use.

I have tried searching, going to every commerce backend page on my install, searching through the questions here, and looked at commit messages in the hope that they would shed light on it.

Can anyone help me with this? I would greatly appreciate it.

Thanks in advance.
You need to implement a checkout flow resolver.

Look at the default resolver for an example: https://github.com/drupalcommerce/commerce/blob/8.x-2.x/modules/checkout/src/Resolver/DefaultCheckoutFlowResolver.php
And don't forget the matching services.yml entry:
https://github.com/drupalcommerce/commerce/blob/8.x-2.x/modules/checkout/commerce_checkout.services.yml#L7
(You don't need to set the priority on yours though, it's -100 here so that DefaultCheckoutFlowResolver runs last)