As for translations it depends on the ps version. Since 1.7.6 there is new version of translations using app/resources/translations. However you can modify it by copying translations from there and pasting them inside cloned module. Remember that every translation markup has to be changed inside module.
example:
$this->displayName = $this->trans('Wire payment', [], 'Modules.Wirepayment.Admin');
$this->displayName = $this->trans('Wire payment Euro', [], 'Modules.Wirepaymenteuro.Admin');
If you want to clone module here are steps:
- Copy existing wirepayment module
- rename it to wirepayment{currency you want}
- open every PHP, tpl file and use "find and replace" and replace ps_wirepayment with ps_wirepayment{currency you want}. If you want to do it manually remember to also change class names.
-
Change configuration of the module with "find and replace" and replace all details BANK_WIRE_DETAILS, BANK_WIRE_OWNER, BANK_WIRE_ADDRESS, BANK_WIRE_RESERVATION_DAYS, BANK_WIRE_CUSTOM_TEXT, BANK_WIRE_PAYMENT and add to the end "_{currency you want}". This way you create new rows in database and you are able to store new bank details.
$config = Configuration::getMultiple(['BANK_WIRE_DETAILS_EURO', 'BANK_WIRE_OWNER_EURO', 'BANK_WIRE_ADDRESS_EURO', 'BANK_WIRE_RESERVATION_DAYS_EURO']);
- If you want to use default translations of the wire payment module you can skip step next steps.
- open every PHP, tpl file and use "find and replace" to replace Modules.Wirepayment.Admin and Modules.Wirepayment.Shop with Modules.Wirepayment{currency you want}.Admin and Modules.Wirepayment{currency you want}.Shop so you can use different translations for this specific module.
- open app\Resources\translations\en-US (or any other language you want to copy) and copy translations files ModulesWirepaymentAdmin.en-US and ModulesWirepaymentShop.en-US. Paste these files into your cloned module modules/translations/en-US (or any other language you want to copy) and replace names of the files to match the step 5 Modules.Wirepayment{currency you want}. Example: ModulesWirepaymentAdmin.en-US should be replaced with currency name like this ModulesWirepaymenteuroAdmin.en-US. Remember to allways use lowercase for these changes as prestashop is sensitive to that.
- Open copied translations files and replace path of "original="modules/ps_wirepayment" to "original="modules/ps_wirepaymenteuro" or original="modules/ps_wirepayment{currency you want}
As for troubleshooting, first check if you replaced path "modules/ps_wirepayment" inside tpl files and translation files. Allways use lowercase inside filenames! With find and replace you might need to change filename inside module\views\templates\hook\ps_wirepayment_intro
Hope that sums up, how to clone bankwire payment module for PS 1.7.6 and up. For previous versions the main difference might be translations.