Show product incl. VAT

  • Posts: 49
  • Thank you received: 2
7 years 3 months ago #286896

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : 7.0.27
-- Browser(s) name and version -- : Firefox

Hi,

how can I show the product price including VAT?
In the category listing, all looks fine (price including VAT):



In product view, it shows the price without VAT:


The configuration of Hikashop is set to "Show taxed prices --> no tax".
If I set it to "with tax", the checkout is not showing correctly:


How can I solve this?

Many thanks in advance
Torsten

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

  • Posts: 12953
  • Thank you received: 1778
7 years 3 months ago #286906

Hello Torsten,

The Subtotal is actually displaying the total price of product with taxes if they are displayed with taxes but without shipping / payment / coupon prices.
If you need this displaying to be changed the solution will probably be to directly edit the code of the file "Show_block_cart" of the "Checkout" view of your front-end template via "Hikashop->Display->Views".

The following user(s) said Thank You: CorneliaML

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

  • Posts: 49
  • Thank you received: 2
7 years 3 months ago #286981

Hello Mohamed,

so I have to change "Show taxed prices" to "with tax"?



And then edit the "Show_block_cart" file? Could you please tell me which code to insert where in the file?

My aim is to show
1) the price including VAT in category listings
2) the price including VAT in the product view
3) the subtoal, the VAT and the grand total on the checkout

I´ve also read other posts here in the forum about this "problem" but most of them are years old and the fix doesn´t seem to fit for the current version.

Many thanks in advance
Torsten

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 3 months ago #287001

Hello,

Your last message, allow me to propose you more easy solution than custom HikaShop page view, follow me steps by steps :

=> Don't forget that you have to check your listing settings in
Menus dropdown => Main Menu => Select required Item Menu and go in Products options tab



=> for all page, as you said it's in the Main HikaShop Configuration page, and if you have different needs for each page, I have an idea :
- In Main HikaSHop Configuration, set your taxes on "display both"



- Set custom css command, to hide unwanted price data page by page with this kind of command :

.page_css_class .unwanted_css_class_data {
display: none;
}


Note : See this tutorial to see how to add css command to your frontend css file.

Hope this will help you.

Last edit: 7 years 3 months ago by Philip.

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

  • Posts: 49
  • Thank you received: 2
7 years 3 months ago #287047

Hello Philippe,

many thanks for your hints, if I follow the steps

1) the price including VAT in category listings is showing o.k.
2) the price including VAT in the product view is showing o.k.
3) the subtoal, the VAT and the grand total on the checkout are not showing o.k.



I need the subtotal (in this case "Zwischensumme", the net price of the product), the VAT and the grand total.
Sorry for bothering but this is a legal requirement in Germany as the invoice will be also incorrect if it´s not set correctly.

Best regards
Torsten

Last edit: 7 years 3 months ago by CorneliaML.

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 3 months ago #287062

Hello,

Ok I get it, sorry I misunderstood your needs, Mohamed was right you have to edit your view checkout/cart view.



Note that on my screenshot, you have the show_block_cart.php (if you don't use legacy checkout) or cart.php
In details, you have to find the object "$cart->total->prices[0]->price_value_with_tax" and replace it as show on my screenshot for "$cart->total->prices[0]->price_value".

For this, use the HikaSHop override view in Main HikaShop Configuration => Display dropdown => Views, then use dropdown with Checkout/ your template/ Frontend to find your required view : cart/ show_block_cart

Hope this will fit your needs
Regards

Last edit: 7 years 3 months ago by Philip.

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

  • Posts: 49
  • Thank you received: 2
7 years 3 months ago #287152

Hello Philippe,

many thanks, you made my day :) The VAT now shows correctly on the checkout and also on the product pages.

I now need to adjust the invoice as well as the subtotal is showing including VAT.
Image "PDF invoice"



Image "Standard invoice"


Best regards
Torsten

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 3 months ago #287161

Hello,

That the same idea than previous, but this time for Order /show :



And for the plugin attach invoice, edite the invoice.php :



Regards

The following user(s) said Thank You: CorneliaML

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

  • Posts: 49
  • Thank you received: 2
7 years 3 months ago #287304

Hi Phillipe,

thanks again for your help, all is working now :)

Also a big thanks to Mohamed for pointing in the right direction.

Best regards
Torsten

The following user(s) said Thank You: Philip

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

Time to create page: 0.086 seconds
Powered by Kunena Forum