Page 1 of 2 12 LastLast
Results 1 to 10 of 263

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Add Customers from admin addon

    Quote Originally Posted by epickz View Post
    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:
    PHP Code:
    $path $_SERVER['DOCUMENT_ROOT'] . '/' $files['name']; 
    with this:
    PHP Code:
    $path DIR_FS_ADMIN '/backups/' $files['name']; 
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  2. #2
    Join Date
    Dec 2007
    Location
    San Diego
    Posts
    2
    Plugin Contributions
    0

    Default Re: Add Customers from admin addon

    Worked like a charm. Thanks a lot. Great add-on.

  3. #3
    Join Date
    Jun 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: Add Customers from admin addon

    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.

  4. #4
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Add Customers from admin addon

    Edit admin/add_customers.php
    Find this section of code:
    PHP Code:
    zen_draw_pull_down_menu('entry_country_id'zen_get_countries(), $cInfo->entry_country_id
    and change it to this:
    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)) 
    where the '222' at the end is the country_id of your desired default country (222 = United Kingdom, 223 = United States)
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  5. #5
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Add Customers from admin addon

    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...

  6. #6
    Join Date
    Jun 2008
    Posts
    187
    Plugin Contributions
    0

    Default Re: Add Customers from admin addon

    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.

  7. #7
    Join Date
    Mar 2009
    Location
    Fremont, Wisconsin, United States
    Posts
    50
    Plugin Contributions
    1

    Default Re: Add Customers from admin addon

    This mod badly needs someone to implement many of the changes that are listed throughout this thread and make the updated version available for download. I just spent several hours trying to fix the broken parts. I have never done that so I don't know how but it definitely needs to be done.

  8. #8
    Join Date
    Dec 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Add Customers from admin addon

    This is such a great mod but if I cannot upload va csv it is pretty pointless and I was really praying that someone would be able to help me with this...
    [FONT="Arial"]Sam[/FONT]

  9. #9
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Add Customers from admin addon

    Quote Originally Posted by bunyip View Post
    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:
    PHP Code:
    $path $_SERVER['DOCUMENT_ROOT'] . '/' $files['name']; 
    with this:
    PHP Code:
    $path DIR_FS_ADMIN '/backups/' $files['name']; 
    This did not work for me. I still get the same error could not move file.

  10. #10
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default dead thread

    Whats going on with this thread?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. how do i install the add customers through admin addon
    By Matt Smith in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 12 Oct 2009, 11:46 AM
  2. Add customers from Admin addon error
    By 21zerogo in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 30 Jul 2009, 02:12 AM
  3. How do I set default country when using Add Customers via Admin addon?
    By Andy_GS in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Apr 2009, 09:40 AM
  4. Adding customers from admin side, without an addon?
    By dcb37ga in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Dec 2008, 05:22 AM
  5. Add customer from Admin addon
    By wireyourworld in forum Managing Customers and Orders
    Replies: 3
    Last Post: 4 Apr 2008, 05:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg