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

#   Split subtotal on invoice by Tax-category

##

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

Less More

- Posts: 90
- Thank you received: 2
-
-

11 years 8 months ago -  11 years 8 months ago [\#195883](#195883) by [gielhier](/forum/user/9811-gielhier "View gielhier's Profile")  *[Split subtotal on invoice by Tax-category](/forum/40-taxes/875883-split-subtotal-on-invoice-by-tax-category#195883 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hello,  I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal per Tax-category on the PDF invoice.  Example of how I would like the PDF (displaying prices without VAT). - Product 1: Price: € 10,00 (this product has VAT cat. 1) - Product 2: Price: € 5,00 (this product has VAT. cat. 2) ----- Subtotal VAT cat. 1: € 10,00 Subtotal VAT cat. 2: € 5,00  Is this possible? Thanks in advance.")* was created by *[gielhier](/forum/user/9811-gielhier "View gielhier's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6
-- PHP version -- : n/a
-- Browser(s) name and version -- : n/a
-- Error-message(debug-mod must be tuned on) -- : n/a

Hello,

I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal **per Tax-category** on the PDF invoice.

Example of how I would like the PDF (displaying prices without VAT).
- Product 1: Price: € 10,00 (this product has VAT cat. 1)
- Product 2: Price: € 5,00 (this product has VAT. cat. 2)

---

Subtotal VAT cat. 1: € 10,00
Subtotal VAT cat. 2: € 5,00

Is this possible?
Thanks in advance.

Last edit: 11 years 8 months ago by [gielhier](/forum/user/9811-gielhier "View gielhier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3NTg4My1zcGxpdC1zdWJ0b3RhbC1vbi1pbnZvaWNlLWJ5LXRheC1jYXRlZ29yeT90bXBsPW1hcmtkb3du) 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)
-

11 years 8 months ago [\#195899](#195899) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Split subtotal on invoice by Tax-category](/forum/40-taxes/875883-split-subtotal-on-invoice-by-tax-category#195899 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hello,  I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal per Tax-category on the PDF invoice.  Example of how I would like the PDF (displaying prices without VAT). - Product 1: Price: € 10,00 (this product has VAT cat. 1) - Product 2: Price: € 5,00 (this product has VAT. cat. 2) ----- Subtotal VAT cat. 1: € 10,00 Subtotal VAT cat. 2: € 5,00  Is this possible? Thanks in advance.")*

Hi,

You can edit the file "plugins/hikashop/attachinvoice/attachinvoice/invoice.pdf" and thanks to PHP code add the desired informations. The tax detail is in the PHP variable "$order-&gt;order_tax_info".

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

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

Less More

- Posts: 90
- Thank you received: 2
-
-

11 years 8 months ago [\#195977](#195977) by [gielhier](/forum/user/9811-gielhier "View gielhier's Profile")  Replied by *[gielhier](/forum/user/9811-gielhier "View gielhier's Profile")* on topic *[Split subtotal on invoice by Tax-category](/forum/40-taxes/875883-split-subtotal-on-invoice-by-tax-category#195977 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hello,  I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal per Tax-category on the PDF invoice.  Example of how I would like the PDF (displaying prices without VAT). - Product 1: Price: € 10,00 (this product has VAT cat. 1) - Product 2: Price: € 5,00 (this product has VAT. cat. 2) ----- Subtotal VAT cat. 1: € 10,00 Subtotal VAT cat. 2: € 5,00  Is this possible? Thanks in advance.")*

Hi Xavier,

Thanks for the reply. I'm not really an advanced PHP-developer, so can you please tell me how to achieve this?

The current code that display the subtotal (ex VAT) is: Code:

&lt;?php echo $currencyHelper-&gt;format($order-&gt;order_subtotal_no_vat,$order-&gt;order_currency_id); ?&gt;

I need that split up in 2 subtotals: 1 for tax. cat. 1, and 1 of tax. cat 2.

Can you please help me?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3NTg4My1zcGxpdC1zdWJ0b3RhbC1vbi1pbnZvaWNlLWJ5LXRheC1jYXRlZ29yeT90bXBsPW1hcmtkb3du) 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)
-

11 years 8 months ago [\#195989](#195989) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Split subtotal on invoice by Tax-category](/forum/40-taxes/875883-split-subtotal-on-invoice-by-tax-category#195989 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hello,  I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal per Tax-category on the PDF invoice.  Example of how I would like the PDF (displaying prices without VAT). - Product 1: Price: € 10,00 (this product has VAT cat. 1) - Product 2: Price: € 5,00 (this product has VAT. cat. 2) ----- Subtotal VAT cat. 1: € 10,00 Subtotal VAT cat. 2: € 5,00  Is this possible? Thanks in advance.")*

Hi,

If you enable the option "Detailed tax display" in Configuration &gt; Main &gt; Taxes you can see all the taxe rates one under each others.

But in your case, to display the subtotal per category based on the tax display, it will require custom code to regroup the product prices etc. We don't support customizations on the forum, so I recommend to post a request in the commercial jobs section of this forum. ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[Cynthia-V](/forum/user/36823-cynthia-v "View Cynthia-V's Profile")**
- [![Cynthia-V's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/36823-cynthia-v "View Cynthia-V's Profile")
- [ Offline](/forum/user/36823-cynthia-v)

Less More

- Posts: 22
- Thank you received: 2
-
-

11 years 7 months ago [\#197594](#197594) by [Cynthia-V](/forum/user/36823-cynthia-v "View Cynthia-V's Profile")  Replied by *[Cynthia-V](/forum/user/36823-cynthia-v "View Cynthia-V's Profile")* on topic *[Split subtotal on invoice by Tax-category](/forum/40-taxes/875883-split-subtotal-on-invoice-by-tax-category#197594 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hello,  I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal per Tax-category on the PDF invoice.  Example of how I would like the PDF (displaying prices without VAT). - Product 1: Price: € 10,00 (this product has VAT cat. 1) - Product 2: Price: € 5,00 (this product has VAT. cat. 2) ----- Subtotal VAT cat. 1: € 10,00 Subtotal VAT cat. 2: € 5,00  Is this possible? Thanks in advance.")*

Having a subtotal for each of the taxrates is a very useful feature. Many countries use two tax rates, like a low rate for food and a high rate for consumer goods. So it would be great to have it incorporated in Hikashop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg3NTg4My1zcGxpdC1zdWJ0b3RhbC1vbi1pbnZvaWNlLWJ5LXRheC1jYXRlZ29yeT90bXBsPW1hcmtkb3du) 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)
-

11 years 7 months ago [\#197603](#197603) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Split subtotal on invoice by Tax-category](/forum/40-taxes/875883-split-subtotal-on-invoice-by-tax-category#197603 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hello,  I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal per Tax-category on the PDF invoice.  Example of how I would like the PDF (displaying prices without VAT). - Product 1: Price: € 10,00 (this product has VAT cat. 1) - Product 2: Price: € 5,00 (this product has VAT. cat. 2) ----- Subtotal VAT cat. 1: € 10,00 Subtotal VAT cat. 2: € 5,00  Is this possible? Thanks in advance.")*

Hi,

So just to be sure, having the tax amount per tax rate (already possible in HikaShop) is not what you want to display, what you need is the product amount per tax rates, right ?

If it is, I will add that feature on our Todo list.

The following user(s) said Thank You: [robjrobj](/forum/user/35026-robjrobj "View robjrobj's Profile")

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

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

Less More

- Posts: 90
- Thank you received: 2
-
-

11 years 7 months ago [\#197679](#197679) by [gielhier](/forum/user/9811-gielhier "View gielhier's Profile")  Replied by *[gielhier](/forum/user/9811-gielhier "View gielhier's Profile")* on topic *[Split subtotal on invoice by Tax-category](/forum/40-taxes/875883-split-subtotal-on-invoice-by-tax-category#197679 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6 -- PHP version -- : n/a -- Browser(s) name and version -- : n/a -- Error-message(debug-mod must be tuned on) -- : n/a  Hello,  I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal per Tax-category on the PDF invoice.  Example of how I would like the PDF (displaying prices without VAT). - Product 1: Price: € 10,00 (this product has VAT cat. 1) - Product 2: Price: € 5,00 (this product has VAT. cat. 2) ----- Subtotal VAT cat. 1: € 10,00 Subtotal VAT cat. 2: € 5,00  Is this possible? Thanks in advance.")*

> Xavier wrote: Hi,
>
> So just to be sure, having the tax amount per tax rate (already possible in HikaShop) is not what you want to display, what you need is the product amount per tax rates, right ?
>
> If it is, I will add that feature on our Todo list.

Hi Xavier,

yes, that's right. I would like the subtotal amount per tax category. For example:

- Product 1; € 10,00 (tax. cat. 1)
- Product 2; € 15,00 (tax. cat. 2)

---

Subtotal tax cat. 1: € 10,00
Subtotal tax. cat 2: € 15,00

I would like that on the PDF invoice.

Thanks in advance!

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

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