Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help please! error in shipping.php


artonsilk

Recommended Posts

Hello

I'm new to all this

I am getting error messages comming up on the checkout pages as follows

 

Warning: Division by zero in /usr/local/psa/home/vhosts/paula.alivewww.co.uk/httpdocs/osCommerce/includes/classes/shipping.php on line 61

 

Warning: Division by zero in /usr/local/psa/home/vhosts/paula.alivewww.co.uk/httpdocs/osCommerce/includes/classes/shipping.php on line 62

 

 

I am also getting tax added when I thought I have set it all to zero . . . . .

 

any thoughts . . . .anyone . . . . .please

artonsilk

Link to comment
Share on other sites

This is what I have for that area of code:

if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
$shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
$shipping_weight = $shipping_weight/$shipping_num_boxes;
}

Division by zero would happen if SHIPPING_MAX_WEIGHT was set to zero. Check Configuration->Shipping/Packaging and see if your "Enter the Maximum Package Weight you will ship" isn't set to zero.

 

Hope that helps!

programmer != graphic designer

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...