Been stuck on this for hours spinning my wheels. I have script that builds some products based off a CSV. First it builds a few simple products, then a configurable product with those simple products assigned to it. Everything works fine, except the configurable product will not show up on the frontend without either opening it and saving it in the admin after the script, or running an re-index. Here are the facts so far:
The simple products show up fine.
The configurable product WILL show up correctly if I assign it to simple products previously created instead of the simple products in the same script run. This includes simple products created B
I am using the admin store set
I did try changing the index setting before and then after the script
$processes = Mage::getSingleton('index/indexer')->getProcessesCollection(); $processes->walk('setMode', array(Mage_Index_Model_Process::MODE_MANUAL)); $processes->walk('save'); script $processes->walk('reindexAll'); $processes->walk('setMode', array(Mage_Index_Model_Process::MODE_REAL_TIME)); $processes->walk('save');
So the only thing left I can think to do is add a button that the user can press when they're all done that starts the indexing process, but that takes for ever with the product database that we have now, so I was really hoping to avoid having to do that.