Shockproof Posted June 16, 2005 Posted June 16, 2005 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 Quote
endorfinized Posted July 28, 2005 Posted July 28, 2005 I recently installed 'Shipping rate per product' mod. Everything seems ok until I hit the 'Delivery info page when I get the warning below: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 <{POST_SNAPBACK}> I have the same problem but I don't have a clue how to handle it... perhaps I should repost. Quote
OceanRanch Posted July 28, 2005 Posted July 28, 2005 Change admin->configuration->shipping/packaging->Enter the maximum package weight you will ship.... to a non-zero number. HTH Tom Quote
endorfinized Posted July 28, 2005 Posted July 28, 2005 Change admin->configuration->shipping/packaging->Enter the maximum package weight you will ship.... to a non-zero number. HTH Tom <{POST_SNAPBACK}> HE HE HE.... Yeah I had to translate the German versian to figure it out..... the tranlator called it dispatch... I'm having another issue of no payment method showing up in the next screen now.. Quote
Recommended Posts
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.