Divided tax in cart

  • Posts: 61
  • Thank you received: 5
  • Hikashop Business
2 weeks 17 hours ago #366740

-- 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?

Last edit: 2 weeks 17 hours ago by Rusty.

Please Log in or Create an account to join the conversation.

  • Posts: 83675
  • Thank you received: 13545
  • MODERATOR
2 weeks 12 hours ago #366747

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.

Please Log in or Create an account to join the conversation.

  • Posts: 61
  • Thank you received: 5
  • Hikashop Business
1 week 6 days ago #366763

Hi nicolas,

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 week 6 days ago by Rusty.

Please Log in or Create an account to join the conversation.

  • Posts: 83675
  • Thank you received: 13545
  • MODERATOR
1 week 6 days ago #366765

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:

<!-- 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 -->
So, you could copy / paste this code, with something like this:
<!-- 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.

  • Posts: 61
  • Thank you received: 5
  • Hikashop Business
1 week 2 days ago #366790

Hi nicolas!

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.040 seconds
Powered by Kunena Forum