- Posts: 218
- Thank you received: 6
Invoice unit price not including tax in it
- woonydanny
-
Topic Author
- Offline
Less
More
14 years 7 months ago #37429
by woonydanny
Invoice unit price not including tax in it was created by woonydanny
Hi,
How can i have the Unit Price on the Invoice include the tax?
The email confirmation of the order has the price including tax, but it is not the same on the Invoice. Why is the Invoice not display the price the same as the admin email confirmation order and how can i change it as it is a law in my country that we need to always show the price inclusive of tax.
many thanks once again!
How can i have the Unit Price on the Invoice include the tax?
The email confirmation of the order has the price including tax, but it is not the same on the Invoice. Why is the Invoice not display the price the same as the admin email confirmation order and how can i change it as it is a law in my country that we need to always show the price inclusive of tax.
many thanks once again!
Please Log in or Create an account to join the conversation.
14 years 7 months ago #37542
by nicolas
Replied by nicolas on topic Re: Invoice unit price not including tax in it
If you want to change the invoice, you can edit the file "invoice" of the view "order" via the menu Display->views.
It's that line:
<?php echo $this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);?>
If you want the price with tax, you should do like that:
<?php echo $this->currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id);?>
It's that line:
<?php echo $this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);?>
If you want the price with tax, you should do like that:
<?php echo $this->currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id);?>
The following user(s) said Thank You: woonydanny
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 7 months ago #37564
by woonydanny
Replied by woonydanny on topic Re: Invoice unit price not including tax in it
will test tonight and let you know. thanks
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 7 months ago - 14 years 7 months ago #37630
by woonydanny
Replied by woonydanny on topic Re: Invoice unit price not including tax in it
Thank you that changed the Unit Price column. Now i want to change the Price column (the last column in invoice) as well, do i change:
to
?
edit.. that didnt seem to work. i must have it wrong.
Code:
<?php echo $this->currencyHelper->format($product->order_product_total_price_no_vat,$this->order->order_currency_id);?>
to
Code:
<?php echo $this->currencyHelper->format($product->order_product_total_price_vat,$this->order->order_currency_id);?>
?
edit.. that didnt seem to work. i must have it wrong.
Last edit: 14 years 7 months ago by woonydanny.
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 7 months ago #37633
by woonydanny
Replied by woonydanny on topic Re: Invoice unit price not including tax in it
Further to this, how can i change it in the shopping cart and also the frontend Orders view as well?
Please Log in or Create an account to join the conversation.
14 years 7 months ago #37727
by nicolas
Replied by nicolas on topic Re: Invoice unit price not including tax in it
It's like that:
For the checkout you can do like that:
www.hikashop.com/en/forum/4-how-to/28960...-with-tax.html#28960
If you want to change the invoice, you can edit the file "show" of the view "order" via the menu Display->views.
It's that line:
<?php echo $this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);?>
If you want the price with tax, you should do like that:
<?php echo $this->currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id);?>
Code:
<?php echo $this->currencyHelper->format($product->order_product_total_price,$this->order->order_currency_id);?>
For the checkout you can do like that:
www.hikashop.com/en/forum/4-how-to/28960...-with-tax.html#28960
If you want to change the invoice, you can edit the file "show" of the view "order" via the menu Display->views.
It's that line:
<?php echo $this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);?>
If you want the price with tax, you should do like that:
<?php echo $this->currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id);?>
The following user(s) said Thank You: woonydanny
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 7 months ago #38818
by woonydanny
Replied by woonydanny on topic Re: Invoice unit price not including tax in it
Please Log in or Create an account to join the conversation.
14 years 7 months ago #38952
by nicolas
Replied by nicolas on topic Re: Invoice unit price not including tax in it
That's the order details page on the front end ?
You can edit the file "show" of the view "order" of the front end via Display->Views and change the line:
<?php echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id); ?>
to:
<?php echo $this->currencyHelper->format($this->order->order_subtotal,$this->order->order_currency_id); ?>
You can edit the file "show" of the view "order" of the front end via Display->Views and change the line:
<?php echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id); ?>
to:
<?php echo $this->currencyHelper->format($this->order->order_subtotal,$this->order->order_currency_id); ?>
The following user(s) said Thank You: woonydanny
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 4 months ago #50637
by woonydanny
Replied by woonydanny on topic Re: Invoice unit price not including tax in it
do these hacks still work in latest version of hikashop? i have upgraded and done these but it hasnt changed it show prices with the tax....
Please Log in or Create an account to join the conversation.
14 years 4 months ago #50716
by nicolas
Replied by nicolas on topic Re: Invoice unit price not including tax in it
Yes, these modifications all work in the latest version.
Note that they are not hacks but overrides because you keep them when you update/upgrade if you do it via the interface.
Make sure that you edit them for your front end template, and not another one.
Note that they are not hacks but overrides because you keep them when you update/upgrade if you do it via the interface.
Make sure that you edit them for your front end template, and not another one.
Please Log in or Create an account to join the conversation.
- woonydanny
-
Topic Author
- Offline
Less
More
- Posts: 218
- Thank you received: 6
14 years 4 months ago - 14 years 4 months ago #51040
by woonydanny
Replied by woonydanny on topic Re: Invoice unit price not including tax in it
I had to override the file 'invoice' of the 'order' view of the 'bluestork' template for the invoice to change when viewing it from the joomla backend. I am assuming that is correct?
this is the invoice i want to change to have the unit price, price and subtotal to show price with tax.
but there is no file 'show' of the view 'order' for the bluestork template so i dont know how to change the subtotal to have tax in it.
The ability to show the unit price, price and subtotal to be price with tax should be a setting in the backend rather than messing around doing overrides.
this is the invoice i want to change to have the unit price, price and subtotal to show price with tax.
but there is no file 'show' of the view 'order' for the bluestork template so i dont know how to change the subtotal to have tax in it.
The ability to show the unit price, price and subtotal to be price with tax should be a setting in the backend rather than messing around doing overrides.
Last edit: 14 years 4 months ago by woonydanny.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #51161
by nicolas
Replied by nicolas on topic Re: Invoice unit price not including tax in it
the file "show" of the view "order" is for the invoice on the FRONT END. For the invoice on the back end, it's the file "invoice" of the view "order" that you need to edit.
I hear your pain in setting up all that.
That's actually an option which is already added on our end and will be in next version.
I hear your pain in setting up all that.
That's actually an option which is already added on our end and will be in next version.
Please Log in or Create an account to join the conversation.
Time to create page: 0.239 seconds