- Posts: 108
- Thank you received: 2
Adding a Payment Method
14 years 5 months ago - 14 years 5 months ago #48012
by bars92
Adding a Payment Method was created by bars92
Hello again.
I recently needed to create a new method (or customize other), but i want to create one that will not be deleted or rollbacked after each Hikashop update.
My idea was to create a new method and customize it how i want.
I just want to know what i need to do to add a new payment plugin?
I add a new folder at: HOME/administrator/components/com_hikashop/extensions and HOME/plugins/hikashoppayment. and configured the xmls, tho still is not showing at the back-end payment methods.
Any advices?
NOTE: if is there a way to download a zip of a plugin payment, that will be great.
I recently needed to create a new method (or customize other), but i want to create one that will not be deleted or rollbacked after each Hikashop update.
My idea was to create a new method and customize it how i want.
I just want to know what i need to do to add a new payment plugin?
I add a new folder at: HOME/administrator/components/com_hikashop/extensions and HOME/plugins/hikashoppayment. and configured the xmls, tho still is not showing at the back-end payment methods.
Any advices?
NOTE: if is there a way to download a zip of a plugin payment, that will be great.
Last edit: 14 years 5 months ago by bars92.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #48079
by nicolas
Replied by nicolas on topic Re: Adding a Payment Method
Only HOME/plugins/hikashoppayment is used.
Also, you need to zip the files of the plugin and install the package via the joomla installer.
Also, you need to zip the files of the plugin and install the package via the joomla installer.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #48138
by bars92
Replied by bars92 on topic Re: Adding a Payment Method
Good it worked, i copied an existing payment method and changed is params and name. Although now when i try to go to back-end payment configuration it displays an error:
Order status
Fatal error: Call to a member function display() on a non-object in ...
I need this params because it defines the types of order status.
What may be the caus of that?
Order status
Fatal error: Call to a member function display() on a non-object in ...
I need this params because it defines the types of order status.
What may be the caus of that?
Please Log in or Create an account to join the conversation.
14 years 5 months ago #48147
by nicolas
Replied by nicolas on topic Re: Adding a Payment Method
Please give the rest of the error message
Please Log in or Create an account to join the conversation.
14 years 5 months ago - 14 years 5 months ago #48158
by bars92
Replied by bars92 on topic Re: Adding a Payment Method
that all.. the rest is location.
Fatal error: Call to a member function display() on a non-object in HOME/plugins/hikashoppayment/pelecard/pelecard_configuration.php on line 18
The line 18 is:
<?php echo $this->data->display("data[payment][payment_params][order_status]",@$this->element->payment_params->order_status); ?>
Fatal error: Call to a member function display() on a non-object in HOME/plugins/hikashoppayment/pelecard/pelecard_configuration.php on line 18
The line 18 is:
<?php echo $this->data->display("data[payment][payment_params][order_status]",@$this->element->payment_params->order_status); ?>
Last edit: 14 years 5 months ago by bars92.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #48166
by nicolas
Replied by nicolas on topic Re: Adding a Payment Method
That means that in the function onPaymentConfiguration of your plugin, you don't have the lines:
$this->category = hikashop_get('type.categorysub');
$this->category->type = 'status';
like all the others payment plugins.
$this->category = hikashop_get('type.categorysub');
$this->category->type = 'status';
like all the others payment plugins.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #48816
by bars92
Replied by bars92 on topic Re: Adding a Payment Method
OK i found out what was the problem after adding those lines.
thank you again.
thank you again.
Please Log in or Create an account to join the conversation.
Time to create page: 0.252 seconds