I have a trouble with a product available in stock, but resulting not available in the store front-end.
When I manually set "is_salable" attribute to 1 , using method
$poduct->setData('is_salable',1)
it is again available in the store. But later it turns automatically to 0.
How can I solve this problem? thanks