685. // Switch to back order if needed686. if (Configuration::get('PS_STOCK_MANAGEMENT') && ($order_detail->getStockState() || $order_detail->product_quantity_in_stock <= 0)) {687. $history = new OrderHistory();688. $history->id_order = (int)$order->id;689. $history->changeIdOrderState(Configuration::get($order->valid ? 'PS_OS_OUTOFSTOCK_PAID' : 'PS_OS_OUTOFSTOCK_UNPAID'), $order, true);690. $history->addWithemail();691. }692. 693. unset($order_detail);694. 695. // Order is reloaded because the status just changed
Question
Danthee
Witam,
Cały sklep działa bez zarzutu, natomiast przy potwierdzaniu zamówienia (po wybraniu sposobu płatności) wyskakuje bład.
Zrobiłem debuga i mam coś takiego:
Property OrderHistory->id_order_state is empty
at line 909 in file classes/ObjectModel.php
Bardzo bym prosił o pomoc, zupełnie nie wiem jak to rozwiązać...
Link to comment
Share on other sites
15 answers to this question
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