- Posts: 7
- Thank you received: 0
How to copy a payment plugin?
- rodrigo8_4
-
Topic Author
- Offline
Less
More
13 years 2 weeks ago #128668
by rodrigo8_4
How to copy a payment plugin? was created by rodrigo8_4
So, I need 3 additional copies of the western union or bank transfer plugin.
I don´t have much programming knowledge but I tried to edit the plugin many times changing the name, type, class, doing different versions of the plugin, and then trying to install them through the joomla extension path.
Well I give up, there is always some code conflict that appears after instalation, sometimes in the backend, other times on the frontend.
For example, I attached one version of the western union payment plugin edition:
I get an error on the back end:
Fatal error: Call to a member function display() on a non-object in /plugins/hikashoppayment/western2/western2_configuration.php on line 17
Which is:
<td>
<?php echo $this->data->display("data[payment][payment_params][order_status]",@$this->element->payment_params->order_status); ?>
</td>
If I delete that line I can access the backend, but then I get an error on the frontend
Fatal error: Cannot redeclare class plgHikashoppaymentWesternunion in /plugins/hikashoppayment/western2/western2.php on line 118
Which is the last line of:
$information = $method->payment_params->information;
if(preg_match('#^[a-z0-9_]*$#i',$information)){
$information = JText::_($information);
}
$currencyClass = hikashop_get('class.currency');
$amount = $currencyClass->format($order->order_full_price,$order->order_currency_id);
$order_number = $order->order_number;
require($path);
return true;
}
}
Can someone give me some step by step process to have the westernunion or banktransfer plugin copied 3 more times?
Thank you
I don´t have much programming knowledge but I tried to edit the plugin many times changing the name, type, class, doing different versions of the plugin, and then trying to install them through the joomla extension path.
Well I give up, there is always some code conflict that appears after instalation, sometimes in the backend, other times on the frontend.
For example, I attached one version of the western union payment plugin edition:
I get an error on the back end:
Fatal error: Call to a member function display() on a non-object in /plugins/hikashoppayment/western2/western2_configuration.php on line 17
Which is:
<td>
<?php echo $this->data->display("data[payment][payment_params][order_status]",@$this->element->payment_params->order_status); ?>
</td>
If I delete that line I can access the backend, but then I get an error on the frontend
Fatal error: Cannot redeclare class plgHikashoppaymentWesternunion in /plugins/hikashoppayment/western2/western2.php on line 118
Which is the last line of:
$information = $method->payment_params->information;
if(preg_match('#^[a-z0-9_]*$#i',$information)){
$information = JText::_($information);
}
$currencyClass = hikashop_get('class.currency');
$amount = $currencyClass->format($order->order_full_price,$order->order_currency_id);
$order_number = $order->order_number;
require($path);
return true;
}
}
Can someone give me some step by step process to have the westernunion or banktransfer plugin copied 3 more times?
Thank you
Please Log in or Create an account to join the conversation.
13 years 2 weeks ago #128669
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic How to copy a payment plugin?
Hi,
With HikaShop 2.2.x, you do not need to copy a payment plugin (by copying files). You can already create several configurations for a single payment plugin.
Regards,
With HikaShop 2.2.x, you do not need to copy a payment plugin (by copying files). You can already create several configurations for a single payment plugin.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: rodrigo8_4
Please Log in or Create an account to join the conversation.
- rodrigo8_4
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
13 years 2 weeks ago #128673
by rodrigo8_4
Replied by rodrigo8_4 on topic How to copy a payment plugin?
you guys are really awesome!
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds