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

#   Changing the way taxes are displayed at checkout

##

- **[Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")**
- [![Foxworks's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7379.png)](/forum/user/7379-foxworks "View Foxworks's Profile") Topic Author
- [ Offline](/forum/user/7379-foxworks)

Less More

- Posts: 93
- Thank you received: 5
-
-
-

12 years 5 months ago -  12 years 5 months ago [\#158408](#158408) by [Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")  *[Changing the way taxes are displayed at checkout](/forum/40-taxes/868686-changing-the-way-taxes-are-displayed-at-checkout#158408 "-- url of the page with the problem -- :   kiteoutlet.eu/index.php/en/  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.2.3  The customer for which I built the site at   www.kiteoutlet.eu  has asked me to change the way taxes are displayed during checkout and on the invoices that customers receive. Taxes should be calculated on both the products in the shop and the shipping costs. Items in the shop should be shown with their prices including taxes. Only during checkout and in the invoices should the prices without taxes be shown, so that all tax can be added to the total in one step.  In my current set up taxes of 21% are calculated on both the product and the shipping costs. Please see the attached screen shot (h78e7a31.png) for the current way the prices are displayed during checkout. I'd like to change the display of the total price per product line, the total price for the complete order and the shipping costs, so that they are displayed without taxes added. Additionaly I'd like to add a line of text to the total price for each product line stating that this is the price without taxes. Please see the second attached screen shot (h98a9ac4.png) for an example of what I would like to achieve.  I think I can achieve what I'm looking for by editing the view Checkout -&gt; Cart for the display during checkout and the view Order -&gt; Invoice for the invoice, in the templates for my front end and back end respectively. However I can't seem to get it right. (My knowledge of PHP is pretty limited.) Could you please let me know if what I try to do is possible, and if so, how to do it?  Another question I have is how to change the name that is given to my taxes depending on the language that is selected for the site by the customer. Currently it always used the tax&#95;namekey which I have set to BTW (for Dutch customers). However I'd like it to display VAT when the English language is chosen. I don't think this is possible in the translation files or with a language override, because the tax&#95;namekey is set only once.  Kind regards, Chris")* was created by *[Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")*

-- url of the page with the problem -- : [ kiteoutlet.eu/index.php/en/](https://kiteoutlet.eu/index.php/en/)
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 2.5.18
-- PHP version -- : 5.2.3

The customer for which I built the site at [ www.kiteoutlet.eu](http://www.kiteoutlet.eu) has asked me to change the way taxes are displayed during checkout and on the invoices that customers receive. Taxes should be calculated on both the products in the shop and the shipping costs. Items in the shop should be shown with their prices including taxes. Only during checkout and in the invoices should the prices without taxes be shown, so that all tax can be added to the total in one step.

In my current set up taxes of 21% are calculated on both the product and the shipping costs. Please see the attached screen shot (h78e7a31.png) for the current way the prices are displayed during checkout. I'd like to change the display of the total price per product line, the total price for the complete order and the shipping costs, so that they are displayed without taxes added. Additionaly I'd like to add a line of text to the total price for each product line stating that this is the price without taxes. Please see the second attached screen shot (h98a9ac4.png) for an example of what I would like to achieve.

I think I can achieve what I'm looking for by editing the view Checkout -&gt; Cart for the display during checkout and the view Order -&gt; Invoice for the invoice, in the templates for my front end and back end respectively. However I can't seem to get it right. (My knowledge of PHP is pretty limited.)
Could you please let me know if what I try to do is possible, and if so, how to do it?

Another question I have is how to change the name that is given to my taxes depending on the language that is selected for the site by the customer. Currently it always used the tax_namekey which I have set to BTW (for Dutch customers). However I'd like it to display VAT when the English language is chosen. I don't think this is possible in the translation files or with a language override, because the tax_namekey is set only once.

Kind regards,
Chris

- [ ![h78e7a31.png](/forum/attachment/17608) ](/forum/attachment/17608 "h78e7a31.png") [ ](/forum/attachment/17608?download=1 "h78e7a31.png")
- [ ![h98a9ac4.png](/forum/attachment/17609) ](/forum/attachment/17609 "h98a9ac4.png") [ ](/forum/attachment/17609?download=1 "h98a9ac4.png")

Last edit: 12 years 5 months ago by [Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 5 months ago [\#158419](#158419) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Changing the way taxes are displayed at checkout](/forum/40-taxes/868686-changing-the-way-taxes-are-displayed-at-checkout#158419 "-- url of the page with the problem -- :   kiteoutlet.eu/index.php/en/  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.2.3  The customer for which I built the site at   www.kiteoutlet.eu  has asked me to change the way taxes are displayed during checkout and on the invoices that customers receive. Taxes should be calculated on both the products in the shop and the shipping costs. Items in the shop should be shown with their prices including taxes. Only during checkout and in the invoices should the prices without taxes be shown, so that all tax can be added to the total in one step.  In my current set up taxes of 21% are calculated on both the product and the shipping costs. Please see the attached screen shot (h78e7a31.png) for the current way the prices are displayed during checkout. I'd like to change the display of the total price per product line, the total price for the complete order and the shipping costs, so that they are displayed without taxes added. Additionaly I'd like to add a line of text to the total price for each product line stating that this is the price without taxes. Please see the second attached screen shot (h98a9ac4.png) for an example of what I would like to achieve.  I think I can achieve what I'm looking for by editing the view Checkout -&gt; Cart for the display during checkout and the view Order -&gt; Invoice for the invoice, in the templates for my front end and back end respectively. However I can't seem to get it right. (My knowledge of PHP is pretty limited.) Could you please let me know if what I try to do is possible, and if so, how to do it?  Another question I have is how to change the name that is given to my taxes depending on the language that is selected for the site by the customer. Currently it always used the tax&#95;namekey which I have set to BTW (for Dutch customers). However I'd like it to display VAT when the English language is chosen. I don't think this is possible in the translation files or with a language override, because the tax&#95;namekey is set only once.  Kind regards, Chris")*

Hello,

> Taxes should be calculated on both the products in the shop and the shipping costs. Items in the shop should be shown with their prices including taxes. Only during checkout and in the invoices should the prices without taxes be shown, so that all tax can be added to the total in one step.

The solution will probably be to set the "Show taxed prices" option to "Display Both" through "Hikashop-&gt;System-&gt;Configuration-&gt;Main".

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

- **[Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")**
- [![Foxworks's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7379.png)](/forum/user/7379-foxworks "View Foxworks's Profile") Topic Author
- [ Offline](/forum/user/7379-foxworks)

Less More

- Posts: 93
- Thank you received: 5
-
-
-

12 years 5 months ago [\#158564](#158564) by [Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")  Replied by *[Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")* on topic *[Changing the way taxes are displayed at checkout](/forum/40-taxes/868686-changing-the-way-taxes-are-displayed-at-checkout#158564 "-- url of the page with the problem -- :   kiteoutlet.eu/index.php/en/  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.2.3  The customer for which I built the site at   www.kiteoutlet.eu  has asked me to change the way taxes are displayed during checkout and on the invoices that customers receive. Taxes should be calculated on both the products in the shop and the shipping costs. Items in the shop should be shown with their prices including taxes. Only during checkout and in the invoices should the prices without taxes be shown, so that all tax can be added to the total in one step.  In my current set up taxes of 21% are calculated on both the product and the shipping costs. Please see the attached screen shot (h78e7a31.png) for the current way the prices are displayed during checkout. I'd like to change the display of the total price per product line, the total price for the complete order and the shipping costs, so that they are displayed without taxes added. Additionaly I'd like to add a line of text to the total price for each product line stating that this is the price without taxes. Please see the second attached screen shot (h98a9ac4.png) for an example of what I would like to achieve.  I think I can achieve what I'm looking for by editing the view Checkout -&gt; Cart for the display during checkout and the view Order -&gt; Invoice for the invoice, in the templates for my front end and back end respectively. However I can't seem to get it right. (My knowledge of PHP is pretty limited.) Could you please let me know if what I try to do is possible, and if so, how to do it?  Another question I have is how to change the name that is given to my taxes depending on the language that is selected for the site by the customer. Currently it always used the tax&#95;namekey which I have set to BTW (for Dutch customers). However I'd like it to display VAT when the English language is chosen. I don't think this is possible in the translation files or with a language override, because the tax&#95;namekey is set only once.  Kind regards, Chris")*

Hi Mohamed,
Thank you for your quick reply.

Unfortunately setting the option "Show taxed prices" to "Display Both" as you suggested does not give me the results I am looking for.
I do not want the price without taxes to be shown on the individual product pages; which is what selecting this option does. I want the price without taxes only to be shown during checkout, as indicated in the attached file, and on the invoice that the customer receives. Since it is only in those few specific locations that I want the untaxed prices to appear, I think it is something I will need to do by editing the view files for those specific elements. (I believe it is Checkout -&gt; Cart for the display during checkout and the view Order -&gt; Invoice for the invoice.) I am just not sure how I should do this.

Kind regards,
Chris

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2ODY4Ni1jaGFuZ2luZy10aGUtd2F5LXRheGVzLWFyZS1kaXNwbGF5ZWQtYXQtY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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 5 months ago [\#158711](#158711) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Changing the way taxes are displayed at checkout](/forum/40-taxes/868686-changing-the-way-taxes-are-displayed-at-checkout#158711 "-- url of the page with the problem -- :   kiteoutlet.eu/index.php/en/  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.2.3  The customer for which I built the site at   www.kiteoutlet.eu  has asked me to change the way taxes are displayed during checkout and on the invoices that customers receive. Taxes should be calculated on both the products in the shop and the shipping costs. Items in the shop should be shown with their prices including taxes. Only during checkout and in the invoices should the prices without taxes be shown, so that all tax can be added to the total in one step.  In my current set up taxes of 21% are calculated on both the product and the shipping costs. Please see the attached screen shot (h78e7a31.png) for the current way the prices are displayed during checkout. I'd like to change the display of the total price per product line, the total price for the complete order and the shipping costs, so that they are displayed without taxes added. Additionaly I'd like to add a line of text to the total price for each product line stating that this is the price without taxes. Please see the second attached screen shot (h98a9ac4.png) for an example of what I would like to achieve.  I think I can achieve what I'm looking for by editing the view Checkout -&gt; Cart for the display during checkout and the view Order -&gt; Invoice for the invoice, in the templates for my front end and back end respectively. However I can't seem to get it right. (My knowledge of PHP is pretty limited.) Could you please let me know if what I try to do is possible, and if so, how to do it?  Another question I have is how to change the name that is given to my taxes depending on the language that is selected for the site by the customer. Currently it always used the tax&#95;namekey which I have set to BTW (for Dutch customers). However I'd like it to display VAT when the English language is chosen. I don't think this is possible in the translation files or with a language override, because the tax&#95;namekey is set only once.  Kind regards, Chris")*

Hi,

You can edit the view "checkout / listing_price" via the menu Display &gt; Views and add the line: Code:

$this-&gt;params-&gt;set('price_with_tax',0);

At the top of the file between php tags.

The following user(s) said Thank You: [Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")

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

- **[Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")**
- [![Foxworks's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7379.png)](/forum/user/7379-foxworks "View Foxworks's Profile") Topic Author
- [ Offline](/forum/user/7379-foxworks)

Less More

- Posts: 93
- Thank you received: 5
-
-
-

12 years 5 months ago [\#160150](#160150) by [Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")  Replied by *[Foxworks](/forum/user/7379-foxworks "View Foxworks's Profile")* on topic *[Changing the way taxes are displayed at checkout](/forum/40-taxes/868686-changing-the-way-taxes-are-displayed-at-checkout#160150 "-- url of the page with the problem -- :   kiteoutlet.eu/index.php/en/  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.2.3  The customer for which I built the site at   www.kiteoutlet.eu  has asked me to change the way taxes are displayed during checkout and on the invoices that customers receive. Taxes should be calculated on both the products in the shop and the shipping costs. Items in the shop should be shown with their prices including taxes. Only during checkout and in the invoices should the prices without taxes be shown, so that all tax can be added to the total in one step.  In my current set up taxes of 21% are calculated on both the product and the shipping costs. Please see the attached screen shot (h78e7a31.png) for the current way the prices are displayed during checkout. I'd like to change the display of the total price per product line, the total price for the complete order and the shipping costs, so that they are displayed without taxes added. Additionaly I'd like to add a line of text to the total price for each product line stating that this is the price without taxes. Please see the second attached screen shot (h98a9ac4.png) for an example of what I would like to achieve.  I think I can achieve what I'm looking for by editing the view Checkout -&gt; Cart for the display during checkout and the view Order -&gt; Invoice for the invoice, in the templates for my front end and back end respectively. However I can't seem to get it right. (My knowledge of PHP is pretty limited.) Could you please let me know if what I try to do is possible, and if so, how to do it?  Another question I have is how to change the name that is given to my taxes depending on the language that is selected for the site by the customer. Currently it always used the tax&#95;namekey which I have set to BTW (for Dutch customers). However I'd like it to display VAT when the English language is chosen. I don't think this is possible in the translation files or with a language override, because the tax&#95;namekey is set only once.  Kind regards, Chris")*

Hi Xavier,

Thank you for your answer. Using this I could indeed get the result I wanted on the cart view during checkout.
I tried the same line of code on the invoice view for the back end and on the file that controls the email that is sent to users when they place an order. However this does not work.
I can edit these files by commenting out the lines that check whether price with tax is set (if($config-&gt;get('price_with_tax')){), but this seems a bit clumsy. Is there a simple solution such as the one you gave me earlier for these veiws as well?

Kind regards,
Chris

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2ODY4Ni1jaGFuZ2luZy10aGUtd2F5LXRheGVzLWFyZS1kaXNwbGF5ZWQtYXQtY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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 5 months ago [\#160368](#160368) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Changing the way taxes are displayed at checkout](/forum/40-taxes/868686-changing-the-way-taxes-are-displayed-at-checkout#160368 "-- url of the page with the problem -- :   kiteoutlet.eu/index.php/en/  -- HikaShop version -- : 2.2.0 -- Joomla version -- : 2.5.18 -- PHP version -- : 5.2.3  The customer for which I built the site at   www.kiteoutlet.eu  has asked me to change the way taxes are displayed during checkout and on the invoices that customers receive. Taxes should be calculated on both the products in the shop and the shipping costs. Items in the shop should be shown with their prices including taxes. Only during checkout and in the invoices should the prices without taxes be shown, so that all tax can be added to the total in one step.  In my current set up taxes of 21% are calculated on both the product and the shipping costs. Please see the attached screen shot (h78e7a31.png) for the current way the prices are displayed during checkout. I'd like to change the display of the total price per product line, the total price for the complete order and the shipping costs, so that they are displayed without taxes added. Additionaly I'd like to add a line of text to the total price for each product line stating that this is the price without taxes. Please see the second attached screen shot (h98a9ac4.png) for an example of what I would like to achieve.  I think I can achieve what I'm looking for by editing the view Checkout -&gt; Cart for the display during checkout and the view Order -&gt; Invoice for the invoice, in the templates for my front end and back end respectively. However I can't seem to get it right. (My knowledge of PHP is pretty limited.) Could you please let me know if what I try to do is possible, and if so, how to do it?  Another question I have is how to change the name that is given to my taxes depending on the language that is selected for the site by the customer. Currently it always used the tax&#95;namekey which I have set to BTW (for Dutch customers). However I'd like it to display VAT when the English language is chosen. I don't think this is possible in the translation files or with a language override, because the tax&#95;namekey is set only once.  Kind regards, Chris")*

Hi,

You can use that kind of code at the top of the view: Code:

$this-&gt;config-&gt;set('price_with_tax',0)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2ODY4Ni1jaGFuZ2luZy10aGUtd2F5LXRheGVzLWFyZS1kaXNwbGF5ZWQtYXQtY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) 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.059 seconds

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