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

#   Customization Bill

##

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

Less More

- Posts: 22
- Thank you received: 1
-
-

12 years 6 months ago [\#151639](#151639) by [Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")  *[Customization Bill](/forum/33-customers/867341-customization-bill#151639 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")* was created by *[Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")*

-- url of the page with the problem -- : [ latiendaelectronica.es](http://latiendaelectronica.es)
-- HikaShop version -- : 2.3.0 (business)
-- Joomla version -- : 3.2.2
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : Firefox 27.0.x

Hi
I would like customize bill generate by hikashop
where i can change and customize this bill as I attach, to show total price without VAT.
I would like show a row with price without VAT
Thanks
Best regards

- [ ![h0ce2965.png](/forum/attachment/16618) ](/forum/attachment/16618 "h0ce2965.png") [ ](/forum/attachment/16618?download=1 "h0ce2965.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 6 months ago [\#151666](#151666) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Customization Bill](/forum/33-customers/867341-customization-bill#151666 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")*

Hi,

At which place exactly you want to remove that ?
The order views are "order / show" in frontend template, "order / form" and "order / invoice" in backend template, this can be edited through the menu Display &gt; Views.

If you use the PDF invoice plugin, so the modification needs to be made in the file "plugins/hikashop/attachinvoice/attachinvoice/invoice.php".

It require some PHP and HTML knowledges.
Here is some documentation about how to customize the layout:
[ hikashop.com/support/support/documentati...ize-the-display.html](https://hikashop.com/support/support/documentation/153-customize-the-display.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 22
- Thank you received: 1
-
-

12 years 6 months ago -  12 years 6 months ago [\#151859](#151859) by [Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")  Replied by *[Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")* on topic *[Customization Bill](/forum/33-customers/867341-customization-bill#151859 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")*

Hello,
Sorry if I have not explained exactly the problem I have found.
In the invoice appears the following fields:

SUBTOTAL
SHIPPING
TAXES
TOTAL

SUBTOTAL =&gt; It has to be the price of the addition of all the items WITHOUT TAXES
SHIPPING =&gt; It has to be the shipping costs WITHOUT TAXES
TAXES =&gt; the taxes of the addition of SHIPPING and SUBTOTAL field (THIS IS CORRECT IN THE GENERATED INVOICE)
TOTAL =&gt; the addition of the subtotal+shipping+taxes (THIS IS ALSO CORRECT IN THE GENERATED INVOICE)

So, the only problem I have it is that the price which appears in SUBTOTAL and in SHIPPING have the taxes included on them, but they have to appear WITHOUT THE TAXES for European Invoices.

I need you to change or to tell me how to change the variables call in this fields in order to solve the problem. Hikashop has these data becuase the taxes and the total it is well calculated.

Thanks
Best regards

Last edit: 12 years 6 months ago by [Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 86292
- Thank you received: 14271
-
-

12 years 6 months ago [\#151904](#151904) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customization Bill](/forum/33-customers/867341-customization-bill#151904 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")*

Hi,

You need to edit the file "invoice" via the menu Display-&gt;Views for your backend template and change the line:
echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price,$this-&gt;order-&gt;order_currency_id);
to:
echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price-@$this-&gt;order-&gt;order_shipping_tax,$this-&gt;order-&gt;order_currency_id);

and the line:
echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal,$this-&gt;order-&gt;order_currency_id);
to:
echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal_no_vat,$this-&gt;order-&gt;order_currency_id);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 22
- Thank you received: 1
-
-

12 years 6 months ago -  12 years 6 months ago [\#151943](#151943) by [Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")  Replied by *[Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")* on topic *[Customization Bill](/forum/33-customers/867341-customization-bill#151943 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")*

Thank you for your help.
The problem we had it has been solved, furthermore, we have corrected other problem related with the unit product price, and now everything works as a charm.

The problem we have now it is we need the invoice with the following order (in order to accomplish the Spanish and European invoice law).

Price of “product 1” WITHOUT TAXES.
Price of “product 2” WITHOUT TAXES.
........product 3 .....
Shipping costs WITHOUT TAXES
Additional charges (as paypal comissions, etc.) WITHOUT TAXES

SUBTOTAL (the addition of all the fields) WITHOUT TAXES
TAXES (taxes of the subtotal without taxes,).
TOTAL

(see attached file)

It is attached the php file including your suggestions and including, also, the changes we have done (related with the unit price).

Could you adapt this php file in order to accomplish the Spanish and European fiscal lawas generating the invoices as we described ? We are sure it will be usefull for other European and Spanish customers. It will solve the problems some people has asked about in the forum (German and Italian people):

[ www.hikashop.com/forum/payment-methods/8...-methods.html#149433](http://www.hikashop.com/forum/payment-methods/866526-apply-taxes-on-payment-methods.html#149433)[ ](http://www.hikashop.com/forum/payment-methods/866526-apply-taxes-on-payment-methods.html#149433)

Thank you very much for your attention.

- [ ![h93631db.png](/forum/attachment/16659) ](/forum/attachment/16659 "h93631db.png") [ ](/forum/attachment/16659?download=1 "h93631db.png")

Last edit: 12 years 6 months ago by [Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 6 months ago [\#152059](#152059) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Customization Bill](/forum/33-customers/867341-customization-bill#152059 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")*

Hi,

I have not tried this code, but that should do the job: Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.0 * @author hikashop.com * @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;div id="hikashop_invoice_main_div"&gt; &lt;div id="print" style="float:right"&gt; &lt;a href="#" onclick="document.getElementById('print').style.visibility='hidden';window.focus();window.print();return false;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;print.png"/&gt; &lt;/a&gt; &lt;/div&gt; &lt;br/&gt; &lt;table width="100%"&gt; &lt;tr&gt; &lt;td&gt; &lt;h1 style="text-align:center"&gt; &lt;?php if($this-&gt;invoice_type=='full'){ echo JText::_('INVOICE'); }else{ echo JText::_('SHIPPING_INVOICE'); } ?&gt; &lt;/h1&gt; &lt;br/&gt; &lt;br/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;div style="float:right;width:100px;padding-top:20px"&gt; &lt;?php echo JText::_('DATE').': '.hikashop_getDate($this-&gt;element-&gt;order_created,'%d %B %Y ');?&gt;&lt;br/&gt; &lt;?php if(!empty($this-&gt;element-&gt;order_invoice_number)) { echo JText::_('INVOICE').': '.$this-&gt;element-&gt;order_invoice_number; } else { echo JText::_('INVOICE').': '.@$this-&gt;element-&gt;order_number; } ?&gt; &lt;/div&gt; &lt;p&gt; &lt;?php echo $this-&gt;store_address;?&gt; &lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;br/&gt; &lt;br/&gt; &lt;table width="100%"&gt; &lt;tr&gt; &lt;?php if($this-&gt;invoice_type=='full' &amp;&amp; !empty($this-&gt;element-&gt;billing_address)){?&gt; &lt;td&gt; &lt;fieldset class="adminform" id="htmlfieldset_billing"&gt; &lt;legend style="background-color: #FFFFFF;"&gt;&lt;?php echo JText::_('HIKASHOP_BILLING_ADDRESS'); ?&gt;&lt;/legend&gt; &lt;?php $this-&gt;setLayout('address_template'); $html = $this-&gt;loadTemplate(); foreach($this-&gt;element-&gt;fields as $field){ $fieldname = $field-&gt;field_namekey; if(!empty($this-&gt;element-&gt;billing_address-&gt;$fieldname)) $html=str_replace('{'.$fieldname.'}',$this-&gt;fieldsClass-&gt;show($field,$this-&gt;element-&gt;billing_address-&gt;$fieldname),$html); } echo str_replace("\n","&lt;br/&gt;\n",trim(str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)),"\n")); ?&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;?php }?&gt; &lt;td&gt; &lt;?php if(!empty($this-&gt;element-&gt;order_shipping_id) &amp;&amp; !empty($this-&gt;element-&gt;shipping_address)){ ?&gt; &lt;fieldset class="adminform" id="htmlfieldset_shipping"&gt; &lt;legend style="background-color: #FFFFFF;"&gt;&lt;?php echo JText::_('HIKASHOP_SHIPPING_ADDRESS'); ?&gt;&lt;/legend&gt; &lt;?php if(empty($this-&gt;element-&gt;override_shipping_address)) { $this-&gt;setLayout('address_template'); $html = $this-&gt;loadTemplate(); foreach($this-&gt;element-&gt;fields as $field){ $fieldname = $field-&gt;field_namekey; if(!empty($this-&gt;element-&gt;shipping_address-&gt;$fieldname)) $html=str_replace('{'.$fieldname.'}',$this-&gt;fieldsClass-&gt;show($field,$this-&gt;element-&gt;shipping_address-&gt;$fieldname),$html); } echo str_replace("\n","&lt;br/&gt;\n",trim(str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)),"\n")); } else { echo $this-&gt;element-&gt;override_shipping_address; } ?&gt; &lt;/fieldset&gt; &lt;?php } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;br/&gt; &lt;fieldset class="adminform" id="htmlfieldset_products"&gt; &lt;legend style="background-color: #FFFFFF;"&gt;&lt;?php echo JText::_('PRODUCT_LIST'); ?&gt;&lt;/legend&gt; &lt;table class="adminlist table table-striped" cellpadding="1" width="100%"&gt; &lt;?php $colspan = 2; ?&gt; &lt;thead&gt; &lt;tr&gt; &lt;th class="title" width="60%"&gt; &lt;?php echo JText::_('PRODUCT'); ?&gt; &lt;/th&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { $colspan++; ?&gt; &lt;th class="title" &gt;&lt;?php echo JText::_('CART_PRODUCT_CODE'); ?&gt;&lt;/th&gt; &lt;?php } ?&gt; &lt;?php if($this-&gt;invoice_type=='full'){?&gt; &lt;th class="title"&gt; &lt;?php echo JText::_('UNIT_PRICE'); ?&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;th class="title titletoggle"&gt; &lt;?php echo JText::_('PRODUCT_QUANTITY'); ?&gt; &lt;/th&gt; &lt;?php if($this-&gt;invoice_type=='full'){?&gt; &lt;th class="title titletoggle"&gt; &lt;?php echo JText::_('PRICE'); ?&gt; &lt;/th&gt; &lt;?php } ?&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;?php $k=0; $group = $this-&gt;config-&gt;get('group_options',0); foreach($this-&gt;order-&gt;products as $product){ if($group &amp;&amp; $product-&gt;order_product_option_parent_id) continue; ?&gt; &lt;tr class="row&lt;?php echo $k;?&gt;"&gt; &lt;td&gt; &lt;?php echo $product-&gt;order_product_name;?&gt; &lt;p class="hikashop_order_product_custom_item_fields"&gt; &lt;?php if($group){ $display_item_price=false; foreach($this-&gt;order-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;order_product_option_parent_id != $product-&gt;order_product_id) continue; if($optionElement-&gt;order_product_price&gt;0){ $display_item_price = true; } } if($display_item_price){ if($this-&gt;config-&gt;get('price_with_tax')){ echo ' '.$this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price+$product-&gt;order_product_tax,$this-&gt;order-&gt;order_currency_id); }else{ echo ' '.$this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price,$this-&gt;order-&gt;order_currency_id); } } } if(hikashop_level(2) &amp;&amp; !empty($this-&gt;fields['item'])){ foreach($this-&gt;fields['item'] as $field){ $namekey = $field-&gt;field_namekey; if(empty($product-&gt;$namekey) &amp;&amp; !strlen($product-&gt;$namekey)){ continue; } echo '&lt;p class="hikashop_order_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey).'&lt;/p&gt;'; } } if($group){ foreach($this-&gt;order-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;order_product_option_parent_id != $product-&gt;order_product_id) continue; $product-&gt;order_product_price +=$optionElement-&gt;order_product_price; $product-&gt;order_product_tax +=$optionElement-&gt;order_product_tax; $product-&gt;order_product_total_price+=$optionElement-&gt;order_product_total_price; $product-&gt;order_product_total_price_no_vat+=$optionElement-&gt;order_product_total_price_no_vat; ?&gt; &lt;p class="hikashop_order_option_name"&gt; &lt;?php echo $optionElement-&gt;order_product_name; if($optionElement-&gt;order_product_price&gt;0){ if($this-&gt;config-&gt;get('price_with_tax')){ echo ' ( + '.$this-&gt;currencyHelper-&gt;format($optionElement-&gt;order_product_price+$optionElement-&gt;order_product_tax,$this-&gt;order-&gt;order_currency_id).' )'; }else{ echo ' ( + '.$this-&gt;currencyHelper-&gt;format($optionElement-&gt;order_product_price,$this-&gt;order-&gt;order_currency_id).' )'; } } ?&gt; &lt;/p&gt; &lt;?php } } ?&gt; &lt;/p&gt; &lt;/td&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;td&gt;&lt;p class="hikashop_product_code_invoice"&gt;&lt;?php echo $product-&gt;order_product_code; ?&gt;&lt;/p&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;?php if($this-&gt;invoice_type=='full'){?&gt; &lt;td&gt; &lt;?php if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price+$product_no_vat-&gt;order_product_tax,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_price,$this-&gt;order-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;td align="center"&gt; &lt;?php echo $product-&gt;order_product_quantity;?&gt; &lt;/td&gt; &lt;?php if($this-&gt;invoice_type=='full'){?&gt; &lt;td&gt; &lt;?php if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_total_price_no_vat,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format($product-&gt;order_product_total_price_no_vat,$this-&gt;order-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;/tr&gt; &lt;?php $k=1-$k; } ?&gt; &lt;?php if($this-&gt;invoice_type=='full'){?&gt; &lt;tr&gt; &lt;td style="border-top:2px solid #B8B8B8;" colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td style="border-top:2px solid #B8B8B8;" class="key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'SUBTOTAL' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td style="border-top:2px solid #B8B8B8;"&gt; &lt;?php if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal_no_vat,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal_no_vat,$this-&gt;order-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php if($this-&gt;order-&gt;order_discount_price != 0){ ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_COUPON' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_discount_price*-1.0,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(($this-&gt;order-&gt;order_discount_price-@$this-&gt;order-&gt;order_discount_tax)*-1.0,$this-&gt;order-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;order-&gt;additional)) { $exclude_additionnal = explode(',', $this-&gt;config-&gt;get('order_additional_hide', '')); foreach($this-&gt;order-&gt;additional as $additional) { if(in_array($additional-&gt;order_product_name, $exclude_additionnal)) continue; ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_additionall_title key"&gt; &lt;label&gt;&lt;?php echo JText::_($additional-&gt;order_product_name); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td &gt;&lt;?php if(!empty($additional-&gt;order_product_price)) { $additional-&gt;order_product_price = (float)$additional-&gt;order_product_price; } if(!empty($additional-&gt;order_product_price) &#124;&#124; empty($additional-&gt;order_product_options)) { echo $this-&gt;currencyHelper-&gt;format($additional-&gt;order_product_price, $this-&gt;order-&gt;order_currency_id); } else { echo $additional-&gt;order_product_options; } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } } if($this-&gt;order-&gt;order_shipping_price!=0 &#124;&#124; ($this-&gt;config-&gt;get('price_with_tax') &amp;&amp; $this-&gt;order-&gt;order_shipping_tax!=0)) { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'SHIPPING' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price-@$this-&gt;order-&gt;order_shipping_tax,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price-@$this-&gt;order-&gt;order_shipping_tax,$this-&gt;order-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if($this-&gt;order-&gt;order_payment_price!=0){ ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_PAYMENT' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_payment_price,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_TOTAL_NO_TAX' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php $total_no_vat = (float)$this-&gt;order-&gt;order_full_price - (float)$taxes; echo $this-&gt;currencyHelper-&gt;format($total_no_vat,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } $taxes = $this-&gt;order-&gt;order_subtotal-$this-&gt;order-&gt;order_subtotal_no_vat+$this-&gt;order-&gt;order_shipping_tax-$this-&gt;order-&gt;order_discount_tax; if($taxes != 0){ if($this-&gt;config-&gt;get('detailed_tax_display') &amp;&amp; !empty($this-&gt;order-&gt;order_tax_info)){ foreach($this-&gt;order-&gt;order_tax_info as $tax){ ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_title key"&gt; &lt;label&gt; &lt;?php echo $tax-&gt;tax_namekey; ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_value"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($tax-&gt;tax_amount,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } }else{ ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_title key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'VAT' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_value"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($taxes,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_TOTAL' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_full_price,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php if($this-&gt;invoice_type=='full'){ $fieldsClass = hikashop_get('class.field'); $fields = $fieldsClass-&gt;getFields('backend',$this-&gt;order,'order'); if(!empty($fields)){ ?&gt; &lt;tr&gt; &lt;td&gt; &lt;fieldset class="hikashop_order_custom_fields_fieldset"&gt; &lt;legend&gt;&lt;?php echo JText::_('ADDITIONAL_INFORMATION'); ?&gt;&lt;/legend&gt; &lt;table class="hikashop_order_custom_fields_table adminlist" cellpadding="1" width="100%"&gt; &lt;?php foreach($fields as $fieldName =&gt; $oneExtraField) { ?&gt; &lt;tr class="hikashop_order_custom_field_&lt;?php echo $fieldName;?&gt;_line"&gt; &lt;td class="key"&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField);?&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,@$this-&gt;order-&gt;$fieldName); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php }?&gt; &lt;/table&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;tr&gt; &lt;td&gt; &lt;?php if(!empty($this-&gt;shipping)){ echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$this-&gt;shipping-&gt;getName($this-&gt;order-&gt;order_shipping_method,$this-&gt;order-&gt;order_shipping_id).'&lt;br/&gt;'; }?&gt; &lt;?php if(!empty($this-&gt;payment)){ echo JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$this-&gt;payment-&gt;getName($this-&gt;order-&gt;order_payment_method,$this-&gt;order-&gt;order_payment_id); }?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;?php JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onAfterOrderProductsListingDisplay', array(&amp;$this-&gt;order, 'order_back_invoice')); ?&gt; &lt;tr&gt; &lt;td&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;div style="page-break-after:always"&gt;&lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 22
- Thank you received: 1
-
-

12 years 6 months ago [\#152125](#152125) by [Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")  Replied by *[Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")* on topic *[Customization Bill](/forum/33-customers/867341-customization-bill#152125 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")*

Now is cuasi-perfect
Only there is little error:
As you can see in attached file, HIKASHOP_TOTAL_NO_TAX has the same value than TOTAL

so, HIKASHOP_TOTAL_NO_TAX is total with tax but its value has to be total without tax

Thanks for you support
Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 6 months ago [\#152286](#152286) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Customization Bill](/forum/33-customers/867341-customization-bill#152286 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")*

Hi,

In the previous code, please replace Code:

$total_no_vat = (float)$this-&gt;order-&gt;order_full_price - (float)$taxes;

By: Code:

$taxes = $this-&gt;order-&gt;order_subtotal-$this-&gt;order-&gt;order_subtotal_no_vat+$this-&gt;order-&gt;order_shipping_tax-$this-&gt;order-&gt;order_discount_tax; $total_no_vat = (float)$this-&gt;order-&gt;order_full_price - (float)$taxes;

So it will re-process the taxes value to process correctly the total without taxes.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 22
- Thank you received: 1
-
-

12 years 6 months ago [\#153058](#153058) by [Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")  Replied by *[Antonioseo](/forum/user/31501-antonioseo "View Antonioseo's Profile")* on topic *[Customization Bill](/forum/33-customers/867341-customization-bill#153058 "-- url of the page with the problem -- : -- HikaShop version -- : 2.3.0 (business) -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : Firefox 27.0.x  Hi I would like customize bill generate by hikashop where i can change and customize this bill as I attach, to show total price without VAT. I would like show a row with price without VAT Thanks Best regards")*

Perfect
Now it works properly, and now is correct to use for spanish law invoice and maybe in all EU

I attach the correct "invoice.php" maybe in the future you need it

Thanks again

The following user(s) said Thank You: [Xavier](/forum/user/4105-xavier "View Xavier's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjczNDEtY3VzdG9taXphdGlvbi1iaWxsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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.322 seconds

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

[](#top)
