nihanshe Posted May 13, 2007 Share Posted May 13, 2007 My kindest regards in advance I have being try to install zipship mod which i think i have done and I want to install counties zones in the UK which I am working on but i have this error had a look at line 61 and 62 but it dont mean anything to me as php just go's over my head' or is there a setting within the admin panel that I have to do I realy need your help guys here is the information i have. Warning: Division by zero in /home/turnedwooduk/public_html/catalog/includes/classes/shipping.php on line 61 Warning: Division by zero in /home/turnedwooduk/public_html/catalog/includes/classes/shipping.php on line 62 here is the link page with the error http://www.turnedwood.co.uk/catalog/checko...2def4e2e080aa9d 44 function quote($method = '', $module = '') { global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes; $quotes_array = array(); if (is_array($this->modules)) { $shipping_quoted = ''; $shipping_num_boxes = 1; $shipping_weight = $total_weight; if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) { $shipping_weight = $shipping_weight+SHIPPING_BOX_WEIGHT; } else { $shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100); } 60 if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes 61 $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT); 62 $shipping_weight = $shipping_weight/$shipping_num_boxes; } $include_quotes = array(); reset($this->modules); while (list(, $value) = each($this->modules)) { $class = substr($value, 0, strrpos($value, '.')); if (tep_not_null($module)) { if ( ($module == $class) && ($GLOBALS[$class]->enabled) ) { $include_quotes[] = $class; } } elseif ($GLOBALS[$class]->enabled) { $include_quotes[] = $class; } } $size = sizeof($include_quotes); for ($i=0; $i<$size; $i++) { $quotes = $GLOBALS[$include_quotes[$i]]->quote($method); if (is_array($quotes)) $quotes_array[] = $quotes; } 84 } Mervyn Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.