just in reply to my previous message. I have followed 'danilyn22' and installed a previous mod and it works perfect now. So not sure about the latest download. thanks again for the mod.
just in reply to my previous message. I have followed 'danilyn22' and installed a previous mod and it works perfect now. So not sure about the latest download. thanks again for the mod.
Another problem has reared it head. Cant find an answer to this one either. I have installed 1.05 sussessfully, but it sends an email without the bit about the incentive code etc. hat do I have to do to enable this. I have tried putting in a legitimate code, but that doesnt work. thanks. :![]()
For version 1.06 it wasn't sending a welcome email when checked. I changed line # 420 in add_customers_backend.php in the admin folder from:
if($send_welcome == 1)
to
if($send_welcome == 'send')
And now it sends the welcome email successfully.
It did not cause the foreach error to go away though. Looking into it still. If I figure it out I will post an update.
Okay, I think I got it. In the add_customers_backend.php file in the admin folder at line #695 comment out the "$errors = false". So change this:
if (count($errors)) {
$cInfo = new objectInfo($_POST);
$processed = true;
} else {
$errors = false;
}
to this:
if (count($errors)) {
$cInfo = new objectInfo($_POST);
$processed = true;
} else {
//$errors = false;
}
ALSO in the add_customers.php file in the admin change line # 21 to: 'if (count($errors) < 1) {'
So From this:
if (count($errors) <= 1) {
insert_customer();
$feedback[] = 'Customer inserted successfully';
}
To This:
if (count($errors) < 1) {
insert_customer();
$feedback[] = 'Customer inserted successfully';
}
This will get rid of the foreach error and it will also prevent the customer from being added even when there was one error.
Last edited by christamcc; 4 Aug 2009 at 05:50 PM.
Ahmad Rahman
TRUST IT | web site design and development
mobile: 416.828.0224 | email: [email protected]
www.trustit.ca
For IT solutions how you want IT, when you want IT, TRUST IT.
Hello fellow zenners
Is this addon complete and functioning ? My products are due for a firm ware update and it would be handy if I could add my customers from outside Zencart to manage upgrades and product updates more effectively.
Cheers
Rian Herrick
www.buygopro.co.nz
I am also having trouble with the CSV import. I can select the file for import, but the page refreshes without any errors. Have tried both options (part and file) for importing. I was getting the "cannot move" file error, so I changed the file location as recommended a few posts back, but still no go.
I also did the above mentioned fixes to get the single customer entry working with welcome e-mail.
Any idea? I also use easypopulate on this server without any problems like this.
Thanks
Okay... well. I made some progress... I have been able to verify that the upload file does properly upload and get copied over the the correct temp folder.
NOW the problem seems to be with the CSV file. I was able to upload the included sample file correctly. BUT!
I am on Mac, using excel for mac and openoffice.org. When I edit this file, I start getting problems with no input. Also, the script doesn't like data to be enclose by quotes (the standard for export from openoffice).
Wouldn't this script work better using fgetcsv() ???
Any suggesting on what's up with mac/csv and this script?
-Thanks!