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

#   shipping invoice shows invoicenumber after payment

##

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

5 years 10 months ago [\#327991](#327991) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[shipping invoice shows invoicenumber after payment](/forum/35-orders-management/901612-shipping-invoice-shows-invoicenumber-after-payment#327991 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi,  At least until version Hikashop 4.2 when printing an shipping invoice the ordernumber was used. I use the shipping invoice as an orderform, I suppose as most users do.  Now I recently removed some customcode from the invoice view, so now it's the 4.4 version. While printing the shipping invoice now when the order is paid the invoicenumber is used instead of the ordernumber. That's not logical, as the invoicenumber should only be used for the invoice itself?")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.4

Hi,

At least until version Hikashop 4.2 when printing an shipping invoice the ordernumber was used. I use the shipping invoice as an orderform, I suppose as most users do.

Now I recently removed some customcode from the invoice view, so now it's the 4.4 version. While printing the shipping invoice now when the order is paid the invoicenumber is used instead of the ordernumber. That's not logical, as the invoicenumber should only be used for the invoice itself?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

5 years 10 months ago [\#327994](#327994) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[shipping invoice shows invoicenumber after payment](/forum/35-orders-management/901612-shipping-invoice-shows-invoicenumber-after-payment#327994 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi,  At least until version Hikashop 4.2 when printing an shipping invoice the ordernumber was used. I use the shipping invoice as an orderform, I suppose as most users do.  Now I recently removed some customcode from the invoice view, so now it's the 4.4 version. While printing the shipping invoice now when the order is paid the invoicenumber is used instead of the ordernumber. That's not logical, as the invoicenumber should only be used for the invoice itself?")*

Hi,

Whether it is the invoice or the shipping invoice, in both cases, the system will try to use the invoice number if available, and if not, it will use the order number.
So if you display the shipping invoice before the invoice number is generated, you will get the order number on it.
I don't believe this has changed in the last few years.
This is handled by the code: Code:

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; }

in the file order / invoice.php that you can edit via the menu Display&gt;Views.

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

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

5 years 10 months ago [\#328035](#328035) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[shipping invoice shows invoicenumber after payment](/forum/35-orders-management/901612-shipping-invoice-shows-invoicenumber-after-payment#328035 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi,  At least until version Hikashop 4.2 when printing an shipping invoice the ordernumber was used. I use the shipping invoice as an orderform, I suppose as most users do.  Now I recently removed some customcode from the invoice view, so now it's the 4.4 version. While printing the shipping invoice now when the order is paid the invoicenumber is used instead of the ordernumber. That's not logical, as the invoicenumber should only be used for the invoice itself?")*

Hi,

I understand the code, but if I alter that code the only option is to never show the order_invoice_number. But what if I want to have the order_number on the shipping invoice, also when the order is paid immediately at ordering (and thus an invoicenumber is generated)? Now the order_number will never be used when the client pays at ordering?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

5 years 10 months ago [\#328044](#328044) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[shipping invoice shows invoicenumber after payment](/forum/35-orders-management/901612-shipping-invoice-shows-invoicenumber-after-payment#328044 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi,  At least until version Hikashop 4.2 when printing an shipping invoice the ordernumber was used. I use the shipping invoice as an orderform, I suppose as most users do.  Now I recently removed some customcode from the invoice view, so now it's the 4.4 version. While printing the shipping invoice now when the order is paid the invoicenumber is used instead of the ordernumber. That's not logical, as the invoicenumber should only be used for the invoice itself?")*

Hi,

Well, if you want to display the order number for shipping invoices, you just need to adapt the code for that.
Nothing crazy. For example : Code:

if($this-&gt;invoice_type == 'full') { 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; } } else { echo JText::_('ORDER').': '.$this-&gt;element-&gt;order_number; }

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

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

5 years 10 months ago [\#328082](#328082) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[shipping invoice shows invoicenumber after payment](/forum/35-orders-management/901612-shipping-invoice-shows-invoicenumber-after-payment#328082 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi,  At least until version Hikashop 4.2 when printing an shipping invoice the ordernumber was used. I use the shipping invoice as an orderform, I suppose as most users do.  Now I recently removed some customcode from the invoice view, so now it's the 4.4 version. While printing the shipping invoice now when the order is paid the invoicenumber is used instead of the ordernumber. That's not logical, as the invoicenumber should only be used for the invoice itself?")*

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMTYxMi1zaGlwcGluZy1pbnZvaWNlLXNob3dzLWludm9pY2VudW1iZXItYWZ0ZXItcGF5bWVudD90bXBsPW1hcmtkb3du) 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.061 seconds

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