Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Product prices result - wrong Tax calculation ?

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6279

Hi,

See the attached for what I believe is a mistake with Tax calculation of the Product prices result line.
It is showing the total Tax for products & shipment - while it should only show the total Tax for products.
See the next link for what I believe is a correct Tax calculation: www.flexiblewebdesign.com/index.php?option=com_kunena&view=topic&catid=18&id=684&Itemid=234#2883

As far as I remember it was showing the correct amount on my site before applying Puremart.

Please advise.
Thanks - Drukman.
Attachments:
Last Edit: 10 years 7 months ago by drukman.
The topic has been locked.

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6293

Hi,

First of all our VM Template doesn't responsible for any calculation. It handles by the Virtuemart Core files. Our VM Template just shows them. It might confused you the way they look in the shopping cart page. But they are 100% correct. There is nothing wrong with the calculation.

In your screenshot:
- $42.17 is the TAX of Product(s)
- $449.98 is the subtotal of products + TAX of product(s)

- $2.73 is the TAX of shipping method
- $30.73 is the cost of shipping + TAX of shipping

- $480 is the total to pay (includes: product subtotal, product taxes, shipping cost, shipping tax or any discount is applicable etc..)



Attachment Pasted_Image_9_5_13_8_00_AM.png not found



Attachment Pasted_Image_9_5_13_8_06_AM.png not found



Regards.
The topic has been locked.

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6299

NO !

You wrote that "$42.71 is the TAX of Product(s)" - and this is wrong !
Actually $42.71 is the TOTAL TAX (Products + Shipment) and this is why it's a mistake to place it in the line you placed it.
PLEASE redo the math and see.

Attached is a simple example for a product that costs 100$.
Tax is 18%.
So TAX of Product(s) should have been 18$ BUT it shows 20.7$.
Why ? simply because it shows the total Tax (18$ + 2.7$ = 20.7$) - and this is wrong.

Drukman.
Attachments:
Last Edit: 10 years 7 months ago by drukman.
The topic has been locked.

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6308

Woww. Cograds!

You are absolutely correct. I just noticed that $42.17 includes TAX from both products and shipping.
I am going to take a look at it and try to come up with a better solution. It needs to be corrected.

But the good news is, this mistake doesn't effect the "bill total". So our clients didn't charge extra TAX to their customers which would have meant we are in trouble.

Regards.
Last Edit: 10 years 7 months ago by Support.
The topic has been locked.

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6310

This has been applied to template permanently. Again, this is a issue about display only. The final result total price remains untouched. It means, you didn't charge extra tax to your customers since you have been using PureMart with that condition. In facet, if you don't charge TAX for shipping, you don't need to apply this patch at all.

But here is the patch to fix this issue:

Open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/cart/default_pricelist.php

Look at the 425th line and find this line:
<td align="right"> <?php echo "<span  class='priceColor2'>" . $this->currencyDisplay->createPriceDiv ('billTaxAmount', '', $this->cart->pricesUnformatted['billTaxAmount'], FALSE) . "</span>" ?> </td>

replace it with this:
<td style="text-align:right;"><?php if (!$this->cart->cartData['taxRulesBill']) echo "<span  class='priceColor2'>".$this->currencyDisplay->createPriceDiv('billTaxAmount','', $this->cart->pricesUnformatted['billTaxAmount'] - $this->cart->pricesUnformatted['shipmentTax'] - $this->cart->pricesUnformatted['paymentTax'],false)."</span>"; ?> </td>


The results on different cases:
- For simplicity I made the TAX percentage is 10%
- The Price Without TAX price of "Hugo Boss Test4" is $410

Case 1: Tax per product

Attachment ScreenShot2013-09-05at10.52.11AM.png not found



Attachment ScreenShot2013-09-05at10.53.05AM.png not found





Case 2: Tax per bill

Attachment ScreenShot2013-09-05at10.53.26AM.png not found



Attachment ScreenShot2013-09-05at10.54.07AM.png not found




Case 3: No Tax at all

