SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic Issue with 0% Tax 784987 Views

Issue with 0% Tax

8 April 2014 at 12:09pm Last edited: 8 April 2014 12:11pm

Hello,
we have to set up one tax option with 0%. This is needed for buyable coupons which must not have a tax rate. When I do this, I get an error on checkout:

This only appears with products at 0% tax (and I think if they are not together with other products with higher taxes).

For my purpose the following line (1892) is difficult:

"if ($taxRate > 0 && ..."

How could we work around this?

Re: Issue with 0% Tax

8 April 2014 at 3:03pm

Hi Frank,

seems like your issue is related to this issue

We'll check if this only happens in conjunction with the PDF Invoice Module.

Cheers
Ramon

Re: Issue with 0% Tax

8 April 2014 at 3:24pm

Hello Ramon,

Thank you very much. As you have seen, we use the PDF-Invoice module. This could be a hint.

Frank

Re: Issue with 0% Tax

10 April 2014 at 7:54pm Last edited: 10 April 2014 7:55pm

Hi Frank,

I just tested, reproduced and fixed this issue.

The fix will be available with our next release of SilverCart 1.3.11.

If you can't wait for that, you can fix it yourself by replacing the mentioned code

if ($taxRate > 0 &&

with

if ($taxRate == '') {
$taxRate = 0;
}
if ($taxRate >= 0 &&

inside
SilvercartOrder::getTaxRatesWithoutFees()
and
SilvercartOrder::getTaxRatesWithFees() <= twice

Best Regards
Sebastian

Re: Issue with 0% Tax

11 April 2014 at 5:11pm

Hi Sebastian,

Thank you very much, we were very near to your solution.

Greetings

Frank