Cheque / Money Order Payment Module

Open to all! Ask other shopowners for help.
Nigel
Contributor
Posts: 114
Joined: Mon Jan 11, 2021 1:39 am
Phoenix Version:
Has thanked: 29 times
Been thanked: 8 times

Cheque / Money Order Payment Module

Post by Nigel »

Cheque / Money Order Payment Module

Can this be added to include Credit card payments.
We will be calling customers to get their card details to manually take payment and then arrange collection or delivery details once we process their order.

I will try and add it myself if I have some guidance. :roll:

Thanks.


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Cheque / Money Order Payment Module

Post by ecartz »

That sounds like something you can do by overriding the language file. Look at what it says. Figure out what you want it to say. It should be as simple as copying the file over and editing it.
Nigel
Contributor
Posts: 114
Joined: Mon Jan 11, 2021 1:39 am
Phoenix Version:
Has thanked: 29 times
Been thanked: 8 times

Re: Cheque / Money Order Payment Module

Post by Nigel »

Ok, I'll give it a try.
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Cheque / Money Order Payment Module

Post by burt »

It may be nicer to make up a whole new module based on (eg) the cash on delivery module.
By doing a new module you could then see the % of people paying by Card over the phone etc.
I am not here to build for you.
I am here to build with you. Let's help each other.
Nigel
Contributor
Posts: 114
Joined: Mon Jan 11, 2021 1:39 am
Phoenix Version:
Has thanked: 29 times
Been thanked: 8 times

Re: Cheque / Money Order Payment Module

Post by Nigel »

I've been trying to find a thread I was using regarding the overrides but can't find it.

If I make a new payment module, should it reside in overrides somewhere ?
Will it only be an issue if the files were replaced rather than updated, maybe "a la 1.0.08 ?"
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Cheque / Money Order Payment Module

Post by burt »

A new payment module would go in:

/includes/modules/payment/

Its language file in:

/includes/languages/english/modules/payment/
I am not here to build for you.
I am here to build with you. Let's help each other.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Cheque / Money Order Payment Module

Post by heatherbell »

Nigel wrote: Thu Mar 04, 2021 12:02 pm If I make a new payment module, should it reside in overrides somewhere ?
Will it only be an issue if the files were replaced rather than updated, maybe "a la 1.0.08 ?"
If you were making a new module i.e. with a new name and so it is not part of core code, it will not be overwritten in an update so there is no reason to put it in a template and can reside in the standard folder structure as indicated in previous post by burt.
That is the main reason for making a new module instead of editing an existing one.
See https://phoenixcart.org/phoenixcartwiki ... ent_Module which might help if you have not made a new content module before but note that payment modules do not have a tpl_ file so the process is simpler than the example shown.
Nigel
Contributor
Posts: 114
Joined: Mon Jan 11, 2021 1:39 am
Phoenix Version:
Has thanked: 29 times
Been thanked: 8 times

Re: Cheque / Money Order Payment Module

Post by Nigel »

Is there an easy way to know which files relate to specific modules so you know which ones to clone and where they reside ?
Is this really something we learn over time ?

My next task is to create some shipping options.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Cheque / Money Order Payment Module

Post by heatherbell »

Nigel wrote: Thu Mar 04, 2021 12:58 pm Is there an easy way to know which files relate to specific modules so you know which ones to clone ?
Mostly, but not always, the clue is in the file name e.g. for payment, Check/Money Order is moneyorder.php, Cash on Delivery is cod.php - it is fairly intuitive.
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Cheque / Money Order Payment Module

Post by heatherbell »

Nigel wrote: Thu Mar 04, 2021 12:58 pmwhere they reside ?
Again, should be intuitive e.g. payment modules reside in /includes/modules/payment/


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