BoKr Posted August 7, 2013 Share Posted August 7, 2013 Hi I got a new payment provider Masterpayment and use it with a German Module. My question arose since I need to generate pdf invoices in relation to the payment_method. I thought about something like this in the /pdf/footer.tpl <!-- MASTERPAYMENT --> {if $payment->payment_method == 'paymentmethod_rechnungskauf'} {l s='text-align: center; background-color: #fff; color: #000; line-height: 1pt; font-size: 7pt; font-weight: bold; width: 100%">moneybug net-m privatbank Bernanke Lim. | Kontonummer: 201666 69| (BLZ): xxx-gimmeall-11| Kreditinstitut: net-91 Bernanke AG' pdf='true'} <!--{"+1 week"|strtotime|date_format:"d.m.Y"}-->. {else} {$shop_details|escape:'htmlall':'UTF-8'}<br /> {/if} But the variable == 'paymentmethod_rechnungskauf' nor == 'rechnungskauf' works. So, I got the tipp to have a look into the DB. But I do not know where to look. Can some one please tell me where in the DB info like this is stored? thanks alot! Link to comment Share on other sites More sharing options...
mfedorets Posted August 8, 2013 Share Posted August 8, 2013 Payment modules are mixed among common modules in the table ps_module where in the field "name" you can find the module's names. Another way to find out how the module is entitled is open ./modules/modulefolder/module.php and find the method public function __construct() where you can find somethins like this which will be module name: $this->name = 'paypal'; Hope it will be helpful. Link to comment Share on other sites More sharing options...
BoKr Posted August 8, 2013 Author Share Posted August 8, 2013 Mariaa, it helps a bit. Thank you for the information. However, my payment service provider module allows several payment methods. So it seems to be a bit more trickier. I do not know what to do. public function __construct() { $this->name = 'masterpayment'; $this->tab = 'payments_gateways'; $this->version = '1.1.7'; $this->author = 'Silbersaiten'; parent::__construct(); $this->displayName = $this->l('MasterPayment'); $this->description = $this->l('Accepts payments by MasterPayment.'); $this->confirmUninstall = $this->l('Are you sure you want to delete your details ?'); if (!Configuration::get('MP_MERCHANT_NAME') || !Configuration::get('MP_SECRET_KEY')) $this->warning = $this->l('Configurations required!'); } Link to comment Share on other sites More sharing options...
mfedorets Posted August 9, 2013 Share Posted August 9, 2013 Try table "ps_orders", column "module" - there will be module name after you've placed the order with particular payment type. 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