mecachisenros / woocommerce_civicrm

GNU Affero General Public License v3.0
14 stars 16 forks source link

Unable to create contribution on multisite with single civicrm instance #45

Open monishdeb opened 3 years ago

monishdeb commented 3 years ago

Steps to replicate:

  1. I got a multisite site (site A [domain ID - 1] and B [domain ID - 2]) setup with single CiviCRM instance.
  2. 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.
  3. 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

This patch fixes the issue.