In my magento2.1.5 (migrated from magento1.9) store, some configurable products are not showing any associated simple product in both admin and front-end. I need to set the simple products again in admin and then it is working good. This behavior is repeating in products that are migrated from magento1.9.

Strange thing is, when I get the children of that configurable product using the code below, it is not showing me the child products.

$children = $product->getTypeInstance()->getUsedProducts($product);

It looks like the simple products are associated but somehow Magento is not able to render this.

I also checked the values in the database and for most products having an issue, the value of "has_options" and "required_options" is set to 0. Changing it to 1 doesn't work for me.

These products were working fine earlier and are working fine on my older staging deployments. Can anyone please tell me what is the issue?

  • have you reindexed the catalog since importing? – Eirik Jan 28 '18 at 23:31
  • as the issue is with association of products, try importing them once. Which tool you are using for migration ? As @Eirik suggested, try re-indexing once if you didn't do till now. – Kalyan Chakravarthi V Jan 29 '18 at 3:39
  • @Eirik yes a lot of times. Also as I said it was working good 2 weeks ago but now products are not showing up with their associated children and swatches. – saiid Jan 29 '18 at 6:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.