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

#   Edit view order / show.php how to

##

- **[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 7 months ago -  12 years 7 months ago [\#150193](#150193) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  *[Edit view order / show.php how to](/forum/35-orders-management/867039-edit-view-order-show-php-how-to#150193 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.2  Hi,  we need to change order display for customers. We need to show VAT and taxes just before HIKASHOP&#95;TOTAL row.  How to?")* was created by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")*

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2.3
-- PHP version -- : 5.3.2

Hi,

we need to change order display for customers. We need to show VAT and taxes just before HIKASHOP_TOTAL row.

How to?

---

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

Last edit: 12 years 7 months ago by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NzAzOS1lZGl0LXZpZXctb3JkZXItc2hvdy1waHAtaG93LXRvP3RtcGw9bWFya2Rvd24=) 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 7 months ago [\#150262](#150262) 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 *[Edit view order / show.php how to](/forum/35-orders-management/867039-edit-view-order-show-php-how-to#150262 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.2  Hi,  we need to change order display for customers. We need to show VAT and taxes just before HIKASHOP&#95;TOTAL row.  How to?")*

Hello,
Can you show me a screenshots of what do you want to do ? Also, note that the end of your cart summary is displayed by these lines : Code:

&lt;tr&gt; &lt;td style="border-top:2px solid #B8B8B8;" colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_subtotal_title" style="border-top:2px solid #B8B8B8;" class="key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'SUBTOTAL' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_subtotal_value" style="border-top:2px solid #B8B8B8;"&gt; &lt;?php if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal_no_vat,$this-&gt;order-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php $taxes = $this-&gt;order-&gt;order_subtotal-$this-&gt;order-&gt;order_subtotal_no_vat+$this-&gt;order-&gt;order_shipping_tax-$this-&gt;order-&gt;order_discount_tax; if(!empty($this-&gt;order-&gt;order_discount_code)){ ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_coupon_title key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_COUPON' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_coupon_value" &gt; &lt;?php if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_discount_price*-1.0,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(($this-&gt;order-&gt;order_discount_price-@$this-&gt;order-&gt;order_discount_tax)*-1.0,$this-&gt;order-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if($taxes != 0){ if($this-&gt;config-&gt;get('detailed_tax_display') &amp;&amp; !empty($this-&gt;order-&gt;order_tax_info)){ 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 } }else{ ?&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 JText::_( 'VAT' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_value"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($taxes,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } if(!empty($this-&gt;order-&gt;additional)) { $exclude_additionnal = explode(',', $this-&gt;config-&gt;get('order_additional_hide', '')); foreach($this-&gt;order-&gt;additional as $additional) { if(in_array($additional-&gt;order_product_name, $exclude_additionnal)) continue; ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_additionall_title key"&gt; &lt;label&gt;&lt;?php echo JText::_($additional-&gt;order_product_name); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_additional_value"&gt;&lt;?php if(!empty($additional-&gt;order_product_price)) { $additional-&gt;order_product_price = (float)$additional-&gt;order_product_price; } if(!empty($additional-&gt;order_product_price) &#124;&#124; empty($additional-&gt;order_product_options)) { if($config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($additional-&gt;order_product_price+@$additional-&gt;order_product_tax, $this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format($additional-&gt;order_product_price, $this-&gt;order-&gt;order_currency_id); } } else { echo $additional-&gt;order_product_options; } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php } } if(!empty($this-&gt;order-&gt;order_shipping_method)){ ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_shipping_title key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'SHIPPING' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_shipping_value" &gt; &lt;?php if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_shipping_price-@$this-&gt;order-&gt;order_shipping_tax,$this-&gt;order-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(!empty($this-&gt;order-&gt;order_payment_method) &amp;&amp; $this-&gt;order-&gt;order_payment_price != 0){ ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_payment_title key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_PAYMENT' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_payment_value" &gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_payment_price,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_total_title key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_TOTAL' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_total_value" &gt; &lt;?php if($this-&gt;config-&gt;get('show_taxes') == 'both'){ } else if($this-&gt;config-&gt;get('show_taxes') == 'with'){ } else{ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_full_price,$this-&gt;order-&gt;order_currency_id); }?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/fieldset&gt; &lt;/td&gt; &lt;/tr&gt;

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

- **[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 7 months ago -  12 years 7 months ago [\#150280](#150280) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Edit view order / show.php how to](/forum/35-orders-management/867039-edit-view-order-show-php-how-to#150280 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.2  Hi,  we need to change order display for customers. We need to show VAT and taxes just before HIKASHOP&#95;TOTAL row.  How to?")*

Hi,

I want to move the VAT and taxes rows soon before the TOTAL. Note: in invoice (and order) view in frontend for customers.

Take a look at the image, IVA (VAT in Italy)

---

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

- [ ![h1762087.jpg](/forum/attachment/16404) ](/forum/attachment/16404 "h1762087.jpg") [ ](/forum/attachment/16404?download=1 "h1762087.jpg")

Last edit: 12 years 7 months ago by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NzAzOS1lZGl0LXZpZXctb3JkZXItc2hvdy1waHAtaG93LXRvP3RtcGw9bWFya2Rvd24=) 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 7 months ago [\#150327](#150327) 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 *[Edit view order / show.php how to](/forum/35-orders-management/867039-edit-view-order-show-php-how-to#150327 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.2  Hi,  we need to change order display for customers. We need to show VAT and taxes just before HIKASHOP&#95;TOTAL row.  How to?")*

So the solution will probably be to move that lines : Code:

if($taxes != 0){ if($this-&gt;config-&gt;get('detailed_tax_display') &amp;&amp; !empty($this-&gt;order-&gt;order_tax_info)){ 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 } }else{ ?&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 JText::_( 'VAT' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td class="hikashop_order_tax_value"&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($taxes,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } }

just before these lines : Code:

?&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="hikashop_order_total_title key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_TOTAL' ); ?&gt; &lt;/label&gt; &lt;/td&gt;

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

- **[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 7 months ago [\#150393](#150393) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Edit view order / show.php how to](/forum/35-orders-management/867039-edit-view-order-show-php-how-to#150393 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.2  Hi,  we need to change order display for customers. We need to show VAT and taxes just before HIKASHOP&#95;TOTAL row.  How to?")*

I already tryed to edit that way but didn't tested it 'cause my PHP editing software gave me sintax error, so I thought that wasn't the right solution.
I will try it anyway and let you know.

---

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

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

- **[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 7 months ago [\#150479](#150479) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Edit view order / show.php how to](/forum/35-orders-management/867039-edit-view-order-show-php-how-to#150479 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2.3 -- PHP version -- : 5.3.2  Hi,  we need to change order display for customers. We need to show VAT and taxes just before HIKASHOP&#95;TOTAL row.  How to?")*

Ok, it work fine now! I made a mistake before; I didn't moved that piece of code before " ?&gt; " but after that!

Thanks for support

---

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

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