-- HikaShop version -- : 2.5.0
Hi,
I'm trying to add bank account information to the attached PDF Invoice, but the 'echo $payment->payment_params->information;' is not adding the information to the invoice. I have the same line in the Order Creation Notification Email and that works just fine. I've also tried to replace the last echo line with the second code block below, but that doesn't work either.
Any idea where I'm going wrong?
Thanks,
David
<?php
if(!isset($order->order_invoice_number)) $order->order_invoice_number = $order->order_number;
echo JText::_('DATE').': '.hikashop_getDate($order->order_created,'%d %B %Y ').'<br />';
echo JText::_('INVOICE').': '.$order->order_invoice_number.'<br />';
echo JText::_('ORDER_NUMBER').': '.$order->order_number.'<br />';
if (!empty($pluginsShipping))
echo JText::_('HIKASHOP_SHIPPING_METHOD').': '.$pluginsShipping->getName($order->order_shipping_method, $order->order_shipping_id).'<br />' ;
if(!empty($pluginsPayment))
echo JText::_('HIKASHOP_PAYMENT_METHOD').': '.$pluginsPayment->getName($order->order_payment_method, $order->order_payment_id).'<br /><br />';
echo $payment->payment_params->information;
?>
$paymentClass = hikashop_get('class.payment');
$payment = $paymentClass->get($data->order_payment_id);
$payment->payment_params = unserialize($payment->payment_params);
echo $payment->payment_params->information;