Create Another User point Payment Plugin

  • Posts: 29
  • Thank you received: 1
8 years 9 months ago #230632

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- Browser(s) name and version -- : Google Chrome

Hi,
I would like to create another user point payment method but I have no idea what to configure by using existing user point payment plugin.
Can I get some help for this?
Thanks.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 9 months ago #230635

Hi,

I'm not following you. You can create as many user points payment methods as you want with the "new" button of the menu System>Payment methods. The same way you created the first one.
Is that what you're asking ?

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

  • Posts: 29
  • Thank you received: 1
8 years 9 months ago #230688

Hi Nicolas,

No,
I mean there is an userpoint payment plugin under hikapayment but I want to create another plugin call userpoint2 that has the same function with userpoint payment plugin. But currently I do not know which part of the file should be configure to create userpoint2 payment plugin.

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

  • Posts: 29
  • Thank you received: 1
8 years 9 months ago #230691

Hi Nicolas,

I have created another userpoint plugin with different logic from original hikauserpoint plugin and name it as userpoint2.
After install this plugin zipfile, I can configure this plugin and publish from backend. However the payment method during checkout do not content this plugin

I have tried back the example.zip payment plugin it is the same result do not show in checkout. Can you guide us where is the problem?

Thanks.

Attachments:

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 9 months ago #230733

Hi,

You have the line:
$this->userpointsplugins = hikashop_import('hikashop', 'userpoints2');
while it should be:
$this->userpointsplugins = hikashop_import('hikashop', 'userpoints');
in your plugin.
That might explain the issue since it means that it's not able to load the settings of the HikaShop user points plugin.

The following user(s) said Thank You: haur0214

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

Time to create page: 0.059 seconds
Powered by Kunena Forum