Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi

 

I recently installed 'Shipping rate per product' mod. Everything seems ok until I hit the 'Delivery info page when I get the warning below:

 

Warning: Division by zero in D:\XXXX\XXXX\XXXX.com\XXXX\includes\classes\shipping.php on line 61

 

Warning: Division by zero in D:\XXXX\XXXX\XXXX.com\XXXX\includes\classes\shipping.php on line 62

 

These are the lines (60, 61, 62) from shipping.php where the problem is

 

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;
       }

any ideas or anyone had the same problem. :'( :'(

 

Cheers

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...