Jump to content

[SOLVED] Show bankwire data in module


Recommended Posts

I'm working to update a plugin for Prestashop 1.7. This component creates an electronic invoice which contains data of customer, order, product and so on.

I'd like to add some other data like IBAN, bank address only when customer chooses bank payment. Could anyone suggest me the correct method to fetch this data from bankwire module and show it in my plugin?

Thanks

Davide

Edited by d.iandoli75
solved (see edit history)
Link to comment
Share on other sites

Thanks Rhobur,

I solved this way. Here below the code by which I appended the fields in an xml file:

 

$payment_method_description = $domtree->createElement('PaymentMethodDescription');

$Owner = Configuration::get('BANK_WIRE_OWNER'); // toglie spazi
$Details = Configuration::get('BANK_WIRE_DETAILS');

$bank_owner = $payment_method_name->appendChild($domtree->createElement('PaymentMethodName', $Owner));
$payment_method_description = $domtree->createElement('PaymentMethodDescription');
$bank_detail = $payment_method_description->appendChild($domtree->createElement('PaymentMethodDescription', $Details));

 

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