[Skip to main content](#vessel-content)

#   Order number and invoice number on invoice

##

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Away](/forum/user/31479-lumiga)

Less More

- Posts: 644
- Thank you received: 26
-
-
-

10 years 6 months ago [\#240473](#240473) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  *[Order number and invoice number on invoice](/forum/35-orders-management/884586-order-number-and-invoice-number-on-invoice#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  to  This works fine, but I want to have a break  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")* was created by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")*

-- 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
Code:

&lt;?php if(!empty($this-&gt;element-&gt;order_invoice_number)) { echo JText::_('INVOICE').': '.$this-&gt;element-&gt;order_invoice_number; } else { echo JText::_('INVOICE').': '.@$this-&gt;element-&gt;order_number; } ?&gt;

to
Code:

&lt;?php if(!empty($this-&gt;element-&gt;order_invoice_number)) { echo JText::_('INVOICE').': '.$this-&gt;element-&gt;order_invoice_number; } { echo JText::_('ORDER_NUMBER').': '.@$this-&gt;element-&gt;order_number; } ?&gt;

This works fine, but I want to have a break &lt;br/&gt; 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](https://hikashop.com/forum/4-how-to/81772-have-different-invoice-and-order-numbers.html)

Kind regards,
Lumiga

---

Kind regards,
Lumiga

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NDU4Ni1vcmRlci1udW1iZXItYW5kLWludm9pY2UtbnVtYmVyLW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 6 months ago [\#240486](#240486) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Order number and invoice number on invoice](/forum/35-orders-management/884586-order-number-and-invoice-number-on-invoice#240486 "-- 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  to  This works fine, but I want to have a break  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")*

Hi,

You can use that code: Code:

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

Regards,

---

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

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NDU4Ni1vcmRlci1udW1iZXItYW5kLWludm9pY2UtbnVtYmVyLW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile") Topic Author
- [ Away](/forum/user/31479-lumiga)

Less More

- Posts: 644
- Thank you received: 26
-
-
-

10 years 6 months ago [\#240593](#240593) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[Order number and invoice number on invoice](/forum/35-orders-management/884586-order-number-and-invoice-number-on-invoice#240593 "-- 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  to  This works fine, but I want to have a break  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")*

Thanks!

---

Kind regards,
Lumiga

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NDU4Ni1vcmRlci1udW1iZXItYW5kLWludm9pY2UtbnVtYmVyLW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
