d.iandoli75 Posted February 11, 2019 Share Posted February 11, 2019 (edited) 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 February 18, 2019 by d.iandoli75 solved (see edit history) Link to comment Share on other sites More sharing options...
Rhobur Posted February 17, 2019 Share Posted February 17, 2019 The info is kept in the configuration table so yo can do: $details = Configuration::get('BANK_WIRE_DETAILS'); $owners = Configuration::get('BANK_WIRE_OWNER'); $address = Configuration::get('BANK_WIRE_ADDRESS'); 1 Link to comment Share on other sites More sharing options...
d.iandoli75 Posted February 18, 2019 Author Share Posted February 18, 2019 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 More sharing options...
Andrea Maria Posted February 18, 2019 Share Posted February 18, 2019 (edited) Thank you Mobile apps development company UAE Edited February 18, 2019 by Andrea Maria (see edit history) 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