Page 1 of 1

Help with email recognising payment module

Posted: Fri May 31, 2024 5:18 am
by Portman
Hi,

I am trying to create an if statement in my order confirmation email that will allow me to display payment info if my customers pay by direct bank deposit...

So basically;
if $order->info['payment_method'] == pm_direct_deposit

I have just modified the COD payment module for my DD module ...
From what I can gather the best way to do this is add the DD payment method name into the CONFIG table ... if the text description is MODULE_PAYMENT_DIRECT_DEPOSIT_TEXT_DESCRIPTION how do I change my module to save this in the CONFIG table?

Is this what the "static::CONFIG_KEY_BASE" code is doing in the get parameters function?

And if so can I just add the one line into CONFIG and how would that look? or is there a more straight forward way to do it that I just havent thought of?

Re: Help with email recognising payment module

Posted: Fri May 31, 2024 5:43 am
by heatherbell
Portman wrote: Fri May 31, 2024 5:18 amdisplay payment info
Do you mean display the bank account details (needed for the customer to make payment) in the checkout notification e-mail?
Maybe this does what you require:
app.php/addons/free_addon/bank_transfer_payment/

Re: Help with email recognising payment module

Posted: Sat Jun 01, 2024 12:48 am
by Portman
Thanks @heatherbell,

Why use an existing module, when you can recreate the wheel? That's my policy :roll: