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

#   Create invoce only for "confirmed" orders

##

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

Less More

- Posts: 19
- Thank you received: 0
-
-

14 years 4 months ago [\#51669](#51669) by [Ciovo](/forum/user/6733-ciovo "View Ciovo's Profile")  *[Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#51669 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")* was created by *[Ciovo](/forum/user/6733-ciovo "View Ciovo's Profile")*

Hello!
Is it possible to create an invoice only after an order becomes confirmed?
I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxNjY5LWNyZWF0ZS1pbnZvY2Utb25seS1mb3ItY29uZmlybWVkLW9yZGVycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 4 months ago [\#51740](#51740) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#51740 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

Hi,

The invoice number and the order number are the same number in HikaShop for now.
It's easier to understand for beginners...

It's always possible, but you will have to modify the code at several places in HikaShop... So if you're not a developer, it's not possible.

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

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

Less More

- Posts: 19
- Thank you received: 0
-
-

14 years 4 months ago [\#51757](#51757) by [Ciovo](/forum/user/6733-ciovo "View Ciovo's Profile")  Replied by *[Ciovo](/forum/user/6733-ciovo "View Ciovo's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#51757 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

I'm a developer: can you give some advice?
Is it necessarity to "hack" the core or is it possible to create a plugin?

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxNjY5LWNyZWF0ZS1pbnZvY2Utb25seS1mb3ItY29uZmlybWVkLW9yZGVycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 4 months ago [\#51829](#51829) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#51829 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

You can do it without any hacks.

First add a custom field of the table "order" via the menu Display-&gt;Custom fields (business edition) in order to be able to attached the invoice number to the orders.
Then create a hikashop plugin to generate the invoice number when orders are confirmed. We have some documentation for developers on that:
[ www.hikashop.com/en/support/documentatio...l#onAfterOrderUpdate](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderUpdate)
Then, you can override the views of HikaShop via the menu Display&gt;Views and the emails of HikaShop via the System-&gt;Emails menu in order to display the invoice number when necessary.

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

14 years 1 month ago [\#65921](#65921) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#65921 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

hello nicolas,

also need to know just how to make the view "Display&gt;Views&gt;shows" is displayed only in state confirmed order.

Thanks again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxNjY5LWNyZWF0ZS1pbnZvY2Utb25seS1mb3ItY29uZmlybWVkLW9yZGVycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 1 month ago [\#66055](#66055) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#66055 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

I don't understand your question. Can you reformulate please and give more information on what you want ?

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

14 years 1 month ago [\#66518](#66518) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#66518 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

my question is:
How to make it only to download the bill that is in "Display&gt; Views&gt; shows" only if its state is set to "confirmed".
Hikashop use for a system in a university enrollments. I just want to discharge the bank receipt admitted students in state "confirmed".
Thank you for your quick response. I hope I explained correctly this time.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxNjY5LWNyZWF0ZS1pbnZvY2Utb25seS1mb3ItY29uZmlybWVkLW9yZGVycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 1 month ago [\#66642](#66642) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#66642 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

You can just change the line:
if( $this-&gt;config-&gt;get('print_invoice_frontend') &amp;&amp; !in_array($this-&gt;element-&gt;order_status,array('refunded','cancelled'))){ ?&gt;

to:
if( $this-&gt;config-&gt;get('print_invoice_frontend') &amp;&amp; !in_array($this-&gt;element-&gt;order_status,array('created','refunded','cancelled'))){ ?&gt;

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

14 years 3 weeks ago [\#68122](#68122) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#68122 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

Hello,

It is possible that in "order / listing.php" only to access the link that shows "order / show.php" only "confirmed oeders".

Regards and thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxNjY5LWNyZWF0ZS1pbnZvY2Utb25seS1mb3ItY29uZmlybWVkLW9yZGVycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 3 weeks ago [\#68382](#68382) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#68382 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

Hi,

Sure, after the line:
$row =&amp; $this-&gt;rows[$i];

add the line:
if($row-&gt;order_status!='confirmed') continue;

in the order/listing.php file

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

14 years 3 weeks ago [\#68514](#68514) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#68514 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

I just want to break the link

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxNjY5LWNyZWF0ZS1pbnZvY2Utb25seS1mb3ItY29uZmlybWVkLW9yZGVycz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

14 years 3 weeks ago [\#68727](#68727) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#68727 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

Then in that case you should change the code:
&lt;a href="&lt;?php echo hikashop_completeLink('order&amp;task=show&amp;cid='.$row-&gt;order_id.$url_itemid); ?&gt;"&gt;
&lt;?php echo $row-&gt;order_number; ?&gt;
&lt;/a&gt;

to:
&lt;?php if($row-&gt;order_status!='confirmed') {echo $row-&gt;order_number; }else{ ?&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('order&amp;task=show&amp;cid='.$row-&gt;order_id.$url_itemid); ?&gt;"&gt;&lt;a href="&lt;?php echo hikashop_completeLink('order&amp;task=show&amp;cid='.$row-&gt;order_id.$url_itemid); ?&gt;"&gt;
&lt;?php echo $row-&gt;order_number; ?&gt;
&lt;/a&gt;
&lt;?php } ?&gt;

The following user(s) said Thank You: [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")

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

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

Less More

- Posts: 267
- Thank you received: 5
-
-
-
-

14 years 1 week ago [\#70420](#70420) by [dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")  Replied by *[dvddvd](/forum/user/7721-dvddvd "View dvddvd's Profile")* on topic *[Re: Create invoce only for "confirmed" orders](/forum/4-how-to/51669-create-invoce-only-for-confirmed-orders#70420 "Hello! Is it possible to create an invoice only after an order becomes confirmed? I use bank transfer and I'd like to show and assign othe rder number after I receive the payment, so that the order is based on Payment reception and not order creation.  Thank you!")*

Thanks Nicholas works perfectly

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

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

[](#top)
