VAT in the checkout

  • Posts: 56
  • Thank you received: 0
13 years 1 month ago #49029

Hey Nicholas,

Here we are again :-)

A while ago i changed the code of my checkout to make sure all the prices are including taxes.
I did that with the code:
$this->params->set('price_with_tax',1);

But i want one field to be displayed without taxes.

What i have now (example):
Total: 12,00
Shipping: 0,00
Tax: 2,00
End total: 12.00

I want the 'Total' to be excluding the taxes. It looks weird now, while it are correct numbers.
When the total is without taxes it would look like this:

Total: 10,00
Shipping: 0,00
Tax: 2,00
End total: 12,00

This looks more sense.

Do you a good way to change this?
Thanx in advance!!!

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 1 month ago #49103

In the "cart" file of the "checkout" view via the menu Display>Views, you can add:
$this->params->set('price_with_tax',0);

just before the line:
$this->row=$this->total;

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

  • Posts: 56
  • Thank you received: 0
13 years 1 month ago #49114

This doesn't work.
I think it is still being overruled by my code in the listing_price.php which tells everything to include taxes.

I think i need to delete that code and add codes like you suggested per field that i want to adjust.

Or do you have another idea?

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

  • Posts: 56
  • Thank you received: 0
13 years 1 month ago #49115

okay so i deleted my extra code from listing_price.

now the totals below are correct, but now (ofc) are my product prices and the product total excluding taxes.
i think i need to make a change on these lines:
<?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?>
and
<?php echo JText::_('CART_PRODUCT_TOTAL_PRICE'); ?>

is there a code i can add that these prices are including taxes? then my page shows the right prices.


second thing i have is that the taxes are being rounded.
i have a bead that costs 0,05042 without taxes and 0,06 with taxes.
when i buy 200 pieces, Hikashop counts 200 * 0,05 = 10,00 without taxes and 200 * 0,06 = 12,00 with taxes
while it should be 200 * 0,05042 = 10,08 without taxes and 200 * 0,06 = 12,00 with taxes
there is a difference between the 2 .. and this also interferes with my discounts ....

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

  • Posts: 56
  • Thank you received: 0
13 years 1 month ago #49178

Hi Nicholas,

So i've been looking at some big webshops in Holland to see how they show their taxes, and to my surprise they just dont show it.
So, i did the same and now have beautiful checkout and emails.

Now there is still one thing that is an issue.
When i make a normal coupon for 10% discount, it is not an issue. The discount is calculated correctly.
But, when i connect the coupon to a specific category and add the option 'Coupon percentage applies to product only' the discount doesnt work correctly anymore.

Let's say my total order amount is €12,00. I want the discount to be calculated after taxes.
So 10% should be €1,20.
With the normal coupon, this works fine.
With the other coupon, Hikashop calculates € 1,00 discount. This seems to be the taxes difference.(19%)

Any ideas?

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 1 month ago #49198

Wouldn't it be because you added the line:
$this->params->set('price_with_tax',0);
in the cart file ? So it displays the coupon before taxes ?
Could you do a screenshot of the coupon configuration and of the cart display ?

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

  • Posts: 56
  • Thank you received: 0
13 years 1 month ago #49243

File Attachment:

File Name: Shoppingcart.doc
File Size:150 KB


Well that couldn't be it, because then it should do the same with the 'normal' coupon.
It's extra weird because i have 2 different outcomes.

I've added some printscreens.

Attachments:

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
13 years 1 month ago #49298

That's totally normal.
With the option you set, the price used for the discount is the price of the products only (so without taxes in all cases).
Without that option (so the "normal" coupon you're talking about), the system will use the total products price with or without taxes based on the "Apply discounts" discount option of the configuration.

The following user(s) said Thank You: onzekralen

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

Time to create page: 0.094 seconds
Powered by Kunena Forum