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

#   Taxes Before Shipping Intead of After Shipping

##

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

Less More

- Posts: 301
- Thank you received: 6
-
-

14 years 1 month ago [\#66279](#66279) by [fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")  *[Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66279 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")* was created by *[fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")*

Hi,

I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:

Total $15.37
Shipping $8.47
ID $1.35
Final total $23.84

However, I would like it to calculate taxes traditionally like this:

Total $15.37
ID $1.35
Shipping $8.47
Final total $23.84

In addition, how do I get my tax state to display Idaho Tax rather than just ID?

Thank you.
Charles

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

14 years 1 month ago [\#66375](#66375) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66375 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

Hi there,

Are you using the last version of Hikashop?
We fixed a certain number of issues concerning the taxes so make sure you're using a recently downloaded Hikashop 1.6 ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 6
-
-

14 years 1 month ago [\#66425](#66425) by [fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")  Replied by *[fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66425 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

Yep,

I am running the 1.6 free version. Just started test driving it a few days ago.

I have not seen an area to change this order. Your help is appreciated.

Charles

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 1 month ago [\#66456](#66456) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66456 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

Hi,

Shipping can or cannot be taxed.
It depends on the laws of your country/state.

If you want to change the order of display of the shipping fee and the taxes, you can edit the view files of HikaShop via the menu Display-&gt;Views.
There is the "cart" file of the view "checkout" for the checkout display, the "invoice" file of the view "order" for your back end template, and the file "show" of the view "order" for the order details on the front end.

For the tax name, that's actually the name you gave to your tax rate via the "manage tax rates" button of the taxation menu. You can delete it, recreate it with the name you want and change it in your tax rule and voilà.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 6
-
-

14 years 1 month ago [\#66478](#66478) by [fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")  Replied by *[fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66478 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

I am confused. Under the menu Display/Views I only see back end templates and nothing for Hika.

In System/Configuration/Checkout I see Checkout Work Flow with options of:
Login,address,shipping,payment,coupon,cart,status,fields,terms and conditions. However, no tax field.
I am not sure how to use this area though.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 1 month ago [\#66540](#66540) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66540 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

No, I'm not talking about the configuration but the menu Display-&gt;Views of HikaShop:
[ www.hikashop.com/en/support/documentatio...op-view-listing.html](http://www.hikashop.com/en/support/documentation/integrated-documentation/43-hikashop-view-listing.html)
If you don't see the views of HikaShop, you must not be looking at the correct place.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 6
-
-

14 years 1 month ago [\#66548](#66548) by [fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")  Replied by *[fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66548 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

The area under views looks the same as the documentation views images except mine does not show any Hika template at all. I am using Realestate as my template default but again no hika seen.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 6
-
-

14 years 1 month ago [\#66549](#66549) by [fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")  Replied by *[fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66549 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

I think I may have figured it out. The hika template is under my realestate template name. Is this the file and if so can you show me what to change for the taxes to be prior to shipping?

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 1.6.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;
&lt;?php
$this-&gt;setLayout('listing_price');
$this-&gt;params-&gt;set('show_quantity_field', 0);
$comp_description = $this-&gt;params-&gt;get('comp_description');
if(empty($comp_description)){
$this-&gt;params-&gt;set('comp_description',JText::_('CART_EMPTY'));
}
?&gt;
&lt;div id="hikashop_checkout_cart" class="hikashop_checkout_cart"&gt;
&lt;?php
if(empty($this-&gt;rows)){
echo $this-&gt;params-&gt;get('comp_description');
}else{
if($this-&gt;config-&gt;get('print_cart',0)&amp;&amp;JRequest::getVar('tmpl','')!='component'){ ?&gt;
&lt;div class="hikashop_checkout_cart_print_link"&gt;
&lt;a title="&lt;?php echo JText::_('HIKA_PRINT');?&gt;" class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop_completeLink('checkout&amp;task=printcart',true); ?&gt;"&gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;print.png" alt="&lt;?php echo JText::_('HIKA_PRINT');?&gt;"/&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;?php }
foreach($this-&gt;rows as $i =&gt; $row){
if(empty($row-&gt;cart_product_quantity)) continue;
if(!empty($row-&gt;product_min_per_order)){
if($row-&gt;product_min_per_order&gt;$row-&gt;cart_product_quantity){
$this-&gt;nextButton = false;
$app =&amp; JFactory::getApplication();
$app-&gt;enqueueMessage(JText::sprintf('YOU_NEED_TO_ORDER_AT_LEAST_X_X',$row-&gt;product_min_per_order,$row-&gt;product_name));
}
}
}
$row_count = 4;
?&gt;
&lt;br/&gt;
&lt;table width="100%"&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_image')){ $row_count++;?&gt;
&lt;th id="hikashop_cart_product_image_title" class="hikashop_cart_product_image_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('CART_PRODUCT_IMAGE'); ?&gt;
&lt;/th&gt;
&lt;?php } ?&gt;
&lt;th id="hikashop_cart_product_name_title" class="hikashop_cart_product_name_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt;
&lt;/th&gt;
&lt;th id="hikashop_cart_product_price_title" class="hikashop_cart_product_price_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?&gt;
&lt;/th&gt;
&lt;th id="hikashop_cart_product_quantity_title" class="hikashop_cart_product_quantity_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('PRODUCT_QUANTITY'); ?&gt;
&lt;/th&gt;
&lt;th id="hikashop_cart_product_total_title" class="hikashop_cart_product_total_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('CART_PRODUCT_TOTAL_PRICE'); ?&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tfoot&gt;
&lt;tr&gt;
&lt;td colspan="&lt;?php echo $row_count; ?&gt;"&gt;
&lt;hr /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php if(!empty($this-&gt;coupon) &#124;&#124; !empty($this-&gt;shipping)){
?&gt;
&lt;tr&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_image')) echo '&lt;td&gt;&lt;/td&gt;'; ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_cart_subtotal_value"&gt;
&lt;?php
$this-&gt;row=$this-&gt;total;
echo $this-&gt;loadTemplate();
?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php }
$taxes = round($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax-$this-&gt;full_total-&gt;prices[0]-&gt;price_value,$this-&gt;currencyHelper-&gt;getRounding($this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id));
if(!empty($this-&gt;coupon)){
?&gt;
&lt;tr&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_image')) echo '&lt;td&gt;&lt;/td&gt;'; ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td id="hikashop_checkout_cart_coupon_title" class="hikashop_cart_coupon_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_cart_coupon_value" &gt;
&lt;span class="hikashop_checkout_cart_coupon"&gt;
&lt;?php
if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;coupon-&gt;discount_value_without_tax*-1,@$this-&gt;coupon-&gt;discount_currency_id);
}else{
echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;coupon-&gt;discount_value*-1,@$this-&gt;coupon-&gt;discount_currency_id);
}
?&gt;
&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
}
if(!empty($this-&gt;shipping)){
?&gt;
&lt;tr&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_image')) echo '&lt;td&gt;&lt;/td&gt;'; ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td id="hikashop_checkout_cart_shipping_title" class="hikashop_cart_shipping_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('HIKASHOP_SHIPPING'); ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_cart_shipping_value" &gt;
&lt;span class="hikashop_checkout_cart_shipping"&gt;
&lt;?php
if(!isset($this-&gt;shipping-&gt;shipping_price) &amp;&amp; isset($this-&gt;shipping-&gt;shipping_price_with_tax) ) {
if(isset($this-&gt;value)) {
echo $this-&gt;value;
} else {
$this-&gt;shipping-&gt;shipping_price = 0.0;
$this-&gt;shipping-&gt;shipping_price_with_tax = 0.0;
}
}
if(isset($this-&gt;shipping-&gt;shipping_price)) {
if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax') &#124;&#124; !isset($this-&gt;shipping-&gt;shipping_price_with_tax) ){
echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;shipping-&gt;shipping_price,$this-&gt;shipping-&gt;shipping_currency_id);
}else{
echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;shipping-&gt;shipping_price_with_tax,$this-&gt;shipping-&gt;shipping_currency_id);
}
}
?&gt;
&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
}
if(!empty($this-&gt;additional)){
$exclude_additionnal = explode(',', $this-&gt;config-&gt;get('order_additional_hide', ''));
foreach($this-&gt;additional as $k =&gt; $additional) {
if(in_array($additional-&gt;name, $exclude_additionnal)) continue;
?&gt;
&lt;tr id="hikashop_checkout_cart_additional_&lt;?php echo str_replace(' ','_',$k); ?&gt;_line" &gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_image')) echo '&lt;td&gt;&lt;/td&gt;'; ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td id="hikashop_checkout_cart_additional_&lt;?php echo str_replace(' ','_',$k); ?&gt;_title" class="hikashop_cart_additional_title hikashop_cart_title"&gt;&lt;?php
echo JText::_($additional-&gt;name);
?&gt;&lt;/td&gt;
&lt;td class="hikashop_cart_shipping_value" &gt;
&lt;span class="hikashop_checkout_cart_shipping"&gt;
&lt;?php
if(!empty($additional-&gt;price_value) &#124;&#124; empty($additional-&gt;value)) {
if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format(@$additional-&gt;price_value,$additional-&gt;price_currency_id);
}else{
echo $this-&gt;currencyHelper-&gt;format(@$additional-&gt;price_value_with_tax,$additional-&gt;price_currency_id);
}
} else {
echo $additional-&gt;value;
}
?&gt;
&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
}
}
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 if($this-&gt;params-&gt;get('show_cart_image')) echo '&lt;td&gt;&lt;/td&gt;'; ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&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"&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 if($this-&gt;params-&gt;get('show_cart_image')) echo '&lt;td&gt;&lt;/td&gt;'; ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&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"&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 }
}?&gt;
&lt;?php if(!empty($this-&gt;payment) &amp;&amp; $this-&gt;payment-&gt;payment_price != 0){ ?&gt;
&lt;tr&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_image')) echo '&lt;td&gt;&lt;/td&gt;'; ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;/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 } ?&gt;
&lt;tr&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_image')) echo '&lt;td&gt;&lt;/td&gt;'; ?&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;/td&gt;
&lt;td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title"&gt;
&lt;?php echo JText::_('HIKASHOP_FINAL_TOTAL'); ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_cart_total_value"&gt;
&lt;span class="hikashop_checkout_cart_final_total"&gt;
&lt;?php
echo $this-&gt;currencyHelper-&gt;format($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id);
?&gt;
&lt;/span&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tfoot&gt;
&lt;tbody&gt;
&lt;?php
$k = 0;
$group = $this-&gt;config-&gt;get('group_options',0);
foreach($this-&gt;rows as $i =&gt; $row){
if(empty($row-&gt;cart_product_quantity)) continue;
if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue;
?&gt;
&lt;tr class="&lt;?php echo "row$k"; ?&gt;"&gt;
&lt;?php if($this-&gt;params-&gt;get('show_cart_image')){ ?&gt;
&lt;td class="hikashop_cart_product_image_value"&gt;
&lt;?php if(!empty($row-&gt;images)){
$image = reset($row-&gt;images);
$width = $this-&gt;config-&gt;get('thumbnail_x');
$height = $this-&gt;config-&gt;get('thumbnail_y');
$this-&gt;image-&gt;checkSize($width,$height,$image);
if(!$this-&gt;config-&gt;get('thumbnail')){
echo '&lt;img src="'.$this-&gt;image-&gt;uploadFolder_url.$image-&gt;file_path.'" alt="'.$image-&gt;file_name.'" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" /&gt;';
}else{ ?&gt;
&lt;div class="hikashop_cart_product_image_thumb" &gt;
&lt;?php echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"', '', $width, $height); ?&gt;
&lt;/div&gt;
&lt;?php }
} ?&gt;
&lt;/td&gt;
&lt;?php } ?&gt;
&lt;td class="hikashop_cart_product_name_value"&gt;
&lt;p class="hikashop_cart_product_name"&gt;
&lt;?php
global $Itemid;
$checkout_itemid = $this-&gt;config-&gt;get('checkout_itemid');
if(!empty($checkout_itemid )){
$Itemid = $checkout_itemid ;
}
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&amp;Itemid='.$Itemid;
} ?&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=show&amp;cid='.$row-&gt;product_id.$url_itemid);?&gt;" &gt;
&lt;?php echo $row-&gt;product_name; ?&gt;
&lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt;
&lt;span class="hikashop_product_code_checkout"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt;
&lt;?php } ?&gt;
&lt;/a&gt;
&lt;?php
if($group){
$display_item_price=false;
foreach($this-&gt;rows as $j =&gt; $optionElement){
if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue;
if(!empty($optionElement-&gt;prices[0])){
$display_item_price = true;
}
}
if($display_item_price){
$this-&gt;row=&amp;$row;
$this-&gt;unit=true;
echo ' '.strip_tags($this-&gt;loadTemplate());
}
}
?&gt;
&lt;/p&gt;
&lt;p class="hikashop_cart_product_custom_item_fields"&gt;
&lt;?php
if(hikashop_level(2) &amp;&amp; !empty($this-&gt;extraFields)){
foreach($this-&gt;extraFields as $field){
$namekey = $field-&gt;field_namekey;
if(empty($row-&gt;$namekey)) continue;
echo '&lt;p class="hikashop_cart_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$row-&gt;$namekey).'&lt;/p&gt;';
}
}
$input='';
if($group){
foreach($this-&gt;rows as $j =&gt; $optionElement){
if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue;
if(!empty($optionElement-&gt;prices[0])){
if(!isset($row-&gt;prices[0])){
$row-&gt;prices[0]-&gt;price_value=0;
$row-&gt;prices[0]-&gt;price_value_with_tax=0;
$row-&gt;prices[0]-&gt;price_currency_id = hikashop_getCurrency();
}
foreach(get_object_vars($row-&gt;prices[0]) as $key =&gt; $value){
if(is_object($value)){
foreach(get_object_vars($value) as $key2 =&gt; $var2){
if(strpos($key2,'price_value')!==false) $row-&gt;prices[0]-&gt;$key-&gt;$key2 +=@$optionElement-&gt;prices[0]-&gt;$key-&gt;$key2;
}
}else{
if(strpos($key,'price_value')!==false) $row-&gt;prices[0]-&gt;$key+=@$optionElement-&gt;prices[0]-&gt;$key;
}
}
}
?&gt;
&lt;p class="hikashop_cart_option_name"&gt;
&lt;?php
echo $optionElement-&gt;product_name;
if(@$optionElement-&gt;prices[0]-&gt;price_value_with_tax&gt;0){
echo ' ( + ';
$this-&gt;row=&amp;$optionElement;
$this-&gt;unit=true;
echo strip_tags($this-&gt;loadTemplate()).' )';
}
?&gt;
&lt;/p&gt;
&lt;?php
$input .='document.getElementById(\'product_option_'.$optionElement-&gt;cart_product_id.'\').value=qty_field.value;';
echo '&lt;input type="hidden" id="product_option_'.$optionElement-&gt;cart_product_id.'" name="item" value="'.$row-&gt;cart_product_quantity.'"/&gt;';
}
}?&gt;
&lt;/p&gt;
&lt;/td&gt;
&lt;td class="hikashop_cart_product_price_value"&gt;
&lt;?php
$this-&gt;row=&amp;$row;
$this-&gt;unit=true;
echo $this-&gt;loadTemplate();
?&gt;
&lt;/td&gt;
&lt;td class="hikashop_cart_product_quantity_value"&gt;
&lt;input id="hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt;}" /&gt;
&lt;div class="hikashop_cart_product_quantity_refresh"&gt;
&lt;a href="#" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'refresh.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;" /&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;?php if($this-&gt;params-&gt;get('show_delete',1)){ ?&gt;
&lt;div class="hikashop_cart_product_quantity_delete"&gt;
&lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;product_id='.$row-&gt;product_id.'&amp;quantity=0&amp;return_url='.urlencode(base64_encode(urldecode($this-&gt;params-&gt;get('url'))))); ?&gt;" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0; &lt;?php echo $input; ?&gt; qty_field.form.submit();} return false;" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt;
&lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" /&gt;
&lt;/a&gt;
&lt;/div&gt;
&lt;?php } ?&gt;
&lt;/td&gt;
&lt;td class="hikashop_cart_product_total_value"&gt;
&lt;?php
$this-&gt;row=&amp;$row;
$this-&gt;unit=false;
echo $this-&gt;loadTemplate();
?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
$k = 1-$k;
}
?&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;?php
if($this-&gt;params-&gt;get('show_quantity')){ ?&gt;
&lt;noscript&gt;
&lt;input id="hikashop_checkout_cart_quantity_button" class="button" type="submit" name="refresh" value="&lt;?php echo JText::_('REFRESH_CART');?&gt;"/&gt;
&lt;/noscript&gt;
&lt;?php }
}
$config =&amp; hikashop_config();
if(hikashop_level(1) &amp;&amp; $config-&gt;get('checkout_convert_cart') &amp;&amp; $config-&gt;get('enable_wishlist')){
$this-&gt;params-&gt;set('cart_type','wishlist');
echo $this-&gt;cart-&gt;displayButton(JText::_('CART_TO_WISHLIST'),'wishlist',$this-&gt;params,hikashop_completeLink('cart&amp;task=convert&amp;cart_type=cart&amp;cart_id='.$this-&gt;row-&gt;cart_id.$url_itemid),'window.location.href = \''.hikashop_completeLink('cart&amp;task=convert&amp;cart_type=cart&amp;cart_id='.$this-&gt;row-&gt;cart_id.$url_itemid).'\';return false;');
}
?&gt;
&lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 1 month ago [\#66663](#66663) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66663 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

That's the file yes.

You need to swap the whole blocks of code of the condition if(!empty($this-&gt;shipping)){ and the condition if(bccomp($taxes,0,5)){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 301
- Thank you received: 6
-
-

14 years 1 month ago [\#66664](#66664) by [fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")  Replied by *[fan4chevy](/forum/user/9567-fan4chevy "View fan4chevy's Profile")* on topic *[Re: Taxes Before Shipping Intead of After Shipping](/forum/2-general-talk-about-hikashop/66279-taxes-before-shipping-intead-of-after-shipping#66664 "Hi,  I am currently testing the free version of your cart. I am noticing that on checkout the taxes are calculating after shipping like this:  Total $15.37 Shipping $8.47 ID $1.35 Final total $23.84  However, I would like it to calculate taxes traditionally like this:  Total $15.37 ID $1.35 Shipping $8.47 Final total $23.84  In addition, how do I get my tax state to display Idaho Tax rather than just ID?  Thank you. Charles")*

Thank you,

I have to say. Your support is really good here. Your work hard. I am very glad that I found this cart. I was trying virtuemart but I like this one way better. I can't wait to get away from OScommerce.

I really like that you have an affiliate program too!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY2Mjc5LXRheGVzLWJlZm9yZS1zaGlwcGluZy1pbnRlYWQtb2YtYWZ0ZXItc2hpcHBpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.076 seconds

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