php - Magento cant change product quantity in backend -


i have strange problem in magento. change in "inventory" tab of product, gets resettet after click on "save".

has had similar problem in past?

is there way simulate saving progress step step, can see error appears?

until have tried to:

  • disable addons
  • reindex new
  • delete complete cache in backend/via sql/via ssh
  • delete products , categorys

sorry lack of information. if need information please feel free ask.

thank help!

please try below solution may you

i tracked down app/code/core/mage/cataloginventory/model/observer.php.

the event catalog_product_save_after calls saveinventorydata method in turn calls _prepareitemforsave method.

around line 225:

$originalqty = $product->getdata('stock_data/original_inventory_qty'); if (strlen($originalqty)>0) {   $item->setqtycorrection($item->getqty()-$originalqty); } 

if comment out line:

$item->setqtycorrection($item->getqty()-$originalqty); 

it seems correct problem & stock levels stay correct when saving product whilst simultaneously creating / canceling order on both front & back-end of website.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -