VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: KrisTianoVS on September 12, 2018, 15:35:19 PM

Title: Add payment details for bank transfer in Order information page
Post by: KrisTianoVS on September 12, 2018, 15:35:19 PM
Hello,

I would like to automaticaly add "bank details" in case of bank transfer payment method on the order information page.

Idealy, I would like to show those informations just after "Payment method : Bank transfer (standard)".

To achieve that, I am looking for two solutions.

1. Use the "Payment Info" of the plugin settings just under the field in  details_order.php file
2. Edit language string "Bank transfer (standard)" and simply add the bank information there, but I cannot find where it is localized.

First solution looks better as it will only appear where I need, but I don't know how to add the required script as a condition that only show those information with bank transfer, and not with PayPal or Credit Card method.

Does one of you already did that kind of modification?

Tahnks in advance for your help and have a nice day!
Title: Re: Add payment details for bank transfer in Order information page
Post by: GJC Web Design on September 12, 2018, 16:22:52 PM
QuoteFirst solution looks better as it will only appear where I need,

it should only appear in orders using that method
Title: Re: Add payment details for bank transfer in Order information page
Post by: KrisTianoVS on September 12, 2018, 16:39:43 PM
Hello, thanks for your answer GJC. Do you know where I could find the language string that is in use and in wich I could had those informations?
I had a look on language file of Virtuemart, but I did not find it?
Title: Re: Add payment details for bank transfer in Order information page
Post by: GJC Web Design on September 12, 2018, 18:11:21 PM
en-GB.plg_vmpayment_standard.ini

in admin/languages
Title: Re: Add payment details for bank transfer in Order information page
Post by: KrisTianoVS on September 13, 2018, 12:59:44 PM
Thanks. I have found the right file, but there is no language string containing "Bank transfer (standard)"

I have the feeling that "Bank transfer" comes from the name I gave in VM settings and I don't know frome where "  (standard) " is coming?

I attach a printcreen to clearly explain what I would like to have.

(https://www.exoride.net/transfert/printscreen.jpg)
Title: Re: Add payment details for bank transfer in Order information page
Post by: GJC Web Design on September 13, 2018, 14:46:24 PM
think its the payment_name column of the plugin db table which is created programatically by the function renderPluginName() in

administrator\components\com_virtuemart\plugins\vmpsplugin.php - I assume from the plugin name etc

so u need to trace that or simply change your email and invoice templates

R U translating the plugin name in the admin?
Title: Re: Add payment details for bank transfer in Order information page
Post by: djanael on April 20, 2020, 18:21:52 PM
Quote from: GJC Web Design on September 13, 2018, 14:46:24 PM
think its the payment_name column of the plugin db table which is created programatically by the function renderPluginName() in

administrator\components\com_virtuemart\plugins\vmpsplugin.php - I assume from the plugin name etc

so u need to trace that or simply change your email and invoice templates

R U translating the plugin name in the admin?

!up

unsolve this in VirtueMart 3.0.17.6
Title: Re: Add payment details for bank transfer in Order information page
Post by: Jörgen on April 20, 2020, 20:36:31 PM
Current VM version is now 3.6.10. !!!
Should work with 3.0.17 Also. There is nothing special about the payment name. What do you want to accomplish?
Jörgen @ Kreativ Fotografi
Title: Re: Add payment details for bank transfer in Order information page
Post by: pinochico on April 21, 2020, 00:15:34 AM
Fill payment description in administration and change email template/invoice => after payment name == name (you can localized) + type of payment plugin (you can't localized) add to next line payment description on your place.