I have a custom import routine that creates configurable products and assigns children to them. These appear on the front end without issue until I manually run the stock status re-index.
I've done a snapshot from before and after the re-index and there is one table changing which is cataloginventory_stock_status
where the stock_status
column is changed from 1
(when it does appear) to 0
(now not appearing) for my configurable parent.
Can anyone explain this behaviour or know how to fix it?
Just to clarify, re-syncing my product which calls the following code:
$stockStatus = Mage::getModel('cataloginventory/stock_status');
$stockStatus->assignProduct($product);
$stockStatus->saveProductStatus($product->getId(), 1);
makes the options appear again until the next status re-index.