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

#   checkout / cart.php change order for paiment VAT

##

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

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

12 years 5 months ago [\#159771](#159771) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  *[checkout / cart.php change order for paiment VAT](/forum/27-checkout/868924-checkout-cart-php-change-order-for-paiment-vat#159771 "-- HikaShop version -- : 23.1 -- Joomla version -- : 3.3  Hi I would invert the position on VAT and taxes with Payments. It would be much better that VAT and taxes are always the last values (hope you'll consider it in future releases).  Which part of code should I change?  Thanks in advice")* was created by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")*

-- HikaShop version -- : 23.1
-- Joomla version -- : 3.3

Hi I would invert the position on VAT and taxes with Payments.
It would be much better that VAT and taxes are always the last values (hope you'll consider it in future releases).

Which part of code should I change?

Thanks in advice

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

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

12 years 5 months ago [\#159785](#159785) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[checkout / cart.php change order for paiment VAT](/forum/27-checkout/868924-checkout-cart-php-change-order-for-paiment-vat#159785 "-- HikaShop version -- : 23.1 -- Joomla version -- : 3.3  Hi I would invert the position on VAT and taxes with Payments. It would be much better that VAT and taxes are always the last values (hope you'll consider it in future releases).  Which part of code should I change?  Thanks in advice")*

Hi,

As you say in your title, it's the file "cart" of the view "checkout" that you need to edit if you want to change that.

This is for the payment: Code:

if(!empty($this-&gt;payment) &amp;&amp; $this-&gt;payment-&gt;payment_price != 0) { ?&gt; &lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_payment_title" class="hikashop_cart_payment_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_PAYMENT'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_payment_value"&gt; &lt;span class="hikashop_checkout_cart_payment"&gt; &lt;?php if(!isset($this-&gt;payment-&gt;payment_price) &amp;&amp; isset($this-&gt;payment-&gt;payment_price_with_tax) ) { if(isset($this-&gt;value)) { echo $this-&gt;value; } else { $this-&gt;payment-&gt;payment_price = 0.0; $this-&gt;payment-&gt;payment_price_with_tax = 0.0; } } if(isset($this-&gt;payment-&gt;payment_price)) { if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax') &#124;&#124; !isset($this-&gt;payment-&gt;payment_price_with_tax) ){ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;payment-&gt;payment_price,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;payment-&gt;payment_price_with_tax,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); } } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php }

This is for the taxes: Code:

if(bccomp($taxes,0,5)){ if($this-&gt;config-&gt;get('detailed_tax_display') &amp;&amp; isset($this-&gt;full_total-&gt;prices[0]-&gt;taxes)) { foreach($this-&gt;full_total-&gt;prices[0]-&gt;taxes as $tax) { ?&gt; &lt;tr&gt; &lt;?php echo $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"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($tax-&gt;tax_amount,$this-&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;?php echo $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"&gt; &lt;span class="hikashop_checkout_cart_taxes"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($taxes,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id); ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } }

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

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

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