Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

what is Division by zero


nihanshe

Recommended Posts

I have this error Division by zero when people go to the checkout' is there anywhere I can find how to fix this I dont know any php programing at all?

the error warning has told me that the error is on line 61 and 62 but I dont know where I have to edit if I have to edit at all I just dont know. Ihave search around the knowledge base pages but with no luck

 

($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;

}

 

 

http://www.turnedwood.co.uk/catalog/checko...2def4e2e080aa9d

 

Be relay great if somone point me in the right direction.

regards Mervyn

Link to comment
Share on other sites

Division by 0 is an illegal operation. The error is saying the code is trying to perform such an operation. Take a look at the setting in admin->Configuration->Shipping/Packaging that says "Enter the Maximum Package Weight you will ship." If it is set to 0, change it to some higher number.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...