Help with email recognising payment module

Open to all! Ask other shopowners for help.
Post Reply
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Help with email recognising payment module

Post 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?


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Help with email recognising payment module

Post 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/
User avatar
Portman
Contributor
Posts: 158
Joined: Mon Mar 08, 2021 1:04 am
Phoenix Version: v1.0.8.20
Has thanked: 29 times
Been thanked: 4 times

Re: Help with email recognising payment module

Post by Portman »

Thanks @heatherbell,

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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply