Hello,
Please read this topic https://www.8theme.com/topic/i-have-a-product-with-2-categories/
Regards