SOLVED: Invoice: place price per unit with tax

  • Posts: 86
  • Thank you received: 2
11 years 1 month ago #127177

-- HikaShop version -- : 2.0.0
-- Joomla version -- : 2.5.14

Hello,

I need to add in the invoice the price per unit without and with tax included.

What is the correct php code to add the price per unit with tax?



Thank you for your help!

Last edit: 11 years 1 month ago by scharfet.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #127219

Hi

I guess you already have the answer in the code itself:

<td class="hikashop_order_item_price_value">
	<?php
	if($this->config->get('price_with_tax')){
		echo $this->currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id);
	}else{
		echo $this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);
	} ?>
</td>
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: scharfet

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

  • Posts: 86
  • Thank you received: 2
11 years 1 month ago #127222

Thank you!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum