alizarin Posted July 7, 2010 Posted July 7, 2010 On checkout_confirmation.php, during checkout - the sales tax line is missing. Not just the label but the label and the number value... the whole line. Anybody have any insights into what might be causing this? This is a fresh install with a few addons including some that messed with state sales tax. Is this some simple setting in the admin I'm missing? Any particular files where the problem has to come from? I did track it down this far: In includes/classes/order_total.php in function process() this code: while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if ($GLOBALS[$class]->enabled) { $GLOBALS[$class]->output = array(); $GLOBALS[$class]->process(); print "<li>$class "; for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) { print "X"; if (tep_not_null($GLOBALS[$class]->output[$i]['title']) && tep_not_null($GLOBALS[$class]->output[$i]['text'])) { print "Y"; Outputs this # ot_subtotal XY # ot_tax # ot_shipping XY # ot_total XY which makes sense but I don't know OSC well enough to know what an empty $GLOBALS["ot_tax"] means.
chadcloman Posted July 7, 2010 Posted July 7, 2010 $GLOBALS['ot_tax'] is an object, as defined in catalog/includes/modules/order_total/ot_tax.php. If you look earlier in the order_total.php code, you'll see that $GLOBALS['ot_tax'] is created by the order_total class constructor. It appears that the process() function in ot_tax.php is not creating any output. This may be due to the state sales tax changes you mentioned. Check out Chad's News.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.