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

#   Show VAT in cart module

##

- **[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")**
- [![nuntius's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar29512.jpg)](/forum/user/29512-nuntius "View nuntius's Profile") Topic Author
- [ Offline](/forum/user/29512-nuntius)
- nuntius.nl

Less More

- Posts: 62
- Thank you received: 1
-
-
-
-

9 years 8 months ago [\#264663](#264663) by [nuntius](/forum/user/29512-nuntius "View nuntius's Profile")  *[Show VAT in cart module](/forum/27-checkout/889296-show-vat-in-cart-module#264663 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.16 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : None  Hello,  I would like to show the tax amount in the cart which is shown by the cart module of Hikashop. I checked the cart.php view of Product in Display -&gt; Views to see what happens there. I see in the  section the shipping method and coupons and ofcourse the total price.  Is it possible to add a line showing the different tax totals of the order? Including the tax associated with a shipping method? I currently have 2 tax categories, a 21% VAT category for mainly the shipping method and a 6% VAT category for most products.  Thank you in advance!  Cheers, Teeuwis")* was created by *[nuntius](/forum/user/29512-nuntius "View nuntius's Profile")*

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.16
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : None

Hello,

I would like to show the tax amount in the cart which is shown by the cart module of Hikashop.
I checked the cart.php view of Product in Display -&gt; Views to see what happens there. I see in the &lt;tfoot&gt; section the shipping method and coupons and ofcourse the total price.

Is it possible to add a line showing the different tax totals of the order? Including the tax associated with a shipping method?
I currently have 2 tax categories, a 21% VAT category for mainly the shipping method and a 6% VAT category for most products.

Thank you in advance!

Cheers,
Teeuwis

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4OTI5Ni1zaG93LXZhdC1pbi1jYXJ0LW1vZHVsZT90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 8 months ago [\#264665](#264665) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show VAT in cart module](/forum/27-checkout/889296-show-vat-in-cart-module#264665 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.16 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : None  Hello,  I would like to show the tax amount in the cart which is shown by the cart module of Hikashop. I checked the cart.php view of Product in Display -&gt; Views to see what happens there. I see in the  section the shipping method and coupons and ofcourse the total price.  Is it possible to add a line showing the different tax totals of the order? Including the tax associated with a shipping method? I currently have 2 tax categories, a 21% VAT category for mainly the shipping method and a 6% VAT category for most products.  Thank you in advance!  Cheers, Teeuwis")*

Hi,

There is no option to have a tax line in the cart module.
You'll have to edit the file "cart" of the view "product" in order to add custom code in between the shipping and total display: Code:

&lt;?php if(!empty($shows['shipping']) &amp;&amp; !empty($this-&gt;element-&gt;shipping) &amp;&amp; $this-&gt;shipping_price !== null) { ?&gt; &lt;tr&gt; &lt;?php if($colspan &gt; 0) { ?&gt; &lt;td class="hikashop_cart_module_shipping_title" colspan="&lt;?php echo $colspan; ?&gt;"&gt;&lt;?php echo JText::_('HIKASHOP_SHIPPING'); ?&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;td class="hikashop_cart_module_coupon_value"&gt;&lt;?php echo $this-&gt;currencyClass-&gt;format($this-&gt;shipping_price, $this-&gt;total-&gt;prices[0]-&gt;price_currency_id); ?&gt;&lt;/td&gt; &lt;?php if(!empty($columns['delete'])) { ?&gt; &lt;td&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;tr&gt; &lt;?php if($colspan &gt; 0) { ?&gt; &lt;td class="hikashop_cart_module_product_total_title" colspan="&lt;?php echo $colspan; ?&gt;"&gt;&lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;td class="hikashop_cart_module_product_total_value"&gt;&lt;?php $this-&gt;row = $this-&gt;total; echo $this-&gt;loadTemplate(); ?&gt;&lt;/td&gt; &lt;?php if(!empty($columns['delete'])) { ?&gt; &lt;td&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;/tr&gt;

you can base yourself on the code from the "show_block_cart" of the view "checkout": Code:

if($this-&gt;config-&gt;get('detailed_tax_display') &amp;&amp; isset($cart-&gt;full_total-&gt;prices[0]-&gt;taxes)) { foreach($cart-&gt;full_total-&gt;prices[0]-&gt;taxes as $tax) { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $row_count - 2; ?&gt;" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title"&gt;&lt;?php echo $tax-&gt;tax_namekey; ?&gt;&lt;/td&gt; &lt;td class="hikashop_cart_tax_value" data-title="&lt;?php echo $tax-&gt;tax_namekey; ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt;&lt;?php echo $this-&gt;currencyClass-&gt;format($tax-&gt;tax_amount, $cart-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } else { ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $row_count - 2; ?&gt;" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_tax_title" class="hikashop_cart_tax_title hikashop_cart_title"&gt;&lt;?php echo JText::_('TAXES'); ?&gt;&lt;/td&gt; &lt;td class="hikashop_cart_tax_value" data-title="&lt;?php echo Jtext::_('TAXES'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt;&lt;?php echo $this-&gt;currencyClass-&gt;format($taxes, $cart-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php }

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

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