Zen Cart Logo
Forums / All Other Contributions/Addons / Fast & easy checkout error

Fast & easy checkout error

Locked

Views: 1,101

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Oct 2010, 4:22 AM
#1
axer avatar

axer

New Zenner

Join Date:
Oct 2010
Posts:
3
Plugin Contributions:
0

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!

25 Oct 2010, 4:27 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Fast & easy checkout error

Axer:

[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.

25 Oct 2010, 5:13 AM
#3
axer avatar

axer

New Zenner

Join Date:
Oct 2010
Posts:
3
Plugin Contributions:
0

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:

    // 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';

25 Oct 2010, 6:01 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Fast & easy checkout error

Clearly a bug with that file in the addon

25 Oct 2010, 7:07 AM
#5
axer avatar

axer

New Zenner

Join Date:
Oct 2010
Posts:
3
Plugin Contributions:
0

Re: Fast & easy checkout error

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

25 Oct 2010, 5:22 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.