News:

Looking for documentation? Take a look on our wiki

Main Menu

Setting product in stock to 1 by default ?

Started by Th.Pilegaard, February 02, 2013, 12:39:28 PM

Previous topic - Next topic

Th.Pilegaard

Hi

When creating a new product the product_in_stock in Product Status is default set to zero

Is it possible to change this to 1 ?  Of cause it should only be when creating a new product and not when editing

I have been looking in the file product_edit_status.php and tried this :
      if(isset($this->product->product_in_stock)) {echo $this->product->product_in_stock; } else { echo "1";}

but product_in_stock is still zero so some must already have set it to zero

kind regards
Thomas