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

#   Pending order status - invoice print button

##

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

Less More

- Posts: 9
- Thank you received: 1
-
-

7 years 8 months ago [\#305290](#305290) by [brunensys](/forum/user/57500-brunensys "View brunensys's Profile")  *[Pending order status - invoice print button](/forum/35-orders-management/897223-pending-order-status-invoice-print-button#305290 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.4 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome - 73.0.3683.86  Hello,  pending order status - the invoice button at the customer user account is still on even if I turn off this option in backend (order statuses).  Thank you in advance,  Martin")* was created by *[brunensys](/forum/user/57500-brunensys "View brunensys's Profile")*

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.4
-- PHP version -- : 5.5.9
-- Browser(s) name and version -- : Chrome - 73.0.3683.86

Hello,

pending order status - the invoice button at the customer user account is still on even if I turn off this option in backend (order statuses).

Thank you in advance,

Martin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NzIyMy1wZW5kaW5nLW9yZGVyLXN0YXR1cy1pbnZvaWNlLXByaW50LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

7 years 7 months ago [\#305306](#305306) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Pending order status - invoice print button](/forum/35-orders-management/897223-pending-order-status-invoice-print-button#305306 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.4 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome - 73.0.3683.86  Hello,  pending order status - the invoice button at the customer user account is still on even if I turn off this option in backend (order statuses).  Thank you in advance,  Martin")*

Hi,

Please provide a test user account with a pending order and a screenshot of the System&gt;Order statuses menu so that we can get a better understanding of the situation.
Also, please check if you have the files templates/YOUR_TEMPLATE/html/com_hikashop/order/listing.php templates/YOUR_TEMPLATE/html/com_hikashop/order/show.php templates/YOUR_TEMPLATE/html/com_hikashop/user/cpanel.php via FTP and if you do try renaming it and see if that helps.

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

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

Less More

- Posts: 9
- Thank you received: 1
-
-

7 years 7 months ago -  7 years 7 months ago [\#305310](#305310) by [brunensys](/forum/user/57500-brunensys "View brunensys's Profile")  Replied by *[brunensys](/forum/user/57500-brunensys "View brunensys's Profile")* on topic *[Pending order status - invoice print button](/forum/35-orders-management/897223-pending-order-status-invoice-print-button#305310 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.4 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome - 73.0.3683.86  Hello,  pending order status - the invoice button at the customer user account is still on even if I turn off this option in backend (order statuses).  Thank you in advance,  Martin")*

Hi Nicolas,

here you can find screenshot of the System&gt;Order statuses menu:
[ ![Snimekobrazovky2019-03-31v20.51.22.png](/forum/attachment/46495) ](/forum/attachment/46495 "...1v20.51.22.png")

Test account you can find here:
**\[Moderator\]** We kept on our side your acces references, next time use our Contact us form with in your message an url link to the thread.

I do have a template overrides "templates/YOUR_TEMPLATE/html/com_hikashop/order/listing.php" and "templates/YOUR_TEMPLATE/html/com_hikashop/order/show.php". I renamed these files but no changes.

Martin

- [ ![Snimekobrazovky2019-03-31v20.51.22.png](/forum/attachment/46495) ](/forum/attachment/46495 "...1v20.51.22.png") [ ](/forum/attachment/46495?download=1 "...1v20.51.22.png")

Last edit: 7 years 7 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

7 years 7 months ago -  7 years 7 months ago [\#305320](#305320) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Pending order status - invoice print button](/forum/35-orders-management/897223-pending-order-status-invoice-print-button#305320 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.4 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome - 73.0.3683.86  Hello,  pending order status - the invoice button at the customer user account is still on even if I turn off this option in backend (order statuses).  Thank you in advance,  Martin")*

Hello,

We had a look on your website, and we see the issue from what we see so far there are **2** possible roots :
**-** Your order for a reason or another was **confirmed or shipped** then mute to **Pending** (manually from backend for test purpose)
**OR**
**-** Their is some override view on order view (user/**cpanel**)
**=&gt;** About this specific point, your answer about order/show don't help us as it's not link to customer panel view, in order to check this last point can you try to process some test with a **default template** like ProtoStar ?
If that solve your issue, it's link to an override view, if not, we will need **backend access** to go more deep in the context.

Awaiting news from you to move forward on your subject.
Regards

Last edit: 7 years 7 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 9
- Thank you received: 1
-
-

7 years 7 months ago [\#305326](#305326) by [brunensys](/forum/user/57500-brunensys "View brunensys's Profile")  Replied by *[brunensys](/forum/user/57500-brunensys "View brunensys's Profile")* on topic *[Pending order status - invoice print button](/forum/35-orders-management/897223-pending-order-status-invoice-print-button#305326 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.4 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome - 73.0.3683.86  Hello,  pending order status - the invoice button at the customer user account is still on even if I turn off this option in backend (order statuses).  Thank you in advance,  Martin")*

Hi Philip,

none of these two possible roots is not right. Orders were not manually switched to pending, payment plugin did it (collect on delivery). I am using my own template but I tried to switch to prostostar which is without any modification but without any success.

From my point of view is the problem pending status because when the order is put to created order status (automatically by payment plugin) there is no "print invoice button" but when I manually switch order to pending status (no confirmed or shipped status before) button appears.

You can use the same account I provided before to access the backend.

Martin

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NzIyMy1wZW5kaW5nLW9yZGVyLXN0YXR1cy1pbnZvaWNlLXByaW50LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14326
-
-

7 years 7 months ago [\#305331](#305331) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Pending order status - invoice print button](/forum/35-orders-management/897223-pending-order-status-invoice-print-button#305331 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.4 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome - 73.0.3683.86  Hello,  pending order status - the invoice button at the customer user account is still on even if I turn off this option in backend (order statuses).  Thank you in advance,  Martin")*

Hi,

There is indeed a discrepency between how the print invoice button is handled on the order details page and the orders listing for extra order statuses.
Change the line: Code:

if(hikashop_level(1) &amp;&amp; $this-&gt;config-&gt;get('print_invoice_frontend', 0) &amp;&amp; !in_array($this-&gt;element-&gt;order_status, array('created','refunded','cancelled')) &amp;&amp; ($this-&gt;invoice_type == 'order')) {

to:
Code:

if(hikashop_level(1) &amp;&amp; $this-&gt;config-&gt;get('print_invoice_frontend', 0) &amp;&amp; !empty($this-&gt;element-&gt;order_invoice_id) &amp;&amp; ($this-&gt;invoice_type == 'order')) {

in the file components/com_hikashop/views/order/view.html.php and that will fix the problem.
For the next version of HikaShop, we'll actually introduce a new column in the menu System&gt;Order statuses to be able to select the statuses for which you want to display the invoice button. That will allow for a lot more flexibility.

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

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

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

Less More

- Posts: 9
- Thank you received: 1
-
-

7 years 7 months ago [\#305369](#305369) by [brunensys](/forum/user/57500-brunensys "View brunensys's Profile")  Replied by *[brunensys](/forum/user/57500-brunensys "View brunensys's Profile")* on topic *[Pending order status - invoice print button](/forum/35-orders-management/897223-pending-order-status-invoice-print-button#305369 "-- HikaShop version -- : 4.0.3 -- Joomla version -- : 3.9.4 -- PHP version -- : 5.5.9 -- Browser(s) name and version -- : Chrome - 73.0.3683.86  Hello,  pending order status - the invoice button at the customer user account is still on even if I turn off this option in backend (order statuses).  Thank you in advance,  Martin")*

Hi Nicolas,

yes, that works, thank you.

Martin

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

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