Thread: Checkout Error

Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Join Date
    Nov 2011
    Posts
    46
    Plugin Contributions
    0

    Default Checkout Error

    Hi

    I am fairly new to this and am not sure if this is the right place, please re-direct me if it is not

    I am just finishing up my cart and am testing the credit card processing. The system works properly including seeing the transaction approve and getting the order confirmation emails.

    My problem is that instead of getting the proper "checkout_success" notification, I get a white page with an error that says "Warning: an error occurred, please refresh the page and try again"

    If I refresh the page, it resends the information to be authorized and declines the second time because of a duplicate transaction.

    I can't figure out why the proper checkout_success page is not being shown

    any help would be greatly appreciated

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    19,282
    Plugin Contributions
    3

    Default Re: Checkout Error


  3. #3
    Join Date
    Nov 2011
    Posts
    46
    Plugin Contributions
    0

    Default Re: Checkout Error

    thank you for the way to start...i have found an error that is occurring but my PHP is very very limited

    Debug Error:

    [26-Apr-2012 10:37:46] PHP Warning: Division by zero in /hermes/bosweb25c/b1102/nf.bow-shop/public_html/secure/store/includes/classes/shipping.php on line 106
    [26-Apr-2012 10:37:46] PHP Warning: Division by zero in /hermes/bosweb25c/b1102/nf.bow-shop/public_html/secure/store/includes/classes/shipping.php on line 108

    Below is the code for the section indicated: 3rd line (106) and 5th line (108)

    if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
    // $shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
    $zc_boxes = zen_round(($shipping_weight/SHIPPING_MAX_WEIGHT), 2);
    $shipping_num_boxes = ceil($zc_boxes);
    $shipping_weight = $shipping_weight/$shipping_num_boxes;
    }
    }
    $this->notify('NOTIFY_SHIPPING_MODULE_CALCULATE_BOXES_AND_TARE');
    }

    function quote($method = '', $module = '', $calc_boxes_weight_tare = true) {
    $quotes_array = array();

    if ($calc_boxes_weight_tare) $this->calculate_boxes_weight_and_tare();



    Any help on how to fix this would be very much appreciated, thank you

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    19,282
    Plugin Contributions
    3

    Default Re: Checkout Error

    What do you have your maximum shipping weight set to ?

  5. #5
    Join Date
    Nov 2011
    Posts
    46
    Plugin Contributions
    0

    Default Re: Checkout Error

    Quote Originally Posted by stevesh View Post
    What do you have your maximum shipping weight set to ?
    It was set to "nothing" like blank

  6. #6
    Join Date
    Nov 2011
    Posts
    46
    Plugin Contributions
    0

    Default Re: Checkout Error

    I have now fixed the above errors with putting in a max shipping rate, not I get this error:


    [26-Apr-2012 13:17:39] PHP Warning: Invalid argument supplied for foreach() in /hermes/bosweb25c/b1102/nf.bow-shop/public_html/secure/store/includes/modules/pages/checkout_shipping/header_php.php on line 191

    Again I really have no idea how to fix this, since I really don't understand what the problem is

    thanks again for the help, I really appreciate it

  7. #7
    Join Date
    Nov 2011
    Posts
    46
    Plugin Contributions
    0

    Default Re: Checkout Error

    Quote Originally Posted by mike_m29 View Post
    I have now fixed the above errors with putting in a max shipping rate, not I get this error:


    [26-Apr-2012 13:17:39] PHP Warning: Invalid argument supplied for foreach() in /hermes/bosweb25c/b1102/nf.bow-shop/public_html/secure/store/includes/modules/pages/checkout_shipping/header_php.php on line 191

    Again I really have no idea how to fix this, since I really don't understand what the problem is

    thanks again for the help, I really appreciate it
    Sorry forgot to include the code:

    // get all available shipping quotes
    $quotes = $shipping_modules->quote();

    // check that the currently selected shipping method is still valid (in case a zone restriction has disabled it, etc)
    if (isset($_SESSION['shipping']) && $_SESSION['shipping'] != FALSE && $_SESSION['shipping'] != '') {
    $checklist = array();
    foreach ($quotes as $key=>$val) {
    foreach($val['methods'] as $key2=>$method) { --------------------------This is the code line indicated
    $checklist[] = $val['id'] . '_' . $method['id'];
    }
    }
    $checkval = (is_array($_SESSION['shipping']) ? $_SESSION['shipping']['id'] : $_SESSION['shipping']);
    if (!in_array($checkval, $checklist)) {
    $messageStack->add('checkout_shipping', ERROR_PLEASE_RESELECT_SHIPPING_METHOD, 'error');
    }
    }

  8. #8
    Join Date
    Jan 2004
    Posts
    59,806
    Blog Entries
    4
    Plugin Contributions
    133

    Default Re: Checkout Error

    What shipping and payment modules are you using?

    What settings would I have to change in my brand-new-fresh-install-and-uncustomized store to exactly recreate your symptoms on my store?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Nov 2011
    Posts
    46
    Plugin Contributions
    0

    Default Re: Checkout Error

    I am using the Canada Post Shipping Module

    - using 66 for Max weight
    - all my products have weights assigned to them
    - enable CP handling charge
    - tax basis:shipping
    - I have tax definitions setup for Canada and a free shipping definition for 1 product group
    - I have all the proper boxes and settings done with Canada Post

    I am not sure from there what else I can say

    I have tried going back to the original Classic template as I read this is a good idea to ensure pages are working, except when I switched, I couldn't access my page or admin section. I had posted a thread about this and did not receive any responses, I eventually switched it back to my current template andover_modern directly in the database.

  10. #10
    Join Date
    Jan 2004
    Posts
    59,806
    Blog Entries
    4
    Plugin Contributions
    133

    Default Re: Checkout Error

    Quote Originally Posted by mike_m29 View Post
    I have tried going back to the original Classic template as I read this is a good idea to ensure pages are working, except when I switched, I couldn't access my page or admin section.
    Assuming that your vague description of "I couldn't access" actually means "I got blank pages when trying to access", that's a very clear indication of having PHP errors which cause blank pages. Troubleshooting advice for that can be found at: http://tutorials.zen-cart.com/index.php?article=82
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 15 Feb 2012, 09:08 PM
  2. Replies: 3
    Last Post: 16 Feb 2010, 05:33 PM
  3. Replies: 11
    Last Post: 16 May 2009, 04:45 PM
  4. Go To Checkout Error - with Fast and Easy Checkout installed
    By RFree190 in forum General Questions
    Replies: 3
    Last Post: 10 Mar 2009, 07:08 AM
  5. Error with checkout.
    By koalabids in forum General Questions
    Replies: 3
    Last Post: 10 Aug 2008, 05:41 PM

Bookmarks

Posting Permissions

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