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

#   Change invoice printing layout

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-
- [](http://www.MadMan.co.za)
-

12 years 1 month ago [\#169812](#169812) by [MadMan](/forum/user/32264-madman "View MadMan's Profile")  *[Change invoice printing layout](/forum/35-orders-management/870788-change-invoice-printing-layout#169812 "-- url of the page with the problem -- :   www.madman.co.za  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0  Hi, I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.  I would like the following: 1. Remove my company details, 2. put date, inv number (big bold),Shipping method and payment method in top right. 3. Move billing and shipping addresses up to top, add custtomer email. 4. Print description, product code, qty, unit and total price across the page 5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)  If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.  Thank You Regards, Brian")* was created by *[MadMan](/forum/user/32264-madman "View MadMan's Profile")*

-- url of the page with the problem -- : [ www.madman.co.za](http://www.madman.co.za)
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.0

Hi,
I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.

I would like the following:
1. Remove my company details,
2. put date, inv number (big bold),Shipping method and payment method in top right.
3. Move billing and shipping addresses up to top, add custtomer email.
4. Print description, product code, qty, unit and total price across the page
5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)

If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.

Thank You
Regards, Brian

---

Engine Monitoring and Performance Systems

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 month ago [\#169815](#169815) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Change invoice printing layout](/forum/35-orders-management/870788-change-invoice-printing-layout#169815 "-- url of the page with the problem -- :   www.madman.co.za  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0  Hi, I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.  I would like the following: 1. Remove my company details, 2. put date, inv number (big bold),Shipping method and payment method in top right. 3. Move billing and shipping addresses up to top, add custtomer email. 4. Print description, product code, qty, unit and total price across the page 5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)  If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.  Thank You Regards, Brian")*

Hi,

In fact it's more HTML than PHP. All the php codes are in HTML tags, so you just have to move the HTML parts as you want.
Nothing to edit in PHP. ![;)](/media/kunena/emoticons/11.png ";)")

The following user(s) said Thank You: [MadMan](/forum/user/32264-madman "View MadMan's Profile")

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-
- [](http://www.MadMan.co.za)
-

12 years 1 month ago [\#170094](#170094) by [MadMan](/forum/user/32264-madman "View MadMan's Profile")  Replied by *[MadMan](/forum/user/32264-madman "View MadMan's Profile")* on topic *[Change invoice printing layout](/forum/35-orders-management/870788-change-invoice-printing-layout#170094 "-- url of the page with the problem -- :   www.madman.co.za  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0  Hi, I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.  I would like the following: 1. Remove my company details, 2. put date, inv number (big bold),Shipping method and payment method in top right. 3. Move billing and shipping addresses up to top, add custtomer email. 4. Print description, product code, qty, unit and total price across the page 5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)  If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.  Thank You Regards, Brian")*

Thanks Xavier...I am figuring it out...

---

Engine Monitoring and Performance Systems

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-
- [](http://www.MadMan.co.za)
-

12 years 1 month ago [\#170111](#170111) by [MadMan](/forum/user/32264-madman "View MadMan's Profile")  Replied by *[MadMan](/forum/user/32264-madman "View MadMan's Profile")* on topic *[Change invoice printing layout](/forum/35-orders-management/870788-change-invoice-printing-layout#170111 "-- url of the page with the problem -- :   www.madman.co.za  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0  Hi, I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.  I would like the following: 1. Remove my company details, 2. put date, inv number (big bold),Shipping method and payment method in top right. 3. Move billing and shipping addresses up to top, add custtomer email. 4. Print description, product code, qty, unit and total price across the page 5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)  If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.  Thank You Regards, Brian")*

Xavier,

I have done what I need but have one more question.
I use the printed invoice to make the accounting invoice, so I do not need the description, but rather the code.

I would like to REMOVE the product description and
ADD only the product code.

I don't use the product code inthe front end display at all, so I need to force the display of the code and suppress the display of the product description.

Please give me the code to do this and an idea of where to place it.

Regards
Brian

---

Engine Monitoring and Performance Systems

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 month ago [\#170114](#170114) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Change invoice printing layout](/forum/35-orders-management/870788-change-invoice-printing-layout#170114 "-- url of the page with the problem -- :   www.madman.co.za  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0  Hi, I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.  I would like the following: 1. Remove my company details, 2. put date, inv number (big bold),Shipping method and payment method in top right. 3. Move billing and shipping addresses up to top, add custtomer email. 4. Print description, product code, qty, unit and total price across the page 5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)  If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.  Thank You Regards, Brian")*

Hi,

To not have the product description but have the code, you just have to replace "description" by "code" in the PHP variable ![;)](/media/kunena/emoticons/11.png ";)")
Could you tell me which view you are editing exactly ?

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-
- [](http://www.MadMan.co.za)
-

12 years 1 month ago [\#170371](#170371) by [MadMan](/forum/user/32264-madman "View MadMan's Profile")  Replied by *[MadMan](/forum/user/32264-madman "View MadMan's Profile")* on topic *[Change invoice printing layout](/forum/35-orders-management/870788-change-invoice-printing-layout#170371 "-- url of the page with the problem -- :   www.madman.co.za  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0  Hi, I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.  I would like the following: 1. Remove my company details, 2. put date, inv number (big bold),Shipping method and payment method in top right. 3. Move billing and shipping addresses up to top, add custtomer email. 4. Print description, product code, qty, unit and total price across the page 5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)  If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.  Thank You Regards, Brian")*

I am editing the invoice view for my template so that it prints only the code not the description. I see there is mention of the product code on the file, where exactly would I replace the "description" with "code" ?
Thanks
Brian

---

Engine Monitoring and Performance Systems

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MDc4OC1jaGFuZ2UtaW52b2ljZS1wcmludGluZy1sYXlvdXQ/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

12 years 1 month ago [\#170430](#170430) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change invoice printing layout](/forum/35-orders-management/870788-change-invoice-printing-layout#170430 "-- url of the page with the problem -- :   www.madman.co.za  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0  Hi, I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.  I would like the following: 1. Remove my company details, 2. put date, inv number (big bold),Shipping method and payment method in top right. 3. Move billing and shipping addresses up to top, add custtomer email. 4. Print description, product code, qty, unit and total price across the page 5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)  If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.  Thank You Regards, Brian")*

The invoice of the frontend is displayed by the file "show.php" of the view "order" of your frontend template and you can edit it via the menu Display&gt;Views.
There is no display of the description of the product in the frontend invoice by default.
If you get the product description, it would mean that you already added some code there in order to add it.
And the product code is actually already displayed in it if the product code display option of the HikaShop configuration is turned on.
Never the less, if you want to do it manually, just add such code after the display of the product_name: Code:

&lt;?php echo $product-&gt;order_product_code; ?&gt;

The following user(s) said Thank You: [MadMan](/forum/user/32264-madman "View MadMan's Profile")

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-
- [](http://www.MadMan.co.za)
-

12 years 1 month ago [\#170546](#170546) by [MadMan](/forum/user/32264-madman "View MadMan's Profile")  Replied by *[MadMan](/forum/user/32264-madman "View MadMan's Profile")* on topic *[Change invoice printing layout](/forum/35-orders-management/870788-change-invoice-printing-layout#170546 "-- url of the page with the problem -- :   www.madman.co.za  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0  Hi, I would like some guidance please to edit the layout of the printed invoice / order. I have looked at the views&gt;invoice file but do not understand PHP and cannot figure out even where to add code. I have had ZERO luck with the commercial jobs section. No interest in helping.  I would like the following: 1. Remove my company details, 2. put date, inv number (big bold),Shipping method and payment method in top right. 3. Move billing and shipping addresses up to top, add custtomer email. 4. Print description, product code, qty, unit and total price across the page 5 Print subtotal, shipping and total at bottom as per normal, such that the numbers fit (at the moment the thousands wrap to the next line)  If anyone can help me to understand what code to put where I can do it, or if there is some sort of emulator that will show the actual layout on the page that would help alot.  Thank You Regards, Brian")*

All fixed up, thanks !

---

Engine Monitoring and Performance Systems

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

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

[](#top)
