Hide text in banktransfer plugin

  • Posts: 31
  • Thank you received: 1
  • Hikashop Business
3 months 3 weeks ago #362444

-- HikaShop version -- : 5.1.0

In Joomla 3 we had a fix/override for /plugins/hikashoppayment/banktransfer/banktransfer_end.php to hide a part of the text. It worked even after installing updates.
In Joomla 4 this solution doesn't work anymore and it looks like a core hack is the only way to get the same situation. We want to stay far away from core hacks because of the risk with updates. Is something possible without using a core hack?

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
3 months 3 weeks ago #362448

Hello,

Our responses will vary depending on the context and the part you want to hide, so to help us better respond, could you please provide the following information:
- A Url link so we can see the exact context
- A more detailed description to help us understand what you need to hide (an annotated screenshot, for example)
Regards

Last edit: 3 months 3 weeks ago by Philip.

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

  • Posts: 31
  • Thank you received: 1
  • Hikashop Business
3 months 1 day ago #362787

Hello Philip,
Because of the holidays I wasn't able to respond soonder.
How it works: the following lines are commented out to prevent adding text:

JText::sprintf('PLEASE_TRANSFERT_MONEY',$this->amount).'<br/>'.
$this->information.'<br/>'.
JText::sprintf('INCLUDE_ORDER_NUMBER_TO_TRANSFER',$this->order_number).'<br/>'.
JText::_('THANK_YOU_FOR_PURCHASE');

Saving empty language values could be an option but it displays the variabes $this->amount, $this->information en $this->order_number
Hiding with css isn't an option too, because it's in the same container as ORDER_IS_COMPLETE

An override seems the only way, but doesn't work. Though www.hikashop.com/forum/payment-methods/9...fer-end-message.html mentions it should work.
I've tried it with the file in templates/base/hikashoppayment/banktransfer_end.php and templates/base/html/hikashoppayment/banktransfer_end.php
In both cases the override doesn't work

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 months 23 hours ago #362794

Hi,

The override file should be templates/YOUR_TEMPLATE/hikashoppayment/banktransfer_end.php
Are you sure that the folder of your template is "base" ? Please double check the names of the folders and the override file. It has to work.

Also, if you use empty translation overrides, $this->amount and $this->order_number won't be displayed as they are displayed by the %s in the text of the default text in the language file.
And $this->information comes from the text you entered in the "information" textarea of your payment method. Leave that empty, and it won't display anything either.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum