mattmar Posted December 8, 2009 Posted December 8, 2009 Hello , I have a few files in .xls format including all of my former website DB it includes only email names i wanted to know how can i upload it to my new website DB so when i send out newsletters it will go them also. Thanks !!
npn2531 Posted December 8, 2009 Posted December 8, 2009 Yes, you can upload only email addresses to the database and OSCommerce will mail to them along with the rest of your customers. First convert your xml to a simple text file. I am assuming this will result in your file then being nothing more that email addresses separated by either a space or preferably a comma. Then 'simply' import that list into customers.customers_email_address. I use phpMyAdmin which is in my website control panel (not the OSCommerce admin). I don't do much importing and cannot quite remember the procedure. Normally I import into a table that has no data and that is easy, but I cannot remember how to use phpMyAdmin to 'append' data (add your emails to the emails that are there). But you are really doing something that is basic and done all the time. Perhaps someone else can pick it up from here. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
mattmar Posted December 9, 2009 Author Posted December 9, 2009 Thanks for your help i am also using cpanel , i know its pretty basic i just dont wanna take any chances with my DB. Perhaps someone else can give me detail instructions ?
mattmar Posted December 10, 2009 Author Posted December 10, 2009 Thanks for your help i am also using cpanel , i know its pretty basic i just dont wanna take any chances with my DB. Perhaps someone else can give me detail instructions ? any 1 ????????
Xpajun Posted December 11, 2009 Posted December 11, 2009 Not sure on this one yes you can import the email addresses as above but the table will be looking for 10 other fields to be filled as well, so your query should look something like this: INSERT INTO `customers` VALUES ('', '', '', '', '', '[email protected]', '', '', '', '', ''); But I'm not sure what effect just putting in a email will have on other related tables, and in addition if that email holder then tries to create an account or make a purchase they will have problems because their email is already listed My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
npn2531 Posted December 11, 2009 Posted December 11, 2009 Not sure on this one yes you can import the email addresses as above but the table will be looking for 10 other fields to be filled as well, so your query should look something like this: INSERT INTO `customers` VALUES ('', '', '', '', '', '[email protected]', '', '', '', '', ''); But I'm not sure what effect just putting in a email will have on other related tables, and in addition if that email holder then tries to create an account or make a purchase they will have problems because their email is already listed Xpagun, I'm not sure but I believe you can specify the field in the SQL query, which would avoid the awkward use of the empty single quotes. In any case I have a database with a few thousand normally entered names and a few thousand entries with nothing but an email. Yes, if those folks tried to enter the email they would get an error msg that their email was already listed. However, the 'lost password' system will send them a password that will work- even when the database doesn't initially have a password for that email- and they can go to their account page, which will have nothing in it, but their email. When the try to click pass their account page, the account page gives them the error msgs that they are missing all that account info. To make a long story short, it will technically work to enter only an email address. Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
Xpajun Posted December 11, 2009 Posted December 11, 2009 Xpagun, I'm not sure but I believe you can specify the field in the SQL query, which would avoid the awkward use of the empty single quotes. In any case I have a database with a few thousand normally entered names and a few thousand entries with nothing but an email. Yes, if those folks tried to enter the email they would get an error msg that their email was already listed. However, the 'lost password' system will send them a password that will work- even when the database doesn't initially have a password for that email- and they can go to their account page, which will have nothing in it, but their email. When the try to click pass their account page, the account page gives them the error msgs that they are missing all that account info. To make a long story short, it will technically work to enter only an email address. Actually you probably could but I'd have to play to find out :rolleyes: probably something alone the lines of: INSERT INTO `customers,customers_email_address` VALUES ('[email protected]'); but I'm not really sure - you might also be able to do it so that you only have to have the csv emails and not the INSERT... on each one - google sql rules could give one the answer ;) And thanks for clarifying the already registered bit My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
Recommended Posts
Archived
This topic is now archived and is closed to further replies.