Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping rate per product problem


Shockproof

Recommended Posts

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

Link to comment
Share on other sites

  • 1 month later...
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

 

I have the same problem but I don't have a clue how to handle it... perhaps I should repost.

Link to comment
Share on other sites

Change admin->configuration->shipping/packaging->Enter the maximum package weight you will ship....

 

to a non-zero number.

 

HTH

Tom

 

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..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...