Jump to content

Payment method - always appear 'back office order' instead of correct method


Recommended Posts

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

post-1251914-0-77086600-1466589237_thumb.jpg

post-1251914-0-02510400-1466589256_thumb.jpg

post-1251914-0-54326100-1466589259_thumb.jpg

Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...