Bank Infos on invoice

  • Posts: 23
  • Thank you received: 1
2 years 5 months ago #342228

-- url of the page with the problem -- : www.crutch-up.ch
-- HikaShop version -- : 4.6.0
-- Joomla version -- : 4.1.4
-- PHP version -- : 7.4.16
-- Browser(s) name and version -- : Chrome

Dear HikaShop-Team

I don't see the bank information on the invoice, which obviously is important. It only says what shipping and payment method. I can add this info manually in brackets after "INVOICE" as payment method (Auf Rechnung in German), but I didn't find it in any of the language files?!? Which I find strange, since
And I also thought that earlier I also saw some thankyou text below the invoice, where I would be able to easily add this info!?? See picture 2 (disregard the circles around VAT and total, please).

Thanks for you much appreciated help!
Take care,
Martin

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 5 months ago #342230

Hi,

By default, the invoice is available after the payment. And that's why the bank information is not included in the invoice.
It's however available at the end of the checkout, the email notifications, and if you click on the pay now button of an order not yet paid, if the payment method selected is bank transfer.

To modify the invoice available to you in the backend, you can edit the file order / invoice via the menu Display>Views.
There, you can add custom thank you messages at the end of the view file.
And regarding the bank transfer information you entered in your payment method, you can use such code:

<?php
	if(in_array($this->element->order_payment_method, array('banktransfer', 'check', 'purchaseorder'))) {
		$amount = $currencyHelper->format($this->element->order_full_price, $this->element->order_currency_id);
		$paymentClass = hikashop_get('class.payment');
		$payment = $paymentClass->get($this->element->order_payment_id);
		$information = $payment->payment_params->information;
		if(preg_match('#^[a-z0-9_]*$#i',$information)){
			$information = JText::_($information);
		}
		if($this->element->order_payment_method=='banktransfer'){
			echo '<p>' . JText::sprintf('PLEASE_TRANSFERT_MONEY',$amount).'<br/>'.$information.'<br/>'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_TRANSFER',$this->element->order_number) . '</p>';
		}elseif($this->element->order_payment_method=='check'){
			echo '<p>' . JText::sprintf('PLEASE_SEND_CHECK',$amount).'<br/>'.$information.'<br/>'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_CHECK',$this->element->order_number) . '</p>';
		}elseif($this->element->order_payment_method=='purchaseorder'){
			echo '<p>' . JText::sprintf('PLEASE_SEND_PURCHASEORDER',$amount).'<br/>'.$information.'<br/>'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_PURCHASEORDER',$this->element->order_number) . '</p>';
		}
	}
?>
The code is a copy/paste (and adapted) from the order creation notification (which is sent to the customer and already contain that information) email's preload code you can find in the menu System>Emails.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum