News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Show Tax Rate

Started by Gab, September 09, 2012, 02:50:42 AM

Previous topic - Next topic

Gab

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!

be

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

Henrik Holm Nielsen

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 ;)
/Zorroson :)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Billigt og professionelt design af din hjemmeside | Brug for en billig, flot og professionel hjemmeside?

alatak

Hello
You can do it like this

$tax = ShopFunctions::getTaxByID($product->product_tax_id);
echo $tax['calc_value']  ." ". $tax['calc_value_mathop'];

Henrik Holm Nielsen

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 :)
/Zorroson :)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Billigt og professionelt design af din hjemmeside | Brug for en billig, flot og professionel hjemmeside?

be

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;
}

Milbo

Please do

vmdebug('my taxes',$this->product->prices);

There you can see the used taxes
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/