- Posts: 9
- Thank you received: 0
Backend invoice
12 years 9 months ago #142176
by malvin111
Backend invoice was created by malvin111
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!
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 or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 8 months ago #142256
by Mohamed Thelji
Replied by Mohamed Thelji on topic Backend invoice
Hi,
Reading this thread will probably help you.
Reading this thread will probably help you.
Please Log in or Create an account to join the conversation.
12 years 8 months ago #142267
by malvin111
Replied by malvin111 on topic Backend invoice
Hi,
Thanks for your answer. But the thread doesn´t help me.
"You can edit the invoices via the menu Display->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&paste the '<tr> vat </tr>' after the '<tr> shipping price </tr>' it is not working. Is there in this php some rule what says what has to be first and what second?
Best regards
Thanks for your answer. But the thread doesn´t help me.
"You can edit the invoices via the menu Display->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&paste the '<tr> vat </tr>' after the '<tr> shipping price </tr>' 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 or Create an account to join the conversation.
12 years 8 months ago #142331
by Eliot
Replied by Eliot on topic Backend invoice
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
. From what I can see there might indeed be some php you moved (or forgot to move).
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
Please Log in or Create an account to join the conversation.
12 years 8 months ago #142373
by malvin111
Replied by malvin111 on topic Backend invoice
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?
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 or Create an account to join the conversation.
12 years 8 months ago #142478
by Eliot
Replied by Eliot on topic Backend invoice
That was way easier this way 
You just forgot to cut this:
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.
You just forgot to cut this:
Code:
<?php }
?>
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 or Create an account to join the conversation.
12 years 8 months ago #142495
by malvin111
Replied by malvin111 on topic Backend invoice
No, that´s not it.
In the original and my 'working invoice' the code: <?php }?> 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.
In the original and my 'working invoice' the code: <?php }?> 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 or Create an account to join the conversation.
12 years 8 months ago #142526
by Eliot
Replied by Eliot on topic Backend invoice
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 or Create an account to join the conversation.
12 years 8 months ago - 12 years 8 months ago #142632
by malvin111
Replied by malvin111 on topic Backend invoice
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
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!!!
okay I got it. The problem wasn´t the PAYMENT part. The problem was that I put the whole SHIPPING part before the line
<?php $taxes = $this->order->order_subtotal-$this->order->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.
Please Log in or Create an account to join the conversation.
12 years 8 months ago #142647
by Eliot
Replied by Eliot on topic Backend invoice
Glod to see you solved it
.
Please Log in or Create an account to join the conversation.
Time to create page: 0.113 seconds