Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Errors


Guest

Recommended Posts

Hi Get this error when on catalog/checkout_shipping.php

 

Warning: Division by zero in /home/virtual/site100/fst/var/www/html/catalog/includes/classes/shipping.php on line 61

 

Warning: Division by zero in /home/virtual/site100/fst/var/www/html/catalog/includes/classes/shipping.php on line 62

 

and get the other following error when clicking the next button.

 

Warning: Division by zero in /home/virtual/site100/fst/var/www/html/catalog/includes/classes/shipping.php on line 61

 

Warning: Division by zero in /home/virtual/site100/fst/var/www/html/catalog/includes/classes/shipping.php on line 62

 

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site100/fst/var/www/html/catalog/includes/classes/shipping.php:61) in /home/virtual/site100/fst/var/www/html/catalog/includes/functions/general.php on line 29

 

Any ideas why I have this problem?

Link to comment
Share on other sites

You have your Maximum shipping weight per carton set to '0'

No can do

 

this is the 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;

 

The total shipping weight exceeds the shipping max weight, because it is set at zero

you can't divide by zero. This shipping_max_weight should be set at or above the maximum weight you will ship in one carton...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...