Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error on checkout_shipping.php


xwilsonx

Recommended Posts

Posted

i get these 2 errors on top of the page:

Warning: Division by zero in /home/gmistake/public_html/catalog/includes/classes/shipping.php on line 61

Warning: Division by zero in /home/gmistake/public_html/catalog/includes/classes/shipping.php on line 62

 

i believe those 2 lines are:

 $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
	  $shipping_weight = $shipping_weight/$shipping_num_boxes;

 

whats up?

 

the product i was trying to buy has an assigned weight, so i dont get it.

The USPS shipping prices come up as all $0.00 in check out.

  • 4 years later...
Posted

i get these 2 errors on top of the page:

Warning: Division by zero in /home/gmistake/public_html/catalog/includes/classes/shipping.php on line 61

Warning: Division by zero in /home/gmistake/public_html/catalog/includes/classes/shipping.php on line 62

 

i believe those 2 lines are:

 $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
	  $shipping_weight = $shipping_weight/$shipping_num_boxes;

 

whats up?

 

the product i was trying to buy has an assigned weight, so i dont get it.

The USPS shipping prices come up as all $0.00 in check out.

 

I GET THE SAME ERROR NOT SURE WHAT TO DO. NEW TO OSC AND TRYING TO GET USPS WORK. ALL IN PRODUCTION MODE

Posted

Go to Admin -> Configuration -> Shipping/Packaging ->Enter the Maximum Package Weight you will ship

 

Make sure that is NOT Zero.

  • 2 weeks later...
Posted

Go to Admin -> Configuration -> Shipping/Packaging ->Enter the Maximum Package Weight you will ship

 

Make sure that is NOT Zero.

 

it worked like a charm thank you bud 'java'

Archived

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

×
×
  • Create New...