Backend invoice

  • Posts: 9
  • Thank you received: 0
10 years 9 months ago #142176

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!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #142256

Hi,
Reading this thread will probably help you.

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 0
10 years 9 months ago #142267

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

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #142331

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).

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 0
10 years 9 months ago #142373

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?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #142478

That was way easier this way :)
You just forgot to cut this:

 <?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.

  • Posts: 9
  • Thank you received: 0
10 years 9 months ago #142495

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.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #142526

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.

  • Posts: 9
  • Thank you received: 0
10 years 9 months ago #142632

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

<?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: 10 years 9 months ago by malvin111.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
10 years 9 months ago #142647

Glod to see you solved it :).

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum