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

#   Splitting taxes on the invoice

##

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

Less More

- Posts: 17
- Thank you received: 0
-
-

11 years 7 months ago [\#196800](#196800) by [melkvoordieren](/forum/user/20930-melkvoordieren "View melkvoordieren's Profile")  *[Splitting taxes on the invoice](/forum/40-taxes/876080-splitting-taxes-on-the-invoice#196800 "-- url of the page with the problem -- :   www.melkvoordieren.nl  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox  I'm trying to split the taxes on our invoice.  Specifically, we have two types of taxes -High and Low. On our invoice, I'd like to add a line that totals all the prices -before tax- of the High category, and another line that does the same for the Low category.  So for example, if our tax rates are 1% and 10%, we'd like to see:  Low taxes: 100$ before tax, 101$ with tax High taxes: 50$ before tax, 55$ with tax  What codes would I add in the invoice PHP? I tried switching on the 'show both' button in the tax settings, but that does not seem to make any difference, even if I revert to the standard invoice code.")* was created by *[melkvoordieren](/forum/user/20930-melkvoordieren "View melkvoordieren's Profile")*

-- url of the page with the problem -- : [ www.melkvoordieren.nl](http://www.melkvoordieren.nl)
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Firefox

I'm trying to split the taxes on our invoice.

Specifically, we have two types of taxes -High and Low.
On our invoice, I'd like to add a line that totals all the prices -before tax- of the High category, and another line that does the same for the Low category.

So for example, if our tax rates are 1% and 10%, we'd like to see:

Low taxes: 100$ before tax, 101$ with tax
High taxes: 50$ before tax, 55$ with tax

What codes would I add in the invoice PHP? I tried switching on the 'show both' button in the tax settings, but that does not seem to make any difference, even if I revert to the standard invoice code.

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

11 years 7 months ago [\#196804](#196804) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Splitting taxes on the invoice](/forum/40-taxes/876080-splitting-taxes-on-the-invoice#196804 "-- url of the page with the problem -- :   www.melkvoordieren.nl  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : Firefox  I'm trying to split the taxes on our invoice.  Specifically, we have two types of taxes -High and Low. On our invoice, I'd like to add a line that totals all the prices -before tax- of the High category, and another line that does the same for the Low category.  So for example, if our tax rates are 1% and 10%, we'd like to see:  Low taxes: 100$ before tax, 101$ with tax High taxes: 50$ before tax, 55$ with tax  What codes would I add in the invoice PHP? I tried switching on the 'show both' button in the tax settings, but that does not seem to make any difference, even if I revert to the standard invoice code.")*

Hi,

In Hikashop you can enable the option for the detailed tax display, so it allow to display the tax amount of each taxes.
So in the code, you can potentially edit the part of the code which display the detailed amount by the amount of the product prices with a particular tax and the amount of this tax.

So for example in the view "order / show" the code to edit/replace will be: Code:

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 }

It require PHP knowledges.

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

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

[](#top)
