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

#   Invoice printing in frontend

##

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

Less More

- Posts: 190
- Thank you received: 0
-
-

14 years 6 months ago -  14 years 6 months ago [\#46876](#46876) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  *[Invoice printing in frontend](/forum/2-general-talk-about-hikashop/46876-invoice-printing-in-frontend#46876 "Hi, maybe I missed something, but is there a way for customers to print their invoices on confirmed payments, like in the backend ? In Customers / Informations / Backend, there is no print button (for a simplified page without templating)  Thanks Regards  Edit : I found the &quot;Allow users to print invoices in the frontend&quot; option in configurations :blink:")* was created by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")*

Hi,
maybe I missed something, but is there a way for customers to print their invoices on confirmed payments, like in the backend ?
In Customers / Informations / Backend, there is no print button (for a simplified page without templating)

Thanks
Regards

Edit : I found the "Allow users to print invoices in the frontend" option in configurations :blink:

Last edit: 14 years 6 months ago by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODc2LWludm9pY2UtcHJpbnRpbmctaW4tZnJvbnRlbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 6 months ago [\#46997](#46997) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invoice printing in frontend](/forum/2-general-talk-about-hikashop/46876-invoice-printing-in-frontend#46997 "Hi, maybe I missed something, but is there a way for customers to print their invoices on confirmed payments, like in the backend ? In Customers / Informations / Backend, there is no print button (for a simplified page without templating)  Thanks Regards  Edit : I found the &quot;Allow users to print invoices in the frontend&quot; option in configurations :blink:")*

That's indeed the option.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODc2LWludm9pY2UtcHJpbnRpbmctaW4tZnJvbnRlbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 190
- Thank you received: 0
-
-

14 years 6 months ago [\#47078](#47078) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  Replied by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")* on topic *[Re: Invoice printing in frontend](/forum/2-general-talk-about-hikashop/46876-invoice-printing-in-frontend#47078 "Hi, maybe I missed something, but is there a way for customers to print their invoices on confirmed payments, like in the backend ? In Customers / Informations / Backend, there is no print button (for a simplified page without templating)  Thanks Regards  Edit : I found the &quot;Allow users to print invoices in the frontend&quot; option in configurations :blink:")*

I have now an additional question.
How to restrict invoice printing to Confirmed and Shipped commands ?
No print of Created and Invalid commands !

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODc2LWludm9pY2UtcHJpbnRpbmctaW4tZnJvbnRlbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 6 months ago [\#47086](#47086) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invoice printing in frontend](/forum/2-general-talk-about-hikashop/46876-invoice-printing-in-frontend#47086 "Hi, maybe I missed something, but is there a way for customers to print their invoices on confirmed payments, like in the backend ? In Customers / Informations / Backend, there is no print button (for a simplified page without templating)  Thanks Regards  Edit : I found the &quot;Allow users to print invoices in the frontend&quot; option in configurations :blink:")*

Invalid orders cannot be printed if you use the latest version.

Created orders can be printed though. If you don't want that, you can edit the file "show" of the view "order" via the menu Display-&gt;Views and change the line:
&lt;?php if(hikashop_level(1) &amp;&amp; $this-&gt;config-&gt;get('print_invoice_frontend') &amp;&amp; !in_array($this-&gt;element-&gt;order_status,array('refunded','cancelled'))){ ?&gt;

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

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODc2LWludm9pY2UtcHJpbnRpbmctaW4tZnJvbnRlbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 190
- Thank you received: 0
-
-

14 years 6 months ago -  14 years 6 months ago [\#47155](#47155) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  Replied by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")* on topic *[Re: Invoice printing in frontend](/forum/2-general-talk-about-hikashop/46876-invoice-printing-in-frontend#47155 "Hi, maybe I missed something, but is there a way for customers to print their invoices on confirmed payments, like in the backend ? In Customers / Informations / Backend, there is no print button (for a simplified page without templating)  Thanks Regards  Edit : I found the &quot;Allow users to print invoices in the frontend&quot; option in configurations :blink:")*

Thanks Nicolas,
I understand that the in_array() should be filled with non-desired status.

Would it be done that way by default in Hikashop (only for confirmed orders) ?

Regards

Last edit: 14 years 6 months ago by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODc2LWludm9pY2UtcHJpbnRpbmctaW4tZnJvbnRlbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 190
- Thank you received: 0
-
-

14 years 6 months ago [\#47234](#47234) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  Replied by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")* on topic *[Re: Invoice printing in frontend](/forum/2-general-talk-about-hikashop/46876-invoice-printing-in-frontend#47234 "Hi, maybe I missed something, but is there a way for customers to print their invoices on confirmed payments, like in the backend ? In Customers / Informations / Backend, there is no print button (for a simplified page without templating)  Thanks Regards  Edit : I found the &quot;Allow users to print invoices in the frontend&quot; option in configurations :blink:")*

Because Invalid orders are allowed to be printed (Last Essential version), I had to add the following code Code:

&lt;?php if(hikashop_level(1) &amp;&amp; $this-&gt;config-&gt;get('print_invoice_frontend') &amp;&amp; !in_array($this-&gt;element-&gt;order_status,array('refunded','cancelled','created','invalid','pending'))){ ?&gt;

Many thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ2ODc2LWludm9pY2UtcHJpbnRpbmctaW4tZnJvbnRlbmQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.074 seconds

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