- Posts: 52
- Thank you received: 3
Hide text in banktransfer plugin
2 years 2 months ago #362444
by yolknet
Hide text in banktransfer plugin was created by yolknet
-- 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?
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.
2 years 2 months ago - 2 years 2 months ago #362448
by Philip
Replied by Philip on topic Hide text in banktransfer plugin
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
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: 2 years 2 months ago by Philip.
Please Log in or Create an account to join the conversation.
2 years 1 month ago #362787
by yolknet
Replied by yolknet on topic Hide text in banktransfer plugin
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
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.
2 years 1 month ago #362794
by nicolas
Replied by nicolas on topic Hide text in banktransfer plugin
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.
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.169 seconds