Vat calculation? Why is it on?

  • Posts: 94
  • Thank you received: 0
13 years 4 weeks ago #28646

How do i turn off VAT? My products should have no tax associated with them and for some reason when I go to my car it says USPS First Class Mail $2.18 ($2.17 excl VAT). Then in the car it says 2.18 for shipping and .01 for VAT? What is going on? I have no tax stuff turned on.

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 4 weeks ago #28650

See my shipping plugin post for more questions. There must be some sort of corruption in my system. Oh well.. At least its correct for now.

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 4 weeks ago #28651

I spoke too soon it is doing the same thing as above now. It calculates the shipping of 2 base price plus 5% then adds this odd VAT thing. Why?

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 4 weeks ago #28652

I've noticed that it happens particularly when I try and add this product Lileyka - metal with pin (large) and/or the one similar to it. It adds a VAT. It also messes up the cart and doesn't display new items after it correctly. Ideas?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 4 weeks ago #28661

If you get taxes for the shipping, you can deactivate that by not selecting a tax category in your shipping method options.

I don't see why new products wouldn't be added to the cart.
Maybe you have some cache turned on in your joomla configuration or the system cache plugin ?

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 4 weeks ago #28667

Ok there is no VAT turned on or any tax categories published or selected. It has something to do with adding certain products like the one I mentioned above. There is absolutely some sort of bug/error as its very easily reproducible each time. Thoughts?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 4 weeks ago #28681

Could you do a screenshot of the taxation listing in the menu System->Taxation ?
There is no reason that tax rules are applied if they are unpublished...

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 3 weeks ago #28829

I agree there is no reason. It is clear that the error happens with only a few products and this is one of them. If you go to my site and place an order with this product you will see the error. It also sometimes replaces this product with something else and even messes up the cart. What is going on? It also messes up with the small version of this product on my store. I will PM you a link to the purchase page for the two products so that you can see. Clearly there is a bug.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #28839

That comes apparently from a rounding issue when calculating the % shipping fee.
Could you change the line:
$rate->shipping_price = $rate->shipping_price + $price*$rate->shipping_params->shipping_percentage/100;

to:
$currencyClass = hikashop_get('class.currency');
$rate->shipping_price = round($rate->shipping_price + $price*$rate->shipping_params->shipping_percentage/100,$currencyClass->getRounding($rate->shipping_params->shipping_currency_id));

and try again ? That should round properly the shipping price and thus avoid the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 3 weeks ago #28840

Sure but where is this line located?

Also will this be fixed in future updates?

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #28861

Sorry, it was late :)
It's in the file plugins/hikashopshipping/manual.php
Yes, it will be added in next release.

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 3 weeks ago #28896

I changed the link to what you said and now I get the error: Parse error: syntax error, unexpected T_STRING in /home/plastu5/public_html/plugins/hikashopshipping/manual/manual.php on line 1

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 3 weeks ago #28900

Maybe you can upload what a correct version of that file should be here? I need this working as now my whole store is down as a result of that one line change.

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 3 weeks ago #28903

Ok nvm I fixed it by reloading the original and putting your fix in. HOWEVER this did not fix the shipping. It still only adds the 2 dollar flat rate but not the 5%. What is going on?

Last edit: 13 years 3 weeks ago by Mattlab.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #28929

Please try that code instead for the modification of the manual.php file:

$currencyClass = hikashop_get('class.currency');
$rates[$k]->shipping_price = round($rate->shipping_price + $price*$rate->shipping_params->shipping_percentage/100,$currencyClass->getRounding($rate->shipping_params->shipping_currency_id));

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 3 weeks ago #28950

Ok you won't believe this but I can reproduce this and it works. Your code above did not fix the problem - sort of. I went and created another shipping method in manual called Test. I then put in the 2 bucks and 5% to that and published it. This gave you the choice of either the test or the standard one. When I had both the test and manual one there it worked and was calculating shipping correctly for both options. Then when I disabled the test option it still calculated shipping correctly for the standard option. However, if I go and delete the test option then it begins incorrectly calculating shipping again and does not add the 5%.

What is going on? I can repeat this and it reproduces every time.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #28965

I just tried on your website and I got the shipping fee calculated properly. Maybe it's a problem of cache ?
Make sure that you logout/login before trying again.

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 3 weeks ago #28982

No - I know that it is working properly on my site. That is not my point. It is working properly for the wrong reason is what I am trying to say. Let me review and show you why this is a bug...

  1. Shipping was not calculating percents
  2. We implemented the code change
  3. Shipping was still not calculating percentsv
  4. I did some troubleshooting and found out why
  5. It turns out that the only way I could get it to work was create a SECOND shipping option called test, enable it, and set it virtual
  6. products, this then caused BOTH shipping options to calculate percents
  7. I further tested it by turning off this test shipping option and then it the "real" option still calculated shipping correctly
  8. Finally, I deleted the test option completely from the system and the "real" option stopped calculating shipping correctly again
  9. So as a last resort I put the test option back on and unpublished it but did not delete it and again everything works

Somehow it is not calculating shipping unless this other shipping option exists as well. There has to be a bug where some code is crossed for some reason.

Thoughts?

Last edit: 13 years 3 weeks ago by Mattlab.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #29006

Shipping methods, and even more so when they are unpublished, have no influence on the other ones.
I don't see why and how that would be the case.

Please Log in or Create an account to join the conversation.

  • Posts: 94
  • Thank you received: 0
13 years 3 weeks ago #29012

Neither do I ;) But you can log into my admin panel and see that this is reproducible every time.

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum