- Posts: 7
- Thank you received: 0
Custom payment methods
- TWControls
-
Topic Author
- Offline
Less
More
14 years 7 months ago #45846
by TWControls
Custom payment methods was created by TWControls
I've just about finished setting up our test system but we have three additional payment methods on our current system that don't match any of the default plugins:Quote, Phone, Purchase Order. No information has to be collected for these methods so I I can modify some of the methods I'm not using such as Western Union to serve this purpose, but can I copy or rename one of the other plugins and give it a different ID so I have an actual "Phone" payment method?
Thanks
Tim
Thanks
Tim
Please Log in or Create an account to join the conversation.
14 years 7 months ago #46081
by nicolas
Replied by nicolas on topic Re: Custom payment methods
You can't just copy them. You would have to also edit the files of the plugins and change some of the code.
You can rename the plugins: "collect on delivery", "western union", "bank transfer" and "check"
They are pretty much the same.
You can rename the plugins: "collect on delivery", "western union", "bank transfer" and "check"
They are pretty much the same.
Please Log in or Create an account to join the conversation.
- TWControls
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
14 years 7 months ago #46167
by TWControls
Replied by TWControls on topic Re: Custom payment methods
Ok thanks for the info.
Tim
Tim
Please Log in or Create an account to join the conversation.
13 years 11 months ago #80519
by phamosa
Replied by phamosa on topic Custom payment methods
I wanted to change the "Western Union" plugin into "Payment in Advance". I changed the name in the .xml file but the variable in my admin confirmation email "($data->order_payment_method)" still draws the name "westernunion".
Can I just change the line
if($method->payment_type!='westernunion' || !$method->enabled){
in the "westernunion.php" file?
It's the only place where I can find this exact naming..
Can I just change the line
if($method->payment_type!='westernunion' || !$method->enabled){
in the "westernunion.php" file?
It's the only place where I can find this exact naming..
Please Log in or Create an account to join the conversation.
13 years 11 months ago #80579
by nicolas
Replied by nicolas on topic Custom payment methods
There are a other places in the file where you need to change that like the class name. The XML and the php file names should be changed too. The XML itself should be changed too.
Please Log in or Create an account to join the conversation.
12 years 11 months ago #132938
by aleks59
Replied by aleks59 on topic Custom payment methods
Hi,
I have made a custom payment plugin based on the check payment. I also added a myplugin_configuration.php file in the zip.
After installation everything worked fine. Only this configuration file is missing. But everything works without it. What is if for? All other payment plugins do have this file. Which role does if play?
Many thanks in advance
Aleks
I have made a custom payment plugin based on the check payment. I also added a myplugin_configuration.php file in the zip.
After installation everything worked fine. Only this configuration file is missing. But everything works without it. What is if for? All other payment plugins do have this file. Which role does if play?
Many thanks in advance
Aleks
Please Log in or Create an account to join the conversation.
12 years 11 months ago #132941
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Custom payment methods
Hi,
The configuration file is used only if you want to have a more complex configuration interface.
If you add a file with your plugin, you have to reference it in the XML so Joomla will copy it in the right place.
Regards,
The configuration file is used only if you want to have a more complex configuration interface.
If you add a file with your plugin, you have to reference it in the XML so Joomla will copy it in the right place.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.053 seconds