Template overrides - Plugins?

  • Posts: 8
  • Thank you received: 0
12 years 1 month ago #66450

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:

				$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: 12 years 1 month ago by afish674.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #66461

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.

The following user(s) said Thank You: afish674

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

Time to create page: 0.055 seconds
Powered by Kunena Forum