- Posts: 8
- Thank you received: 0
Template overrides - Plugins?
14 years 5 days ago - 14 years 5 days ago #66450
by afish674
Template overrides - Plugins? was created by afish674
Hi,
I'm trying to override a line on the checkout page where next to the payment checkbox, it has a description of the payment.
I have located the php file in plugins>hikashoppayment>paypal>paypal.php
I saved a copy and then I changed the source code on lines 392-393 to read:
I saved the copy in templates>mytemplate>html>plugins>hikashoppayment>paypal>paypal.php
However this hasn't overwritten the original. Have I done everything correctly? Or is it just impossible to do?
Thanks for your help!
I'm trying to override a line on the checkout page where next to the payment checkbox, it has a description of the payment.
I have located the php file in plugins>hikashoppayment>paypal>paypal.php
I saved a copy and then I changed the source code on lines 392-393 to read:
Code:
$element->payment_description='<p>You can pay by credit card or paypal using this payment method</p>';
$element->payment_images='PayPal';
I saved the copy in templates>mytemplate>html>plugins>hikashoppayment>paypal>paypal.php
However this hasn't overwritten the original. Have I done everything correctly? Or is it just impossible to do?
Thanks for your help!
Last edit: 14 years 5 days ago by afish674.
Please Log in or Create an account to join the conversation.
14 years 5 days ago #66461
by nicolas
Replied by nicolas on topic Re: Template overrides - Plugins?
Hi,
You can't override plugins. The structure of joomla does not allow for that.
If you want to change the image/description of the plugin, just edit the options of the plugin and change the image/description with the provided options. There is no need to edit any code.
You can't override plugins. The structure of joomla does not allow for that.
If you want to change the image/description of the plugin, just edit the options of the plugin and change the image/description with the provided options. There is no need to edit any code.
The following user(s) said Thank You: afish674
Please Log in or Create an account to join the conversation.
Time to create page: 0.156 seconds