WEBDVL Posted April 20, 2020 Share Posted April 20, 2020 (edited) Hello, how disable bankwire and out of stock status in new orders? I am using prestashop version 1.7.6.4 I want all orders to be set to only status: Preparation in progress Edited April 20, 2020 by WEBDVL (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2020 Share Posted April 20, 2020 Create override PaymentModule.php or edit ./classes/PaymentModule.php change lines 551, 559: // Switch to back order if needed if (Configuration::get('PS_STOCK_MANAGEMENT') && ($order_detail->getStockState() || $order_detail->product_quantity_in_stock < 0)) { $history = new OrderHistory(); $history->id_order = (int) $order->id; $history->changeIdOrderState(Configuration::get($order->hasBeenPaid() ? 'PS_OS_OUTOFSTOCK_PAID' : 'PS_OS_OUTOFSTOCK_UNPAID'), $order, true); $history->addWithemail(); } to // Switch to back order if needed /* if (Configuration::get('PS_STOCK_MANAGEMENT') && ($order_detail->getStockState() || $order_detail->product_quantity_in_stock < 0)) { $history = new OrderHistory(); $history->id_order = (int) $order->id; $history->changeIdOrderState(Configuration::get($order->hasBeenPaid() ? 'PS_OS_OUTOFSTOCK_PAID' : 'PS_OS_OUTOFSTOCK_UNPAID'), $order, true); $history->addWithemail(); } */ Link to comment Share on other sites More sharing options...
WEBDVL Posted April 20, 2020 Author Share Posted April 20, 2020 7 minutes ago, Guest said: Create override PaymentModule.php or edit ./classes/PaymentModule.php change lines 551, 559 Thank you. Is there another configuration to disable it? This configuration affects the payment gateway module STRIPE, which displays the error. Is it possible to change the settings directly in the ps_cashondelivery module? Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2020 Share Posted April 20, 2020 Override PaymentModule. Save to: ./override/classes/PaymentModule.php PaymentModule.php Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2020 Share Posted April 20, 2020 2 minutes ago, WEBDVL said: Thank you. Is there another configuration to disable it? This configuration affects the payment gateway module STRIPE, which displays the error. Is it possible to change the settings directly in the ps_cashondelivery module? I don't have the ps_cashondelivery module. I can't advise. Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2020 Share Posted April 20, 2020 Check if there is ./override/classes/PaymentModule.php It is possible that the payment gateway module STRIPE has already overwritten it. Link to comment Share on other sites More sharing options...
Guest Posted April 20, 2020 Share Posted April 20, 2020 Quote payment gateway module STRIPE, which displays the error What's the error? Realize that what you see, I don't see. I have no error message or log file from ./var/logs / ..... Then how can a person help you without all the information? It just can't. 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