Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

what's wrong in my code


maury

Recommended Posts

Posted

Hi i have problems when newc ustomers register theirself on my website...the address does not appear ..

 

in create_accout.php i have :

 

.......

 

tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);

 

$address_id = tep_db_insert_id();

 

/*## WORKAROUND ##*/

$address_id=1;

 

tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'")

 

......

 

i think in these lines there is some mistakes..someone can help me...? ( sorry for my bad english)

 

thanks

 

Maury

Posted

try taking out this:

 

/*## WORKAROUND ##*/
$address_id=1;

 

then check if you can create a new account

Posted
try taking out this:

 

/*## WORKAROUND ##*/
$address_id=1;

 

then check if you can create a new account

 

 

THANKS ... Now it works..i'm not expert i hope tha t without that line i will have not other problems ;)

Archived

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

×
×
  • Create New...