Zen Cart Logo
Forums / General Questions / error in checkout

error in checkout

Locked

Views: 794

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
22 Feb 2008, 8:18 PM
#1
noneya99 avatar

noneya99

New Zenner

Join Date:
May 2004
Location:
Nathalie,Virginia
Posts:
78
Plugin Contributions:
0

error in checkout

I was making some changes and honestly not checking behind each one b/c they at the time appeared to be installing and working soomthly until i went to try to gift wrapping mod and as soon as I get to the checkout pages i get this at the top .. if anyone could help or tell me where to get rid of it I'd appreciate it

r .= "\n-----\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS) . "\n\n"; // include copyright $email_order .= "\n-----\n" . EMAIL_FOOTER_COPYRIGHT . "\n\n"; while (strstr($email_order, ' ')) $email_order = str_replace(' ', ' ', $email_order); $HTML_MSG['EMAIL_FIRST_NAME'] = $this->customer['firstname']; $HTML_MSG['EMAIL_LAST_NAME'] = $this->customer['lastname']; // $HTML_MSG['EMAIL_TEXT_HEADER'] = EMAIL_TEXT_HEADER; $HTML_MSG['EXTRA_INFO'] = ''; Zen_mail($this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id, $email_order, STORE_NAME, EMAIL_FROM, $HTML_MSG, 'checkout'); // 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']; if ($GLOBALS[$_SESSION['payment']]->auth_code || $GLOBALS[$_SESSION['payment']]->transaction_id) { $PMT_details = 'AuthCode: ' . $GLOBALS[$_SESSION['payment']]->auth_code . ' 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'); } } } ?>

the only mods I installed that I think should have affected this was the giftwrapping and the date reminder but the error doesn't reference either one that i can tell. the date reminder one i don't know if it is working or not I can't find it and there was a small error when i installed i have a thread in over at their support forum) the only other thing I could think of was for the gift wrapping in the readme file it said > Run the SQL script orders_wrap.SQL in phpMyAdmin. If you have used

a prefix in your database, modify orders_wrap.SQL to reflect this (e.g.
change "orders_giftwrap" to "Zen_orders_giftwrap" if your prefix is
"Zen_").

but it didn't say what all lines to edit so i only did this

DROP TABLE IF EXISTS avaava_orders_giftwrap;
CREATE TABLE avaava_orders_giftwrap(
  orders_giftwrap_id int(11) NOT NULL auto_increment,
  orders_products_id int(11) NOT NULL default '0', 
  orders_id int(11) NOT NULL default '0',
  wrap int(11) NOT NULL default '0',
  PRIMARY KEY  (orders_giftwrap_id),
  KEY idx_orders_id_orders_prod_id_giftwrap (orders_id,orders_products_id)
) TYPE=MyISAM;

should i have put the avaava in front of everything that said orders_giftwrap (like the orders_giftwrap_id

if you need to see the error the store is https://www.thebirthdaygiftstore.com and you can use my dummy customer to log in and see the error (don't worry no orders will be processed and you don't evenhave to get hat far to see the error) login
[email protected]
pw - pnrma7h

23 Feb 2008, 4:52 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: error in checkout

It seems as though your /includes/classes/order.php file didn't upload correctly or is damaged.
Re-uploading the file should help.

23 Feb 2008, 3:04 PM
#3
noneya99 avatar

noneya99

New Zenner

Join Date:
May 2004
Location:
Nathalie,Virginia
Posts:
78
Plugin Contributions:
0

Re: error in checkout

Thank you DrByte. that seems to have been the problem I reuploaded the same file and it worked not sure why or how the file messed up but Thank you for helping me to fix it.