Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Division by 0 in shipping php????


KASR

Recommended Posts

I am getting this error at the top of my delivery confirmation page

 

Warning: Division by zero in /home2/pantzsxs/public_html/catalog/includes/classes/shipping.php on line 55



Warning: Division by zero in /home2/pantzsxs/public_html/catalog/includes/classes/shipping.php on line 56

 

I go to line 54 thru 57 of my shipping.php and here is what it says:

 

        if ($total_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes

         $shipping_num_boxes = ceil($total_weight/SHIPPING_MAX_WEIGHT);

         $shipping_weight = $total_weight/$shipping_num_boxes;

       }

 

I have gone to MyPhpAdmin and changed all my product weights to 1.00 which solved a free shipping loop I was stick in, but now this is happening. Any ideas?

 

KASR

Link to comment
Share on other sites

Can someone please test it and see if they get the same error:

 

go to www.panthervideostore.com

 

add something to the cart, buy it, and then go checkout. the first checkout screen is where it's popping up on my end. Anyone else getting it to????

 

KASR

Link to comment
Share on other sites

  • 1 month later...

I got all the way to the payment info but did not put in my credit card number to proceed. Everything seemed fine. Did you fix it? If so, I'd love to hear how. I'm having a similar problem on my site.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...