john56711 Posted April 17, 2009 Posted April 17, 2009 Averything works great, but the following occurred. After making a purchase and ended at the success page I get this in the header of the page visible to the customer. I checked the success file and this is correct as to the install guide. So why is it showing up on the page? // PWA BOF 2b //delete the temporary account $pwa_query = tep_db_query("select guest_account from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $pwa = tep_db_fetch_array($pwa_query); if ($pwa['guest_account'] == 1) { tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$customer_id . "'"); tep_session_unregister('guest_account'); tep_session_unregister('customer_id'); tep_session_unregister('customer_default_address_id'); tep_session_unregister('customer_first_name'); tep_session_unregister('customer_country_id'); tep_session_unregister('customer_zone_id'); tep_session_unregister('comments'); } // PWA EOF 2b ?>
germ Posted April 18, 2009 Posted April 18, 2009 Looks to me like you're missing an opening PHP tag: <?php somewhere just preceding that code. Without that it gets parsed as HTML. And since it isn't HTML it just shows up as text on the page. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.