Override Bank Transfer end message

  • Posts: 26
  • Thank you received: 1
  • Hikashop Business
6 months 6 days ago #361075

-- HikaShop version -- : 5.0.4
-- Joomla version -- : 4.4.4
-- PHP version -- : 8.0.30

I am using the Bank Transfer plugin, to create an option for paying via invoice.

In the end text, I get a message about transfering the amount and other stuff that I do not need.

My customers are businesses and they all buy on "credit", so they will get an invoice and pay that after 30 days. I can see in the "banktransfer_end.php" where the text is comming from and I can find the text in the language file - but is it possible for me to create an override on the entire "banktransfer_end.php" ?

So that this section:
<span class="hikashop_banktransfer_end_message" id="hikashop_banktransfer_end_message">
<?php echo JText::_('ORDER_IS_COMPLETE').'<br/>'.
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');?>
</span>

Becomes this:
<span class="hikashop_banktransfer_end_message" id="hikashop_banktransfer_end_message">
<?php echo JText::_('ORDER_IS_COMPLETE').'<br/>'.
$this->information.'<br/>'.
JText::_('THANK_YOU_FOR_PURCHASE');?>
</span>

Or is there a better way to do this ?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 months 6 days ago #361076

Hi,

It's possible. You can copy this file to templates/YOUR_TEMPLATE/hikashoppayment/banktransfer_end.php to make an override of the whole file.
However, for what you want to achieve it's not necessary.
You can do what you want with two translation overrides like this:

PLEASE_TRANSFERT_MONEY=""
INCLUDE_ORDER_NUMBER_TO_TRANSFER=""
www.hikashop.com/download/languages.html#modify

The following user(s) said Thank You: WebmasterRD

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

  • Posts: 26
  • Thank you received: 1
  • Hikashop Business
6 months 5 days ago #361097

Ahhh - I thought that if I did that I would get empty lines - of course I did not try that :-) Perfect, thanks a lot

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

Time to create page: 0.041 seconds
Powered by Kunena Forum