alexmp230 Posted June 22, 2016 Share Posted June 22, 2016 Hi, I'm using prestashop v 1.6.1.5 I'm doing the store for a client, but I've a problem that I can not solve. When I create a new order using back office, I choose, for example, bank wire method for payment, but it doesn´t care. Always appears 'back office order' as payment method. In nowhere appears the correct payment method. Even in the PDFs still appearing 'back office order'.I hope you can help me.Regards Link to comment Share on other sites More sharing options...
bellini13 Posted June 22, 2016 Share Posted June 22, 2016 It seems that this value is hard coded in the admin order controller. Link to comment Share on other sites More sharing options...
alexmp230 Posted June 22, 2016 Author Share Posted June 22, 2016 I tried to copy a fresh folder of admin\themes\default\template\controllers\orders from a fresh local prestashop that works well, but its still the same. admin\themes\default\template\controllers\orders/_select_payment <select name="payment_module_name" id="payment_module_name"> {if !$PS_CATALOG_MODE} {foreach from=$payment_modules item='module'} <option value="{$module->name}" {if isset($smarty.post.payment_module_name) && $module->name == $smarty.post.payment_module_name}selected="selected"{/if}>{$module->displayName}</option> {/foreach} {else} <option value="{l s='Back office order'}">{l s='Back office order'}</option> {/if} </select> it is as if always choose the 'else' option. I also tried to disable all pay methods, and use new ones, but its the same.I have no idea what to do. Link to comment Share on other sites More sharing options...
bellini13 Posted June 23, 2016 Share Posted June 23, 2016 as i said, this is hard coded in the admin order controller, not in the theme. when you place an order in the back office, the controller is using a payment module called "back office order" Link to comment Share on other sites More sharing options...
alexmp230 Posted June 23, 2016 Author Share Posted June 23, 2016 ok, thanks.I changed in controllers\admin\AdminOrdersController.php if ($this->tabAccess['edit'] === '1') { if (!Configuration::get('PS_CATALOG_MODE')) { $payment_module = Module::getInstanceByName($module_name); } else { $payment_module = new BoOrder(); } for this if ($this->tabAccess['edit'] === '1') { if (!Configuration::get('PS_CATALOG_MODE')) { $payment_module = Module::getInstanceByName($module_name); } else { $payment_module = Module::getInstanceByName($module_name); } and it seems its working for now.Didn't know using catalog mode this would happen.Thanks and 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