- Posts: 105
- Thank you received: 8
Divided tax in cart
1 year 7 months ago - 1 year 7 months ago #366740
by Rusty
Divided tax in cart was created by Rusty
-- HikaShop version -- : 5.1.5
In our shop we sell products with 7% tax and others with 19% tax.
In the cart is only one tax field. But we need two of them. Based on local rules we have to show the separated totals of the 7% tax _and_ the 19% tax - not combined. How to achive this?
And we need an additional line: total without tax". Is there any option in the settings I'm not aware of?
In our shop we sell products with 7% tax and others with 19% tax.
In the cart is only one tax field. But we need two of them. Based on local rules we have to show the separated totals of the 7% tax _and_ the 19% tax - not combined. How to achive this?
And we need an additional line: total without tax". Is there any option in the settings I'm not aware of?
Last edit: 1 year 7 months ago by Rusty.
Please Log in or Create an account to join the conversation.
1 year 7 months ago #366747
by nicolas
Replied by nicolas on topic Divided tax in cart
Hi,
The tax is separated per rate by default with HikaShop.
So normally, there is nothing to do.
However, if you've deactivated the "detailed taxes display" setting, then it would display the taxes together:
www.hikashop.com/support/documentation/5...nfig.html#main_taxes
So please check that setting.
The tax is separated per rate by default with HikaShop.
So normally, there is nothing to do.
However, if you've deactivated the "detailed taxes display" setting, then it would display the taxes together:
www.hikashop.com/support/documentation/5...nfig.html#main_taxes
So please check that setting.
Please Log in or Create an account to join the conversation.
1 year 7 months ago - 1 year 7 months ago #366763
by Rusty
Replied by Rusty on topic Divided tax in cart
Hi nicolas,
I checked it - it is activated. If I deactivate it, the cart shows only the word "tax". If activated, the cart shows "19% tax". But there is also a product with 7% tax in the cart. But for this product the 7% tax is not displayed. Maybe it is a bug?
And this, please: I need an additional line: "total without tax". Is there any option in the settings I'm not aware of? If not, can you give some code help? Thanks in advance!
nicolas wrote: The tax is separated per rate by default with HikaShop.
So normally, there is nothing to do.
However, if you've deactivated the "detailed taxes display" setting, then it would display the taxes together:
www.hikashop.com/support/documentation/5...nfig.html#main_taxes
I checked it - it is activated. If I deactivate it, the cart shows only the word "tax". If activated, the cart shows "19% tax". But there is also a product with 7% tax in the cart. But for this product the 7% tax is not displayed. Maybe it is a bug?
And this, please: I need an additional line: "total without tax". Is there any option in the settings I'm not aware of? If not, can you give some code help? Thanks in advance!
Last edit: 1 year 7 months ago by Rusty.
Please Log in or Create an account to join the conversation.
1 year 7 months ago #366765
by nicolas
Replied by nicolas on topic Divided tax in cart
Hi,
No, it is not a bug. It must be a wrong configuration of your taxes.
Please provide a screenshot of the settings of that 7% product, and a screenshot of what you have in the System>Taxes menu.
There is no total without taxes in the cart. However, if you turn off the "taxes" setting of the cart view in your checkout workflow, in the HikaShop configuration, the subtotal will be displayed without taxes, so you'll have:
- subtotal without taxes
- shipping cost without taxes
- 19% taxes
- 7% taxes
- total with taxes
Otherwise, you could add custom code in the checkout / show_block_cart view file.
There, you can see the total with taxes is displayed with the code:
So, you could copy / paste this code, with something like this:
No, it is not a bug. It must be a wrong configuration of your taxes.
Please provide a screenshot of the settings of that 7% product, and a screenshot of what you have in the System>Taxes menu.
There is no total without taxes in the cart. However, if you turn off the "taxes" setting of the cart view in your checkout workflow, in the HikaShop configuration, the subtotal will be displayed without taxes, so you'll have:
- subtotal without taxes
- shipping cost without taxes
- 19% taxes
- 7% taxes
- total with taxes
Otherwise, you could add custom code in the checkout / show_block_cart view file.
There, you can see the total with taxes is displayed with the code:
Code:
<!-- TOTAL ROW -->
<?php
if(!empty($this->options['show_price'])) {
?>
<tr>
<td colspan="<?php echo $row_count - 2; ?>" class="hikashop_cart_empty_footer"></td>
<td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title"><?php
echo JText::_('HIKASHOP_TOTAL');
?></td>
<td class="hikashop_cart_total_value" data-title="<?php echo Jtext::_('HIKASHOP_TOTAL'); ?>">
<span class="hikashop_checkout_cart_final_total"><?php
echo $this->currencyClass->format($displayingPrices->total->price_value_with_tax, $displayingPrices->price_currency_id);
?></span>
</td>
</tr>
<?php
}
?>
<!-- EO TOTAL ROW -->
Code:
<!-- TOTAL ROW -->
<?php
if(!empty($this->options['show_price'])) {
?>
<tr>
<td colspan="<?php echo $row_count - 2; ?>" class="hikashop_cart_empty_footer"></td>
<td id="hikashop_checkout_cart_final_total_title" class="hikashop_cart_total_title hikashop_cart_title">total without taxes</td>
<td class="hikashop_cart_total_value" data-title="total without taxes">
<span class="hikashop_checkout_cart_final_total"><?php
echo $this->currencyClass->format($displayingPrices->total->price_value, $displayingPrices->price_currency_id);
?></span>
</td>
</tr>
<?php
}
?>
<!-- EO TOTAL ROW -->
Please Log in or Create an account to join the conversation.
1 year 7 months ago #366790
by Rusty
Replied by Rusty on topic Divided tax in cart
Hi nicolas!
Thanks to your tip, I checked double - and found my configuration issue. Now it works correctly!
Thank you very much!
Cheers
nicolas wrote: No, it is not a bug. It must be a wrong configuration of your taxes.
Thanks to your tip, I checked double - and found my configuration issue. Now it works correctly!
Thank you very much!
Cheers
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.052 seconds