Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Warning: Division by zero in /includes/classes/shipping.php on line 94

    on my website when customer tries to check out, two errors comes:

    Warning: Division by zero in /includes/classes/shipping.php on line 94

    Warning: Division by zero in /includes/classes/shipping.php on line 95

    this is what is in my file on 94 and 95

    93 if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
    94 $shipping_num_boxes = 0; ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
    95 $shipping_weight = 0; $shipping_weight/$shipping_num_boxes;
    96 }


    Please let me know what i'm doing wrong?

    Thanks

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

    What do you have for the settings in Admin> Configuration> Shipping and Packaging?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

    http://gholiakhurd.com/shipping i have added the snap shot of the picture

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

    If your Maximum weight is 0 - you can not ship anything larger than that ...
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

    what should i put then?

  6. #6
    Join Date
    May 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Warning: Division by zero in /includes/classes/shipping.php on line 94

    i updated to 1. and it works great now.

    i also have another problem:

    I have a floating glass cart on my website and customers are complaining that when they add items to the cart and then go help customers or they go to lunch time and when they come back after 1 hour, cart goes empty. please help. i need my session to be like like 1 day or something.

 

 

Similar Threads

  1. v151 PHP Warning: Division by zero in public_html/store/includes/classes/c
    By lilly06 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 27 Sep 2013, 06:29 PM
  2. Replies: 11
    Last Post: 1 Feb 2013, 07:12 PM
  3. Warning: Division by zero in attributes_controller.php
    By Snicklefritz in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 12 May 2010, 04:19 PM
  4. division by zero warning on line 57 when setting up shipping rates
    By amacole in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 20 Feb 2008, 03:44 AM
  5. Replies: 3
    Last Post: 27 Jan 2007, 05:31 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