Custom payment methods

  • Posts: 7
  • Thank you received: 0
12 years 7 months ago #45846

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

Please Log in or Create an account to join the conversation.

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
12 years 6 months ago #46081

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.

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 6 months ago #46167

Ok thanks for the info.

Tim

Please Log in or Create an account to join the conversation.

  • Posts: 65
  • Thank you received: 0
11 years 10 months ago #80519

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..

Please Log in or Create an account to join the conversation.

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
11 years 10 months ago #80579

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.

  • Posts: 25
  • Thank you received: 0
10 years 11 months ago #132938

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

Please Log in or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
10 years 11 months ago #132941

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum