Sorry I'm not sure I understand.
If you have multiple different XenForo instances in multiple sub-domains, then you need multiple licenses of XenForo (one per sub-domain) and multiple licenses of eCommerce (one per sub-domain).
If you are running multiple copies of XenForo with only a single XenForo license, then you are in violation of XenForo's license agreements.