Jump to content

Bankwire_owner and address missing when order entered via backoffice


Recommended Posts

Anyone knows how to fix the missing bankwire data if an order has been entered via backoffice?

 

Zahlungsempfänger: {bankwire_owner}
Bankverbindung: {bankwire_address}
{bankwire_details}
 

In this german thread somebody says a change in OrderHistory.php could fix the problem but does not give any more details. Thanks for every feedback.

 

M Schnell

Edited by Scully (see edit history)
Link to comment
Share on other sites

  • 1 month later...

I'm not taking any credit for the solution, I'm simply translating from the german post you mentioned above. I applied the fix in Prestashop 1.6.0.9 and it worked.

 

Add in \classes\Mail.php around line 77 the 3 lines between //start fix and //end fix.

 

        // Returns immediatly if emails are deactivated
        if ($configuration['PS_MAIL_METHOD'] == 3)
            return true;
            
        // start fix 08.08.2014 fix bankwire details for backoffice orders
        $template_vars['{bankwire_owner}'] = Configuration::get('BANK_WIRE_OWNER');
        $template_vars['{bankwire_details}'] = nl2br(Configuration::get('BANK_WIRE_DETAILS'));
        $template_vars['{bankwire_address}'] = nl2br(Configuration::get('BANK_WIRE_ADDRESS'));
        // End fix

 

Many thanks to Scully who posted the solution!

Link to comment
Share on other sites

×
×
  • Create New...