Show taxes for each product in cart ?

  • Posts: 25
  • Thank you received: 0
8 years 11 months ago #223615

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.6

Hello,

Is it possible to show in the cart (and also in the email order creation notification) the VAT (and VAT %) of each product ?

Now my cart looks like this:
Image | name | unit price | quantity | total price
image1 | product 1 | 3,33€ (3,20€ exl. VAT) | 1 | 3,33€ (3,20€ exl. VAT)


What I would like is:
Image | name | unit price | VAT | VAT % | quantity | total price
image1 | product 1 | 3,33€ (3,20€ exl. VAT) | 0,13 € | 4% | 1 | 3,33€ (3,20€ exl. VAT)

So that the client sees the VAT for each product.

Thank you very much if you could help me to achieve this.
Mireille

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

  • Posts: 82908
  • Thank you received: 13378
  • MODERATOR
8 years 11 months ago #223633

Hi,

There is no option to do that. You would have to edit the several listing_price view files via the menu Display>Views (for the cart, the checkout, the order) and then the emails via the menu System>Emails in order to add some not so easy custom code to handle it.
If you're a developer it's not a problem. Otherwise, it's not possible.

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

  • Posts: 25
  • Thank you received: 0
8 years 11 months ago #223796

Hi,
Thank you for your answer.

Okay I understand that this is not so easy. I am able to do some php coding, but this seems not so easy.
So I will forget the idea of showing taxes for each product in the cart.

But I know found out that I can show the total of the different taxes in the cart, which is already a very good thing for me.
What I have now at the end of my cart is:
SUBTOTAL (incl. VAT)
VAT1
VAT2
TOTAL DUE (incl. VAT)

Would it be possible to have:
SUBTOTAL (without VAT)
VAT1
VAT2
TOTAL DUE (incl. VAT)

Maybe this is possible with only slight modifications of the views files ?
If so, it would be nice to tell me which part of which files should be modified.

Thank you very much for your help.
And thank you for hikashop which I greatly appreciate and this very good support.

Thanks,
Mireille

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

  • Posts: 82908
  • Thank you received: 13378
  • MODERATOR
8 years 11 months ago #223870

Hi,

Yes, the modification would be way easier.
It depends where you want to do it.
On the checkout for example, you will have to edit the file "cart" of the view "checkout" via the menu Display>Views,
and change the line:

echo $this->currencyHelper->format(@$this->total->prices[0]->price_value_with_tax,@$this->total->prices[0]->price_currency_id);
to:
echo $this->currencyHelper->format(@$this->total->prices[0]->price_value,@$this->total->prices[0]->price_currency_id);

The following user(s) said Thank You: mireille76

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

  • Posts: 25
  • Thank you received: 0
8 years 11 months ago #223905

Hi,
Thank you.
This works fine.
I did similar modifications in the following views:
frontend:
checkout - cart
order - show
backend:
order - show_additional
order - edit_additional
order - invoice
and in the emails.
I hope I didn't miss a place where the subtotal is shown.

Thank you again and have a nice day,
Mireille

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

Time to create page: 0.063 seconds
Powered by Kunena Forum