Hi! How can I show the tax rate in the Product Details page?
Example: VAT: 15.00 %
I'm using Joomla 2.5.6 & VM 2.0.10
Thanks!
Hi,
same problem here.
How can I get the tax rate displayed. A displaying with an languagefile is not possible because i use different tax rates for my products.
Because tax rates are connected to categories, is it possible to proof if some of theese categories is set for the actual product?
And if its possible how does it work?
Best regards
Hi,
Anybody find a way to do this?
We have multiple tax rates on our products, and would like to show which tax rate is applied to each product, on the product-detail page.
Something like: Price : €25 (incl. 5.5% tax) instead of €25 incl. tax.
If anybody know the code to pick up the tax rate in the product-details page, I would love to know :)
Cheers ;)
Hello
You can do it like this
$tax = ShopFunctions::getTaxByID($product->product_tax_id);
echo $tax['calc_value'] ." ". $tax['calc_value_mathop'];
Thanx Valérie,
This led me to the following in productdetails/default_showprices.php, which does the trick for us!
$tax = $this->product->product_tax_id;
$taxpct = $this->product->prices['Tax'];
echo '(Taxes '.($taxpct[$tax][1] + 0).'% comprises)';
Cheers :)
Hello,
my own solution at this time was to count back the vat.
//VAT rate calculating
$nb = $this->product->prices['priceWithoutTax']; //net price
$mb = $this->product->prices['taxAmount']; //VAT value
$vat = $mb * 100/$nb;
if ($vat < 10) {
$resultvat = 7;
} else {
$resultvat = 19;
}
Please do
vmdebug('my taxes',$this->product->prices);
There you can see the used taxes