- Posts: 49
- Thank you received: 2
Show product incl. VAT
- CorneliaML
-
Topic Author
- Offline
Less
More
8 years 9 months ago #286896
by CorneliaML
Show product incl. VAT was created by CorneliaML
-- 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):
image missing https://i.imgur.com/5ebViXd.png
In product view, it shows the price without VAT:
image missing https://i.imgur.com/8OJAAIc.png
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:
image missing https://i.imgur.com/Q3Ff1Am.png
How can I solve this?
Many thanks in advance
Torsten
-- 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):
image missing https://i.imgur.com/5ebViXd.png
In product view, it shows the price without VAT:
image missing https://i.imgur.com/8OJAAIc.png
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:
image missing https://i.imgur.com/Q3Ff1Am.png
How can I solve this?
Many thanks in advance
Torsten
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
8 years 9 months ago #286906
by Mohamed Thelji
Replied by Mohamed Thelji on topic Show product incl. VAT
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 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.
- CorneliaML
-
Topic Author
- Offline
Less
More
- Posts: 49
- Thank you received: 2
8 years 9 months ago #286981
by CorneliaML
Replied by CorneliaML on topic Show product incl. VAT
Hello Mohamed,
so I have to change "Show taxed prices" to "with tax"?
image missing https://i.imgur.com/2rNixDT.png
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
so I have to change "Show taxed prices" to "with tax"?
image missing https://i.imgur.com/2rNixDT.png
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.
8 years 9 months ago - 8 years 9 months ago #287001
by Philip
Replied by Philip on topic Show product incl. VAT
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
image missing https://cdn.pbrd.co/images/H5szZy3.png
=> 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"
image missing https://cdn.pbrd.co/images/H5szXCjD.png
- Set custom css command, to hide unwanted price data page by page with this kind of command :
Note : See this tutorial to see how to add css command to your frontend css file.
Hope this will help you.
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
image missing https://cdn.pbrd.co/images/H5szZy3.png
=> 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"
image missing https://cdn.pbrd.co/images/H5szXCjD.png
- 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: 8 years 9 months ago by Philip.
Please Log in or Create an account to join the conversation.
- CorneliaML
-
Topic Author
- Offline
Less
More
- Posts: 49
- Thank you received: 2
8 years 9 months ago - 8 years 9 months ago #287047
by CorneliaML
Replied by CorneliaML on topic Show product incl. VAT
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.
image missing https://i.imgur.com/lvoLsmN.png
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
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.
image missing https://i.imgur.com/lvoLsmN.png
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: 8 years 9 months ago by CorneliaML.
Please Log in or Create an account to join the conversation.
8 years 9 months ago - 8 years 9 months ago #287062
by Philip
Replied by Philip on topic Show product incl. VAT
Hello,
Ok I get it, sorry I misunderstood your needs, Mohamed was right you have to edit your view checkout/cart view.
image missing https://cdn.pbrd.co/images/H5Bt774.png
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
Ok I get it, sorry I misunderstood your needs, Mohamed was right you have to edit your view checkout/cart view.
image missing https://cdn.pbrd.co/images/H5Bt774.png
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: 8 years 9 months ago by Philip.
Please Log in or Create an account to join the conversation.
- CorneliaML
-
Topic Author
- Offline
Less
More
- Posts: 49
- Thank you received: 2
8 years 8 months ago #287152
by CorneliaML
Replied by CorneliaML on topic Show product incl. VAT
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 missing https://i.imgur.com/5SAdB8k.png
Image "Standard invoice"
image missing https://i.imgur.com/hfZaRdH.png
Best regards
Torsten
many thanks, you made my day
I now need to adjust the invoice as well as the subtotal is showing including VAT.
Image "PDF invoice"
image missing https://i.imgur.com/5SAdB8k.png
Image "Standard invoice"
image missing https://i.imgur.com/hfZaRdH.png
Best regards
Torsten
Please Log in or Create an account to join the conversation.
8 years 8 months ago #287161
by Philip
Replied by Philip on topic Show product incl. VAT
Hello,
That the same idea than previous, but this time for Order /show :
image missing https://cdn.pbrd.co/images/H5KZRyI.png
And for the plugin attach invoice, edite the invoice.php :
image missing https://cdn.pbrd.co/images/H5KZUih.png
Regards
That the same idea than previous, but this time for Order /show :
image missing https://cdn.pbrd.co/images/H5KZRyI.png
And for the plugin attach invoice, edite the invoice.php :
image missing https://cdn.pbrd.co/images/H5KZUih.png
Regards
The following user(s) said Thank You: CorneliaML
Please Log in or Create an account to join the conversation.
- CorneliaML
-
Topic Author
- Offline
Less
More
- Posts: 49
- Thank you received: 2
8 years 8 months ago #287304
by CorneliaML
Replied by CorneliaML on topic Show product incl. VAT
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
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: 1.110 seconds