17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 66567 Views |
-
Tax Calculator on Ecommerce module

31 October 2008 at 3:27pm
Hey all,
Unsure if i should post this here.
When i enable the tax calculator for the e commerce module i get the following error
XML Parsing Error: junk after document element
Location: http://www.mysite.co.nz/ecommerce/
Line Number 2, Column 1:<b>Notice</b>: Undefined offset: 0 in <b>/var/www/html/am/ss/ecommerce/code/TaxCalculator.php</b> on line <b>53</b><br />
^All is what ive done is added this to mysite/_config.php:
// Set the tax calculation to be for NZ customers at 12.5% exclusive
// on the order price.
TaxCalculator::set_for_country("NZ", 0.125, "GST", "exclusive");if i remove it the price goes away.
can any one shed some light on why this is happening?
-
Re: Tax Calculator on Ecommerce module

31 October 2008 at 3:59pm
Hi bubaphex,
It looks like this is the Content Negotiator trying to be helpful.
Go to your mysite/_config.php file and add the following:
ContentNegotiator::disable();
Cheers,
Josh -
Re: Tax Calculator on Ecommerce module

31 October 2008 at 4:03pm
Thanks for the speedy reply Josh,
The XML error has gone now but has been replaced with
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 53
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 54
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 55
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 53
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 54
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 55
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 53
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 54
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 55
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 53
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 54
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 55
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 53
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 54
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 55
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 53
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 54
Notice: Undefined offset: 0 in /var/www/html/am/ss/ecommerce/code/TaxCalculator.php on line 55
-
Re: Tax Calculator on Ecommerce module

31 October 2008 at 4:12pm
No worries,
Try turning off PHP error reporting at the NOTICE level.
again in mysite/_config.php write the following
error_reporting(E_ALL ^ E_NOTICE);
(THANKS WILL)
-
Re: Tax Calculator on Ecommerce module

31 October 2008 at 4:44pm
thanks josh,
errors have all gone away but the gst isnt working any more. its not displaying at all.
-
Re: Tax Calculator on Ecommerce module

2 November 2008 at 7:36pm
All along you've been saying that there is an error at ecommerce/code/TaxCalculator.php on line 55
Have you looked at that line of code to see what the problem is?
The messages above are simply supressing the error message, not actually resolving any cause.
-
Re: Tax Calculator on Ecommerce module

3 November 2008 at 9:47am
this is what is found on those three lines
53 $this->rate = self::$rates_by_country[$country];
54 $this->name = self::$names_by_country[$country];
55 $this->excl = self::$excl_by_country[$country];
| 66567 Views | ||
|
Page:
1
|
Go to Top |



