manticore Posted June 7, 2010 Share Posted June 7, 2010 Hi there,I'm going to have two currencies - USD and EURO. Is there any way to define different bank account numbers for each of them? So when the user switches to USD, he gets USD account number in the bank wire details summary, and if he switches to EURO, he gets a different, EURO account number? thanks in advancem. Link to comment Share on other sites More sharing options...
rocky Posted June 8, 2010 Share Posted June 8, 2010 You'll need to modify modules/bankwire/validation.php and change the following lines: $mailVars = array( '{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'), '{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')), '{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS')) ); to: if ($currency->id == 1) { $mailVars = array( '{bankwire_owner}' => 'Enter bank wire owner for first currency here', '{bankwire_details}' => 'Enter bank wire details for first currency here', '{bankwire_address}' => 'Enter bank wire address for first currency here' ); } elseif ($currency->id == 2) { $mailVars = array( '{bankwire_owner}' => 'Enter bank wire owner for second currency here', '{bankwire_details}' => 'Enter bank wire details for second currency here', '{bankwire_address}' => 'Enter bank wire address for second currency here' ); } Change 1 and 2 to the IDs of USD and EURO. Add more if blocks if you have more currencies. Link to comment Share on other sites More sharing options...
manticore Posted June 8, 2010 Author Share Posted June 8, 2010 thanks a lot! it works Link to comment Share on other sites More sharing options...
rocky Posted June 8, 2010 Share Posted June 8, 2010 If your issue is resolved, please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
webplus Posted February 14, 2011 Share Posted February 14, 2011 Hi, thanks for the tip, but it doesnt seem to be working for Prestashop vershion 1.3.1.1 and higher. I'm quite sure I entered the details correctly, Ive tested with simple change $mailVars = array( '{bankwire_owner}' => 'bla bla', '{bankwire_details}' => '123456', '{bankwire_address}' => 'address 123' ); but I still get the account details from back office. EDIT: Im testing on localhost so Im not checking the result in emails but on Order confirmation page, where its incorrect.... I guess this change is working only for mails? Link to comment Share on other sites More sharing options...
webplus Posted February 16, 2011 Share Posted February 16, 2011 I found the best solution to clone the bankwire module to another one and setup module restriction per currency in Payment tab. This way you can still use the administration and translations. Link to comment Share on other sites More sharing options...
Butch0071 Posted October 15 Share Posted October 15 On 2/16/2011 at 11:39 AM, webplus said: I found the best solution to clone the bankwire module to another one and setup module restriction per currency in Payment tab. This way you can still use the administration and translations. Man - what a great idea - I will check if it works like this.👍 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