Jump to content

Problem with change order status! v.1.6.1.2


Recommended Posts

Hi all, i have big problem with my upgradet eshop. I'm using 1.6.1.2

When i want to change order status i see this message:

 

[PrestaShopException]

Property StockAvailable->id_product is empty
at line 909 in file classes/ObjectModel.php

             }
 
             $message = $this->validateField($field, $this->$field);
             if ($message !== true) {
                 if ($die) {
                     throw new PrestaShopException($message);
                 }
                 return $error_return ? $message : false;
             }
         }
 

 

 

PLEASE ALL, GIVE ME HELP, HOW TO FIX THIS PROBLEM.

 

Link to comment
Share on other sites

  • 9 months later...
  • 2 weeks later...
It is a bug in file Core/Business/Stock/Core_Business_Stock_StockManager.php at line 126

 

you should have like this:

 

 



$stockAvailable->quantity = $stockAvailable->quantity + $delta_quantity;
$stockAvailable->id_product = (int)$product->id;
$stockAvailable->id_product_attribute = (int)$id_product_attribute;
$stockAvailable->update(); 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...