@dualcube,
Thanks for your response. I had done more tests on the issue I mentioned, and I found out that if I only set the commission in the Vendor tab, but not on individual variations, then the default commission rate would be used. Once I set the commission rate on all variations of the product, then I got the correct calculated commission.