Order number and invoice number on invoice

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
8 years 6 months ago #240473

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome

Hi Hikashop,

I found out the code to add the order number into the (shipping) invoice.

I changed this code from the view: invoice

<?php
					if(!empty($this->element->order_invoice_number)) {
						echo JText::_('INVOICE').': '.$this->element->order_invoice_number;
					} else {
						echo JText::_('INVOICE').': '.@$this->element->order_number;
					}
				?>
to
<?php
					if(!empty($this->element->order_invoice_number)) {
                    echo JText::_('INVOICE').': '.$this->element->order_invoice_number;
                    } {
                    echo JText::_('ORDER_NUMBER').': '.@$this->element->order_number;
					}
				?>

This works fine, but I want to have a break <br/> after the invoice number. And I don't know how to do that.
I constantly get an Parse error: syntax error.

Can you help me to fix the code?

You gave a example on this forum, but this doesn't work: hikashop.com/forum/4-how-to/81772-have-d...d-order-numbers.html

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 6 months ago #240486

Hi,

You can use that code:

<?php
if(!empty($this->element->order_invoice_number)) {
	echo JText::_('INVOICE') . ': ' . $this->element->order_invoice_number . '<br />';
}
echo JText::_('ORDER_NUMBER') . ': ' . @$this->element->order_number;
?>

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: Lumiga

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
8 years 6 months ago #240593

Thanks!


Kind regards,
Lumiga

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

Time to create page: 0.053 seconds
Powered by Kunena Forum