Attachment ScreenShot2013-09-05at10.54.38AM.png not found



Attachment ScreenShot2013-09-05at10.56.30AM.png not found

Last Edit: 10 years 7 months ago by Support.
The topic has been locked.

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6311

Ohhhh thanks !
Please consider the next further issues while looking at the attached (it's the price configuration I use).

I use this configuration (Before & After applying Puremart) since it allows me to show in the cart:
1. Price Inc tax & Tax for each product.
2. Total Inc Tax & Total Tax for the sum of products.
3. Shipment Inc Tax & Tax for shipment.
4. Total Inc Tax FOR ALL THE ABOVE & Total Tax for ALL THE ABOVE

Before applying Puremart:
Since I wanted to show only the "base-price" / "price before tax" at any other page, I changed the next VM2 core view files:
Recommended products view, Category view, Product view.

So basically on all pages, only one price was shown which is the "base-price" / "price before tax".
Yet, on the cart page ALL the above prices were shown since they were active behind the scenes & were only hidden from all views.

After applying Puremart:
Nothing was changed in the price configuration (same backend configuration is used & same view files that were changed by me & only were placed under the html folder).
All prices - Base Price, Price before Tax, Tax amount. - reappeared on all view pages:
Another small issue is that the text that used to appear before the price - Base Price, Price before Tax, Tax amount - doesn't show any more.

It is fine that Puremart s changing the view - after all this is why I bought it -)).
Yet I believe it is ignoring the configuration (again see the example above) & this is not what I want.

Please advise.
Thanks - Drukman.
Attachments:
Last Edit: 10 years 7 months ago by drukman.
The topic has been locked.

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6314

Hi,

That's correct we have played some price labeling and price appearing, just to avoid confusion. Because so many people have asked "i am seeing double price in the frontend" why is that, simply because they enable all options in the Backend. We got sick of tired answering this question and decided to ignore the backend parameters for price displaying. But also some modification was needed in order to have line-through for the old price in case of any different discount situations (overwrite price or discount rule)

I read your message like 3 times, but i don't still couldn't figured out what you "really" what to show and what to hide in different pages. Why don't you summaries your needs. List me something like:

1- first of all tell me what TAX rule you are using (Tax per product or TAX per bill)

2- then list me the pages by which price you want to show, something like:

Browse page:
- Show only Price without TAX (including the price label)

Product details page:
- Show only Price without TAX (including the price label)

Shopping cart page:
- Show all price that's selected in the VM Configuration

Then provide me your Joomla (super) Admin account to This email address is being protected from spambots. You need JavaScript enabled to view it. to make those changes for you.
(While emailing to This email address is being protected from spambots. You need JavaScript enabled to view it. Don't forget to include this forum topic's URL at the of your message to avoid the confusion in our end.)

Regards,
Support & Development
Last Edit: 10 years 7 months ago by Support.
The topic has been locked.

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6324

Hi,

1. I use Tax per product.

2. Product details page / Category page / Home page (Featured / Top ten / Recent / Latest) - ALL will look the same showing:

- Price without TAX - including the price label.

- Price without TAX (line-through) and the Override Price without TAX , in case of a discount - including the price label for both.

3. Shopping cart page (same as the attached Clip0002.jpg - NO NEED TO CHANGE MY CURRENT CONFIGURATION) :

- Each product will show the Price without TAX, Price Inc Tax, Tax amount
- Total of all products Inc Tax, Total Tax amount
- Shipment price Inc Tax, Tax amount for shipment
- Total Inc Tax

I will provide my Joomla (super) Admin account to This email address is being protected from spambots. You need JavaScript enabled to view it.
I will include this forum topic's URL at my message to avoid confusion

Thanks - Drukman.
Attachments:
Last Edit: 10 years 7 months ago by drukman.
The topic has been locked.

Product prices result - wrong Tax calculation ? 10 years 7 months ago #6334

This case will be solved through emailing.
This topic can be closed and marked as "solved" for clearance.

Regards.
Support.
The topic has been locked.
Time to create page: 0.139 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo