#37 Is_in_stock not working as expected

open
core (16)
6
2012-09-20
2012-04-25
Anonymous
No

Using the is_in_stock field, I'd expect the stock status to translate 0 to Out of Stock and 1 to In Stock.

This doesn't seem to currently work in this way. Using the Magento 1.6.2 and latest Magmi.

Discussion


  • Anonymous
    2012-04-25

    Just been looking through the magmi_productimportengine.php code and can see that is_in_stock seems to be worked out based on whether the qty available is more than the min_qty. I think it would be good to be able to overwrite this based on the "is_in_stock" column.

     
  • Björn Tantau
    Björn Tantau
    2012-08-31

    I've commented out

            if(!$is_in_stock && $item["qty"]>$mqty)
            {
                $is_in_stock=1;
            }
    

    on lines 805-808 in engines/magmi_productimportengine.php, because I needed this as well.
    It should work for me as I don't need the relative quantity.