Hugo_morais84 Posted November 16, 2021 Share Posted November 16, 2021 (edited) Hello, On some orders, I try to tracking or even edit the address of the error 500 I debug and I have this problem. Can anyone help? Prestashop 1.7.6.7 Attempted to call an undefined method named "getProducts" of class "stdClass". in classes/order/Order.php (line 2641) // assign id_carrier $new_cart->id_carrier = (int) $this->id_carrier; //remove all products : cart (maybe change in the meantime) foreach ($new_cart->getProducts() as $product) { $new_cart->deleteProduct((int) $product['id_product'], (int) $product['id_product_attribute']); } // add real order products foreach ($this->getProducts() as $product) { ------------------------------------------------------------------------------------------------------------------------ CRITICAL phpCall to undefined method stdClass::getProducts() CRITICAL requestUncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "getProducts" of class "stdClass"." at /classes/order/Order.php line 2641 Edited November 16, 2021 by Hugo_morais84 errror (see edit history) Link to comment Share on other sites More sharing options...
led22 Posted March 10, 2022 Share Posted March 10, 2022 Good afternoon @Hugo_morais84, I am in exactly the same situation as you. I have an order in which I tried to change some billing address information and I got the error. Did you manage to solve it? Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now