I have installed everything and it works, with the exception of the csv upload. I get the following message "There were errors * Could not move file", any ideas. Please help![]()
I have installed everything and it works, with the exception of the csv upload. I get the following message "There were errors * Could not move file", any ideas. Please help![]()
It's possible that your server is configured to not allow or include the server variable $_SERVER['DOCUMENT_ROOT']
try replacing this line of code at line 26 of admin/add_customers_backend.php:
with this:PHP Code:$path = $_SERVER['DOCUMENT_ROOT'] . '/' . $files['name'];
PHP Code:$path = DIR_FS_ADMIN . '/backups/' . $files['name'];
Neville
An assumption is what you arrive at when you get tired of thinking...
Worked like a charm. Thanks a lot. Great add-on.![]()
Hey all,
Somone else asked this very question in this thread and didnt get an answer so i just want to the echo the question to get a response.
I want to set a default country when i use the add customer via admin.
Personally i want UK, but for others they may want wherever, so a generic response would be great.
regards
Andy.
Edit admin/add_customers.php
Find this section of code:
and change it to this:PHP Code:zen_draw_pull_down_menu('entry_country_id', zen_get_countries(), $cInfo->entry_country_id)
where the '222' at the end is the country_id of your desired default country (222 = United Kingdom, 223 = United States)PHP Code:zen_draw_pull_down_menu('entry_country_id', zen_get_countries(), (zen_not_null($cInfo->entry_country_id) ? $cInfo->entry_country_id : 222))
Neville
An assumption is what you arrive at when you get tired of thinking...
Alternatively, you could replace the 222 in the code suggested above to be SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY - that will set the default to whatever you have selected for the default account creation country at Admin > Configuration > Customer Details
Neville
An assumption is what you arrive at when you get tired of thinking...
Thanks Buny,
i used:
zen_draw_pull_down_menu('entry_country_id', zen_get_countries(), (zen_not_null($cInfo->entry_country_id) ? $cInfo->entry_country_id : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY ))
at first it didnt work but then i realised the code is on lines 793 and 798
thanks anyway for the quick reply :)
Andy.
Hello.
Is it possible to add nickname field to Add customer from admin.
Thank you.
Hello,
I installed the mod, and am able to add the customer almost completely successfully. The new customer shows up in the customer list and I am able to send an email afterwards in the customer list. But, on adding the customer and selecting "send welcome email", no email is sent, and an error
"Warning: Invalid argument supplied for foreach() in /home/storename/public_html/store/admin/add_customers.php on line 71
(my italics added for obfuscation)
Any ideas?
With thanks
Eastern