Get Variable ID from woocommerce instead of product ID

Hi,

I’ve integrated Woocommerce on ERPNext. It’s working well except that when items are inserted, the produxt ID is the pulled from the webhook instead of variable ID.

Can someone pls help on this issue. I need to get the variable ID as they are different products.

Thank you

Have anyone come across this problem? I am also having the same problem of getting the product is instead of variable id from woocommerce. Even if a different variant is selected it gets the same product. Kindly advise whether this is a bug or in the forum we have a solution yet.

I was able to fix this issue by changing the product ID to variable ID in the integrator code