Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PWA Working But Weird Message On Success Page


john56711

Recommended Posts

Posted

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 ?>

Posted

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 >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...