Change name of payment plugin

  • Posts: 65
  • Thank you received: 0
12 years 3 days ago #78975

Hi!

I have a problem. In order to create a new payment method "in advance via bank transfer", I manipulated the payment plugin "Western Union" in the way that I need it.
However, I do not manage to change the name of the plugin (the one that you see in the list with all the plugins) and the variabel "order_payment_method". It's not good like this as we added this variable to the admin order confirmation.
How can I change it?

Thank you!

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

  • Posts: 12953
  • Thank you received: 1778
12 years 2 days ago #79001

Hi,

1. If you want to create/modify a payment plugin, you'll have to change more than the name of the plugin.

2. You can change the name of your plugin through the ".xml" file and change the line :

<name>The old name</name>
By :
<name>The new name</name>
Hope this will help you.

The following user(s) said Thank You: phamosa

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

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

Hi Mohamed!

I changed the name of the plugin (from "Hikashop Western Union Plugin" to "Hikashop Payment In Advance Plugin") but this is not what determines the name that appears in the admin confirmation of order (before and now "westernunion".

The variabel is called ($data->order_payment_method), and there is still "westernunion" coming up.

Where can I change this? I don't find "westernunion" anywhere.. Where do I find the "$data->order_payment_method"?

Thank you!

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

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

The name in the list of payment plugins is also still the same "HikaShop Western Union payment plugin"...

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

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

Would I have to change the .php? I found the wording "westernunion" in the .php file. Can I just change it or what happens then?

Last edit: 11 years 11 months ago by phamosa.

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
11 years 11 months ago #80578

In both the php and the xml file of the plugin you need to change westernunion to your plugin name.
Note that the files name itself should be changed too.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum