Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Location
    Miami, FL
    Posts
    32
    Plugin Contributions
    0

    Default Shipping Module Error

    Hi all,

    I'm getting this error when proceeding to check out:


    Warning: Division by zero in /nfs/c03/h02/mnt/52396/domains/store.islandcargosystems.com/html/includes/classes/shipping.php on line 187

    Warning: Division by zero in /nfs/c03/h02/mnt/52396/domains/store.islandcargosystems.com/html/includes/classes/shipping.php on line 189

    I got the same error some time ago, but figured out that I was adding too many items to the cart (added 500 by accident while testing). Curently I'm only accepting COD/Money Order/Checks.

    Any help is appreciated.

    Thanks

  2. #2
    Join Date
    Nov 2008
    Location
    Miami, FL
    Posts
    32
    Plugin Contributions
    0

    Default Re: Shipping Module Error

    I seem to answer all my questions ;)

    Figured out why this was happening. After I checked to include shipping weight at the time of check out this started happening. I think it is because I was using the abbreviation (LBS) after the weight in the product descriptions.

    Thanks

  3. #3
    Join Date
    Nov 2008
    Location
    Miami, FL
    Posts
    32
    Plugin Contributions
    0

    Default Re: Shipping Module Error

    Back to having the same issue. Anybody know what is the problem?

    I do not need to add shipping method because we are the shippers. We only ship to the Bahamas. I do not need to add weight either.

    Please help.

    Thanks

  4. #4
    Join Date
    Nov 2008
    Location
    Miami, FL
    Posts
    32
    Plugin Contributions
    0

    Default Re: Shipping Module Error

    Any clues? Anybody...

    This is the error:

    Warning: Division by zero in /nfs/c03/h02/mnt/52396/domains/store.islandcargosystems.com/html/includes/classes/shipping.php on line 187

    Warning: Division by zero in /nfs/c03/h02/mnt/52396/domains/store.islandcargosystems.com/html/includes/classes/shipping.php on line 189

    When you try to checkout at my site http://store.islandcargosystems.com thats the error.

    So annoying not to be able to figure it out. errrrrrrr

  5. #5
    Join Date
    Nov 2008
    Location
    Miami, FL
    Posts
    32
    Plugin Contributions
    0

    Default Re: Shipping Module Error

    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;

    }


    Copy of the PHP code.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Shipping Module Error

    You need to change the SHIPPING_MAX_WEIGHT value which is in the Configuration ... Shipping/Packaging ... to more than 0 ... the default is 50 ...

    Division by 0 will get you every time ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. shipping module error
    By snow-man in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 5 Sep 2008, 08:13 AM
  2. Shipping module error
    By snow-man in forum General Questions
    Replies: 1
    Last Post: 4 Sep 2008, 10:20 PM
  3. Shipping Module error ?
    By kevinmc3 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 27 Nov 2007, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg