Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2010
    Posts
    3
    Plugin Contributions
    0

    Default Fast & easy checkout error

    Using 1.3.9g
    Fresh Installed
    Stock install except for css JS loader.

    I've installed FEC using SQL patch and uploading / overwriting the required files.
    Also have made the edit in order_total.php that comes with this addon package.

    When hitting checkout I get a blank page.

    I've searched around and can't seem to find the same error in /cache:

    [24-Oct-2010 20:51:03] PHP Parse error: syntax error, unexpected '[' in /.../cart/includes/classes/order.php on line 1040


    Please help a learning developer get this to work!

    Thanks!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Fast & easy checkout error

    Quote Originally Posted by Axer View Post
    [24-Oct-2010 20:51:03] PHP Parse error: syntax error, unexpected '[' in /.../cart/includes/classes/order.php on line 1040
    Well, that's basically telling you something's wrong with the syntax in that file.
    And, since a fresh install of Zen Cart ships without that error, I recommend replacing that file with the original version.
    If you've installed an addon that replaces that file, then I suggest contacting the addon's author for specific help since it seems like a pretty obvious bug they should fix.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  3. #3
    Join Date
    Oct 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Fast & easy checkout error

    I installed the fast and easy checkout addon.

    Order.php is one of the modified files. If i replace it with the original file,I will lose its functionality. Here's what's around line 1040:

    Code:
        // send additional emails
        if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
          $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
          $html_msg['EXTRA_INFO'] = $extra_info['HTML'];
    
          // include authcode and transaction id in admin-copy of email
          if ($GLOBALS[$_SESSION['payment']]->auth_code || $GLOBALS[$_SESSION['payment']]->transaction_id) {
            $pmt_details = ($GLOBALS[$_SESSION['payment']]->auth_code != '' ? 'AuthCode: ' . $GLOBALS[$_SESSION['payment']]->auth_code . '  ' : '') . ($GLOBALS[$_SESSION['payment']]->transaction_id != '' ?  'TransID: ' . $GLOBALS[$_SESSION['payment']]->transaction_id : '') . "\n\n";
            $email_order = $pmt_details . $email_order;
            $html_msg['EMAIL_TEXT_HEADER'] = nl2br($pmt_details) . $html_msg['EMAIL_TEXT_HEADER'];
          }
    
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
          $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);
        }
        $this->notify('NOTIFY_ORDER_AFTER_SEND_ORDER_EMAIL', array($zf_insert_id, $email_order, $extra_info, $html_msg));
      }
    
    }
    ['shipping_method'] : 'n/a';
    
        if ($this->content_type != 'virtual') {
          $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
          EMAIL_SEPARATOR . "\n" .
          zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], 0, '', "\n") . "\n";
        }
    
        //addresses area: Billing
        $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
        EMAIL_SEPARATOR . "\n" .
        zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], 0, '', "\n") . "\n\n";
        $html_msg['ADDRESS_BILLING_TITLE']   = EMAIL_TEXT_BILLING_ADDRESS;
        $html_msg['ADDRESS_BILLING_DETAIL']  = zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, '', "<br />");

    Line 1040: ['shipping_method'] : 'n/a';

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Fast & easy checkout error

    Clearly a bug with that file in the addon
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

  5. #5
    Join Date
    Oct 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Fast & easy checkout error

    Yes clearly.. Do you have any experience or knowledge with/about this addon?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Fast & easy checkout error

    No, but there are several forum discussions about it. It would be best to post your question to that addon's main support thread, or as I said before, contact the author for specific help.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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.

 

 

Similar Threads

  1. v151 Ajax Fast & Easy Checkout
    By fsb4e in forum General Questions
    Replies: 1
    Last Post: 30 Jun 2014, 06:12 PM
  2. Fast & Easy Checkout... TITLE_PLEASE_SELECT?
    By jamezgreen in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 7 Aug 2012, 03:07 AM
  3. Fast & Easy Checkout not allowing customers with an account to checkout
    By zubenubi in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 6 Dec 2010, 10:45 PM
  4. Replies: 22
    Last Post: 12 Aug 2009, 06:29 PM
  5. Credit Card Error not shown to customer - Fast & Easy Checkout
    By brushwoodnursery in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 13 Feb 2009, 12:57 AM

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