Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add customers address to customer table


Guest

Recommended Posts

Hi our there, I hope someone can help me a bit out here.

 

I would like the customer address that they register themself with, to be written also into the customer table. I have added the fields in the database, but is not good enough in php to write this insert-string myself.

 

Can anyone please help me out here? Or at lest give me a hint?

Link to comment
Share on other sites

ok... have you seen that query is correctly written or not?

 

before the query executed, echo the query like..

 

echo "select field1, field2..... from table1 ";exit;

 

then run the page you can see the query written on the browser.. copy this query and paste in mysql check it works or not.

Please take backup of your files before do changes suggested by me

Link to comment
Share on other sites

The customer address is stored in the address book table. If you add it to the customers table, you will lose, or confuse, the code since there can only be one entry in the customers table while the address book table can have any number.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...