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

#   Invoice in Frontend is Different to Invoice in backend

##

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile") Topic Author
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

9 years 5 months ago -  9 years 5 months ago [\#271852](#271852) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  *[Invoice in Frontend is Different to Invoice in backend](/forum/32-content-creation/890697-invoice-in-frontend-is-different-to-invoice-in-backend#271852 "Hi I have modified the invoice file order / invoice.php to include some custom fields as follows  This places a name and date of birth into my invoice when i click on the &quot;invoice&quot; button in the backend. Display&gt;Frontend is set to Yes on the fields  However the customer invoice accessed via Account Details &gt; Orders in the frontend does not contain my custom fields - its opening the following URL xxxx/order/invoice/order&#95;id-6/tmpl-component.html  How can I locate / edit the frontend invoice file please.")* was created by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")*

Hi I have modified the invoice file
order / invoice.php to include some custom fields as follows Code:

&lt;?php echo $this-&gt;order-&gt;customer-&gt;student; ?&gt; &#124; &lt;?php echo $this-&gt;order-&gt;customer-&gt;dob; ?&gt;

This places a name and date of birth into my invoice when i click on the "invoice" button in the backend.
Display&gt;Frontend is set to Yes on the fields

However the customer invoice accessed via **Account Details &gt; Orders** in the frontend does not contain my custom fields - its opening the following URL
xxxx/order/invoice/order_id-6/tmpl-component.html

How can I locate / edit the frontend invoice file please.

> Related posts
> [ www.hikashop.com/forum/2-general-talk-ab...hipping-invoice.html](https://www.hikashop.com/forum/2-general-talk-about-hikashop/38726-custom-fields-in-shipping-invoice.html)
> [ www.hikashop.com/forum/orders-management...-invoice-orders.html](https://www.hikashop.com/forum/orders-management/866397-custom-field-data-in-invoice-orders.html)

Last edit: 9 years 5 months ago by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile").

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

9 years 5 months ago -  9 years 5 months ago [\#271870](#271870) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Invoice in Frontend is Different to Invoice in backend](/forum/32-content-creation/890697-invoice-in-frontend-is-different-to-invoice-in-backend#271870 "Hi I have modified the invoice file order / invoice.php to include some custom fields as follows  This places a name and date of birth into my invoice when i click on the &quot;invoice&quot; button in the backend. Display&gt;Frontend is set to Yes on the fields  However the customer invoice accessed via Account Details &gt; Orders in the frontend does not contain my custom fields - its opening the following URL xxxx/order/invoice/order&#95;id-6/tmpl-component.html  How can I locate / edit the frontend invoice file please.")*

Hello,

You will find this file in Order/**show** view, like this :

[ ![FEorder-invoice.png](/forum/attachment/38650) ](/forum/attachment/38650 "...er-invoice.png")

Hope this will help you to achieved your aim.

Regards

- [ ![FEorder-invoice.png](/forum/attachment/38650) ](/forum/attachment/38650 "...er-invoice.png") [ ](/forum/attachment/38650?download=1 "...er-invoice.png")

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

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

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

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile") Topic Author
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

9 years 5 months ago -  9 years 5 months ago [\#272079](#272079) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[Invoice in Frontend is Different to Invoice in backend](/forum/32-content-creation/890697-invoice-in-frontend-is-different-to-invoice-in-backend#272079 "Hi I have modified the invoice file order / invoice.php to include some custom fields as follows  This places a name and date of birth into my invoice when i click on the &quot;invoice&quot; button in the backend. Display&gt;Frontend is set to Yes on the fields  However the customer invoice accessed via Account Details &gt; Orders in the frontend does not contain my custom fields - its opening the following URL xxxx/order/invoice/order&#95;id-6/tmpl-component.html  How can I locate / edit the frontend invoice file please.")*

Hi I tried modifying that file order / show.php but it has no effect on the popup / print output for the invoice in the frontend
e.g i commented out the php on line 108 but the Lang entry still loads in the print invoice

&lt;legend style="background-color: #FFFFFF;"&gt;&lt;?//php echo JText::_('HIKASHOP_BILLING_ADDRESS'); ?&gt;&lt;/legend&gt;
UPDATE - SORRY IT WORKS I HAD TO PICK THE SHOW.PHP FILE RELATED TO MY FRONTEND TEMPLATE!

thanks for the help.

Last edit: 9 years 5 months ago by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile").

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

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