dimis_983 Posted August 9, 2016 Share Posted August 9, 2016 Hi, I have an e-shop in the www.pc-central.gr link. When a customer puts an order and selects cash on delivery, in the back office status I see "On backorder (paid)" but it should be "On backorder (not paid)". I have to explain that I allow back orders on my shop. Can anyone tell me how to fix this? Thank you in advance! Link to comment Share on other sites More sharing options...
codetheweb Posted August 9, 2016 Share Posted August 9, 2016 (edited) Hi, Did you got a file called validation.php in your module? If yes: find a line like here: (* are joker fields that are replaced by somthing else, i didnt got the module here) ->validateOrder($cart->id, *, $total, $*->displayName, NULL, array(), (int)$currency->id, false, $customer->secure_key); change it by: (Where 1111 = the id of the status of On backorder (not paid) on your backoffice) ->validateOrder($cart->id, '1111', $total, $*->displayName, NULL, array(), (int)$currency->id, false, $customer->secure_key); King regards, Edited August 9, 2016 by Lefty_sarl (see edit history) Link to comment Share on other sites More sharing options...
dimis_983 Posted August 9, 2016 Author Share Posted August 9, 2016 Hi, And thank you for your quick answer. You mean this line? $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); forgot to mention I use prestashop 1.6.1.5 In this case what should I change? Link to comment Share on other sites More sharing options...
codetheweb Posted August 9, 2016 Share Posted August 9, 2016 Yes, take a look: $this->module->validateOrder((int)$this->context->cart->id, '1111', $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); I've replaced: Configuration::get('PS_OS_PREPARATION') by '1111' 1111 = id of the state On backorder (not paid) shown on my backoffice Link to comment Share on other sites More sharing options...
dimis_983 Posted August 10, 2016 Author Share Posted August 10, 2016 It Perfectly worked. Thank you very much!!! Link to comment Share on other sites More sharing options...
codetheweb Posted August 10, 2016 Share Posted August 10, 2016 No problem, glad to help you King regards, 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