I got a multisite site (site A [domain ID - 1] and B [domain ID - 2]) setup with single CiviCRM instance.
There are two records with the same uf_match.uf_id (aka CMS user ID) but linked with a different domain ID in other words belong to different sites.
After woocommerce purchase on-site B (domain ID - 2) theres is no linked contact and contribution in order edit page. The note says CiviCRM Contact could not be fetched
Steps to replicate:
CiviCRM Contact could not be fetched
This patch fixes the issue.