Jump to content

Cloning Bankwire module - prestashop v1.6.1.17

Recommended Posts

Hi friends,

I'm following these 2 guides to clone bankwire module -


It's working but the last payment return screen is throwing 500 errors. So I enabled debug mode and this is what i got : https://pastebin.com/TKUgFsTb

Screenshot - https://www.dropbox.com/s/4ple016u6r3h2q1/2019-02-09_13-49-48.png?dl=0

Then I managed to fix the validateorder error which is

59. 			'{banktransfer_owner}' => Configuration::get('BANK_WIRE_OWNER'),
60. 			'{banktransfer_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')),
61. 			'{banktransfer_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))
62. 		);
64. 		$this->module->validateOrder($cart->id, Configuration::get('PS_OS_banktransfer'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
65. 		Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
66. 	}
67. }


I changed PS_OS_banktransfer to PS_OS_BANKTRANSFER. then I didnt get any errors  but upon completion it's not showing the full contents of my payment_return.tpl

It's only showing this (screenshot) - https://www.dropbox.com/s/rkrszoie7eifocs/2019-02-09_13-43-47.png?dl=0

Any idea how can I clone this module without any errors?


Share this post

Link to post
Share on other sites

Looking for cloned version of bank transfer module too. Anyone has working module for that ?

Share this post

Link to post
Share on other sites
Posted (edited)

I've managed to successfully create a clone of the ps_wirepayment module for Prestashop 1.7 (running using Ed Eichman's blog post noted earlier in this thread.  I've tested it and it seems to work fine; I was able to use it to display different bank account info depending on the client's chosen currency.

To install, first use phpmyadmin to edit the psbb_configuration table:

– Add PS_OS_BANKWIRE2 (I used value 99) to the configuration table, imitating PS_OS_BANKWIRE

– Also add values to the tables order_state and order_state_lang imitating bankwire, using the same id_order_state value as PS_OS_BANKWIRE2 (99 in my case).

– Install the attached module .zip using the BO modules installer. Configure and you'll find it under the name "Wire Transfer" in the Modules listing and Payment Preferences menu.

With much added effort, I was able to add the translations for this module to the BO; you'll find them under "Installed Modules Translations" –> "Wire Transfer".  *BUT* I could not figure out how to add the title of the payment method (what is shown to the customer at checkout) to the translation database, so you'll have to modify it by hand by editing ps_wiretransfer.php, line 197. For example, I wanted mine to state the currency of the bank account used:

     ->setCallToActionText($this->trans('Bank Transfer in EUR', array(), 'Modules.Wiretransfer.Shop'))

If anyone can make this text translatable, please let us know!




Edited by shapwill
Improved the module (added translation support) since my original post. (see edit history)
  • Thanks 1

Share this post

Link to post
Share on other sites

Big big big thanks to shapwill ! Thanks for sharing the clone it works perfectly except for translating the title i didn't find any solution too, but it actually works and i duplicated the module like 5 times because i need different bank accounts for each carrier.

Thanks again big up !

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More