- Posts: 23
- Thank you received: 1
Bank Infos on invoice
- MartinSvejda
-
Topic Author
- Offline
Less
More
4 years 4 months ago #342228
by MartinSvejda
Bank Infos on invoice was created by MartinSvejda
-- 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
-- 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
Please Log in or Create an account to join the conversation.
4 years 4 months ago #342230
by nicolas
Replied by nicolas on topic Bank Infos on invoice
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:
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.
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:
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>';
}
}
?>
Please Log in or Create an account to join the conversation.
Time to create page: 0.111 seconds