Hi,
My clients was facing problem with PWA. Problem was after place order, all information saved in local computer, after a long period some other use that computer then all information are shown there. like, name, billing address, shipping address ...etc.
I have found a solutions for them.
Note: IF need any correction according to you. then correct that and inform me too.
---------------------------------------------
checkout_success.php
After :
tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . tep_db_input($customer_id) . "'");
tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where customer_id = '" . tep_db_input($customer_id) . "'");
tep_session_destroy();
Add :
tep_session_unregister('customer_id');
tep_session_unregister('customer_default_address_i d');
tep_session_unregister('customer_first_name');
// Eversun mod for sppc and qty price breaks
tep_session_unregister('sppc_customer_group_id');
tep_session_unregister('sppc_customer_group_show_t ax');
tep_session_unregister('sppc_customer_group_tax_ex empt');
// Eversun mod for sppc and qty price breaks
tep_session_unregister('customer_country_id');
tep_session_unregister('customer_zone_id');
tep_session_unregister('comments');
//ICW - logout -> unregister GIFT VOUCHER sessions - Thanks Fredrik
tep_session_unregister('gv_id');
tep_session_unregister('cc_id');
//ICW - logout -> unregister GIFT VOUCHER sessions - Thanks Fredrik
$cart->reset();
Note: This is not complete package.
Regards
Ravindra Singh
More...




LinkBack URL
About LinkBacks









Bookmarks