Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    Default Error on Order Total

    Hello,

    Can someone please help me figure out how to fix this error? I'm receiving this erros:
    Warning: Division by zero in /home/annettes/public_html/includes/modules/order_total/ot_group_pricing.php on line 79

    On this webpage:
    https://myinetserver.com/~annettes/i...bbceba1e282fb0

    Your help is appreciated!
    Thanks,
    Annette
    www.annetteslingerie.com
    Annette
    www.annetteslingerie.com

  2. #2
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    Default Re: Error on Order Total

    Here is what I found in code regarding the division by zero. I'm not sure what to change it to. Can anyone help?

    'customer_id'] . "'");

    if ($group_query->fields['customers_group_pricing'] != '0') {

    $group_discount = $db->Execute("select group_name, group_percentage from " . TABLE_GROUP_PRICING . "

    where group_id = '" . (int)$group_query->fields['customers_group_pricing'] . "'");

    $gift_vouchers = $_SESSION['cart']->gv_only();

    $discount = ($order_total - $gift_vouchers) * $group_discount->fields['group_percentage'] / 100;

    $od_amount['total'] = round($discount, 2);

    $ratio = $od_amount['total']/$order_total;

    /**

    * when calculating the ratio add some insignificant values to stop divide by zero errors

    */
    Annette
    www.annetteslingerie.com

  3. #3
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

  4. #4
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    Default Re: Error on Order Total

    Thank you!
    Annette
    www.annetteslingerie.com

  5. #5
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Error on Order Total

    Your welcome but did this thread resolve your issue?

  6. #6
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    Default Re: Error on Order Total

    Hello,
    I finally had time to make this change. The above instructions did resolve that issue. The problem now is I'm receiving these parse errors when I make changes. When I open the .php files, make the change, and upload, the formatting messes up and the .php essentially becomes a continuous word wrap document with no hard returns. ? I'm receiving this error now:

    Parse error: syntax error, unexpected T_CLASS in /home/annettes/public_html/includes/modules/order_total/ot_group_pricing.php on line 8

    1) how do I correct this error? and 2) how do I correct the formatting problem when uploading the new .php?
    Annette
    www.annetteslingerie.com

  7. #7
    Join Date
    Jan 2011
    Location
    Newark, DE
    Posts
    69
    Plugin Contributions
    0

    red flag Re: Error on Order Total - Please Help Quickly

    With this latest error, we are unable to checkout orders. Help needed asap! Thanks!
    Annette
    www.annetteslingerie.com

 

 

Similar Threads

  1. error on order total
    By isiarj20 in forum Addon Language Packs
    Replies: 2
    Last Post: 20 Jan 2010, 03:42 PM
  2. Order Total error
    By mumzie in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 29 Aug 2009, 06:28 PM
  3. order total modules error
    By gabbytwin in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 Aug 2008, 12:48 PM
  4. order total fatal error
    By tonibarcelona in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 29 Mar 2007, 10:52 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