Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2007
    Posts
    26
    Plugin Contributions
    0

    Default Changing the downloads folder location

    So I'm running the newest version. I have my downloads (thousands of them) in a different directory than the downloads folder. I need to tell zen cart where to find these files. I've done this before in older versions, however, the new config files look different than the instructions that are given.

    This is what is says to do-

    You’ll need to edit the line that says this:

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    to look something like this:

    define('DIR_FS_DOWNLOAD', '/home/my_user_name/download/');


    However, this is what it looks like in the config files

    define('DIR_FS_DOWNLOAD' ...

    I tried using the above method but it didn't work. Is there another workaround that I just can't figure out? Any help would be appreciated!

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    7,518
    Plugin Contributions
    8

    Default Re: Changing the downloads folder location

    Have you taken a look at the docs and this article?

    https://docs.zen-cart.com/user/secur...wnload_folder/
    Did you read the posting tips?!?
    Responsive Color Changes for 155-156c demo here.
    Zen Cart PCI Compatible Hosting

  3. #3
    Join Date
    Dec 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: Changing the downloads folder location

    Quote Originally Posted by dbltoe View Post
    Have you taken a look at the docs and this article?

    https://docs.zen-cart.com/user/secur...wnload_folder/
    Yes I have. That is where I got the directions that I copied and pasted in my original thread. The config files no longer look like the instructions given and I can't get it to work with those directions.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,319
    Plugin Contributions
    99

    Default Re: Changing the downloads folder location

    The line that sets DIR_FS_DOWNLOAD is no longer included - you have to ADD it to your configure files.

    I'll get this fixed in the doc soon.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,643
    Plugin Contributions
    3

    Default Re: Changing the downloads folder location

    Quote Originally Posted by KarenLR View Post
    So I'm running the newest version. I have my downloads (thousands of them) in a different directory than the downloads folder. I need to tell zen cart where to find these files. I've done this before in older versions, however, the new config files look different than the instructions that are given.

    This is what is says to do-

    You’ll need to edit the line that says this:

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    to look something like this:

    define('DIR_FS_DOWNLOAD', '/home/my_user_name/download/');


    However, this is what it looks like in the config files

    define('DIR_FS_DOWNLOAD' ...

    I tried using the above method but it didn't work. Is there another workaround that I just can't figure out? Any help would be appreciated!
    in fact in the config it looks like this:

    PHP Code:
    // define('DIR_FS_DOWNLOAD' ... 
    very different from what you posted.

    it is safe to ignore that line, and you add your line, anywhere in the configure.php file like so:

    PHP Code:
    define('DIR_FS_DOWNLOAD''/home/my_user_name/download/'); 
    and you should be fine.
    practice #socialdistancing #staysafe
    email is hard....
    help out with the green....

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,319
    Plugin Contributions
    99

    Default Re: Changing the downloads folder location

    She was quoting from the doc which hadn't been updated with the 1.5.5 changes.
    The documentation is now up to date.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

  7. #7
    Join Date
    Dec 2007
    Posts
    26
    Plugin Contributions
    0

    Default Re: Changing the downloads folder location

    Thanks everyone! I'll add the line.

 

 

Similar Threads

  1. Setting up downloads Above the Root folder
    By dharrison in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Jul 2011, 02:29 PM
  2. Securing the Downloads Folder
    By ScriptJunkie in forum General Questions
    Replies: 3
    Last Post: 16 Mar 2011, 05:17 PM
  3. Error changing downloads folder location
    By jedpak in forum General Questions
    Replies: 3
    Last Post: 23 Sep 2010, 09:58 PM
  4. Changing download folder location
    By anitalee in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 29 Jul 2006, 04:05 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR