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

#   Backend invoice

##

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

Less More

- Posts: 9
- Thank you received: 0
-
-

12 years 9 months ago [\#142176](#142176) by [malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")  *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142176 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")* was created by *[malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")*

Version HikaShop [1312130228] Joomla 2.5

Hello,

I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?

Thanks!

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 8 months ago [\#142256](#142256) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142256 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

Hi,
Reading this [ thread](http://www.hikashop.com/forum/4-how-to/10907-vat-on-invoice.html) will probably help you.

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

12 years 8 months ago [\#142267](#142267) by [malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")  Replied by *[malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142267 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

Hi,

Thanks for your answer. But the thread doesn´t help me.

"You can edit the invoices via the menu Display-&gt;Views. For the invoice on the backend, you can search for the file invoice of the view order and then edit its code to your needs." I have the file (see my attachment), all calculations are correct and I edited the code like I wanted it to be.

The only problem is that the 'shipping price incl. vat' is shown after/underneath the 'vat'. When I try to simply to cut&amp;paste the '&lt;tr&gt; vat &lt;/tr&gt;' after the '&lt;tr&gt; shipping price &lt;/tr&gt;' it is not working. Is there in this php some rule what says what has to be first and what second?

Best regards

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#142331](#142331) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142331 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

Hi,

Could you show us exactly what part of the code you changed with the original and the final code you have? It will avoid us to loose some time ![:)](/media/kunena/emoticons/3.png ":)"). From what I can see there might indeed be some php you moved (or forgot to move).

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

12 years 8 months ago [\#142373](#142373) by [malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")  Replied by *[malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142373 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

Hi again,

I attched both files. 'working invoice' is edited to my special needs and it is functioning (=when I press the button it shows up).In the 'non-working' file I cut out line *1-*20 (shipping) from the original position and paste it earlier in the php so it would appear before the tax and after the subtotal. But this version is not functioning (=when I press the button it doesn´t show up, only a white page). What did I miss?

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#142478](#142478) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142478 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

That was way easier this way ![:)](/media/kunena/emoticons/3.png ":)")
You just forgot to cut this: Code:

&lt;?php } ?&gt;

At the end of the lines you moved.
As you can see the code you cut starts with an if condition. Without the closing braces it can't work anymore.

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

12 years 8 months ago [\#142495](#142495) by [malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")  Replied by *[malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142495 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

No, that´s not it.

In the original and my 'working invoice' the code: &lt;?php }?&gt; wasn´t there either. But even when I put it, it is not working. When I put the shipping code line *1-*20 just for fun after 'HIKASHOP_FINAL_TOTAL' it is working. There is something in the php-file that doesn´t allow me to change the VAT with the SHIPPING code.

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#142526](#142526) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142526 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

I used winmerge to compare your files and did not only moved these 20 lines. You also moved the HIKASHOP_PAYMENT part so that's definitely why it doesn't work. Just move the right part including the braces and it should work.

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

12 years 8 months ago -  12 years 8 months ago [\#142632](#142632) by [malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")  Replied by *[malvin111](/forum/user/13915-malvin111 "View malvin111's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142632 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

Hi,

okay I got it. The problem wasn´t the PAYMENT part. The problem was that I put the whole SHIPPING part before the line

> &lt;?php $taxes = $this-&gt;order-&gt;order\_subtotal-$this-&gt;order-&gt;order\_subtotal\_no\_vat..........

so that the SUBTOTAL-if-part couldn´t finish. I put this after that and now it is working.

So the problem is solved. Thanks for your help!!!

Last edit: 12 years 8 months ago by [malvin111](/forum/user/13915-malvin111 "View malvin111's Profile").

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 8 months ago [\#142647](#142647) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Backend invoice](/forum/40-taxes/865528-backend-invoice#142647 "Version HikaShop &#91;1312130228&#93; Joomla 2.5  Hello,  I want to change in 'backend, bluestork, order, invoice' that the VAT is underneath the SHIPPING. In the frontend and the customer e-mail it is like that (first the shipping price and then the vat) because the shipping includes taxes and so it makes more sence. My attempt to simply turn it around with 'cut and paste' is not working. The php doesn´t open. Any ideas what to do?  Thanks!")*

Glod to see you solved it ![:)](/media/kunena/emoticons/3.png ":)").

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

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