- Posts: 66
- Thank you received: 1
Display vat
- Webmediacontent
-
Topic Author
- Offline
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 2.5.18
-- PHP version -- : 5.3
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message
Hello
I need a different display for the vat in the shop.
There are several vat rates.
8.0% and 2.5%
The price must be displayed anywhere as follows:
CHF 8.75 (incl. 8% VAT)
or
CHF 8.75 (incl. 2.5% vat)
Why is HikaShop with such a problem?
Best Regards
Adrian
Please Log in or Create an account to join the conversation.
There is no option to display the tax rate next to the prices.
You would have to edit the file "listing_price" of the view "product" via the menu Display>views and add such line at the end:
Please Log in or Create an account to join the conversation.
- Webmediacontent
-
Topic Author
- Offline
- Posts: 66
- Thank you received: 1
Unfortunately for me the VAT is not displayed.
Part of the message is hidden for the guests. Please log in or register to see it.
Here are some screenshots.
Part of the message is hidden for the guests. Please log in or register to see it.
Please Log in or Create an account to join the conversation.
It should be the case and you will just have to use the right variable name.
Please Log in or Create an account to join the conversation.
- Posts: 23
- Thank you received: 1
I tried this in all way and I get nothing returned
<?php
ob_start();
var_dump($this->row->prices[0]);
$result = ob_get_clean();
?>
Could you please help??
Thanks
Please Log in or Create an account to join the conversation.
<?php
var_dump($this->row->prices[0]);
?>
instead will.
Actually, the code is a bit more complex:
Please Log in or Create an account to join the conversation.
- Posts: 23
- Thank you received: 1
Your last code didn't work
The parameter and value are correct as well as the variable name in your code, but nothing shows up still.
Any ideas?
Please Log in or Create an account to join the conversation.
- Webmediacontent
-
Topic Author
- Offline
- Posts: 66
- Thank you received: 1
Please Log in or Create an account to join the conversation.
In that case, it means that either you didn't add it to the correct listing_price (there is also one for the checkout view while I told you to do it for the product view), or not for the correct template (if you do the change for another template than the one you're using on your frontend, you won't see any change.
Looking at your var_dump, it should definitely work with the code I gave.
Please Log in or Create an account to join the conversation.
- Webmediacontent
-
Topic Author
- Offline
- Posts: 66
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- Posts: 23
- Thank you received: 1
I thought the same after looking at the dump but something is missing and I can't see what.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 23
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- Webmediacontent
-
Topic Author
- Offline
- Posts: 66
- Thank you received: 1
Please Log in or Create an account to join the conversation.