Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Sep 2012
    Posts
    31
    Plugin Contributions
    0

    Default Trouble Moving Cart to Root Folder

    Hi all,

    I installed ZenCart via GoDaddy to a sub-folder (vinyl-stickers), and now that it is ready, want to move it to the root folder.

    I've Googled around and already read and followed this guide.

    I've copied the cart to root, but the links from the main page point to the old sub-folder. Removing the sub-folder from the server results in broken links. If I remove the sub-folder from the URL, the page is there, but all the links still point to the sub-folder.

    I've removed vinyl-stickers from the Session Directory in the admin panel. I've removed 'vinyl-stickers/' from the following lines n 'includes/configure.php':
    DIR_WS_CATALOG
    DIR_WS_HTTPS_CATALOG
    DIR_FS_CATALOG
    DIR_FS_SQL_CACHE

    In admin/includes/configure.php' however, I was unable to change the lines, because I don't know what to do to them:
    PHP Code:
    define('DIR_WS_ADMIN'preg_replace('#^' str_replace('-''\-'$p1) . '#'''dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_WS_HTTPS_ADMIN'preg_replace('#^' str_replace('-''\-'$p2) . '#'''dirname($_SERVER['SCRIPT_NAME'])) . '/');
    define('DIR_FS_ADMIN'realpath(dirname(__FILE__) . '/../') . '/'); 
    I did, however change the following lines to remove 'vinyl-stickers'
    PHP Code:
    define('DIR_FS_SQL_CACHE''/home/content/80/5493880/html/vinyl-stickers/cache');
    define('DIR_FS_CATALOG''/home/content/80/5493880/html/vinyl-stickers/');
    define('DIR_WS_HTTPS_CATALOG''/vinyl-stickers/'); 
    it now looks like this:
    PHP Code:
    define('DIR_FS_SQL_CACHE''/home/content/80/5493880/html/cache');
    define('DIR_FS_CATALOG''/home/content/80/5493880/html/');
    define('DIR_WS_HTTPS_CATALOG''/'); 
    The website is http://www.anysigns.ca if you want to take a look for yourself.

    Thanks in advance,
    Alex

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Trouble Moving Cart to Root Folder

    I'm going to guess your changes to includes/configure.php didn't 'take'. Did you set the permissions of that file to writable before you uploaded the edited copy ?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Trouble Moving Cart to Root Folder

    1. The renaming is very simple. Just remove/rename all references to the old foldername.

    2. The instructions were originally written for v1.3.9. But since v1.5.0 they are even simpler. No need to touch those lines that you said looked confusing. ie: leave these alone: DIR_WS_ADMIN, DIR_WS_HTTPS_ADMIN,DIR_FS_ADMIN
    The instructions have been updated.

    3. You won't be able to upload your changes to the server successfully if you don't first make the file (on the server) writable. You said it's not working since you made the changes, but your symptoms demonstrate that your changes didn't actually get copied to your server successfully. That's mentioned in the same article.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Sep 2012
    Posts
    31
    Plugin Contributions
    0

    Default Re: Trouble Moving Cart to Root Folder

    That fixed my problem. Thank you for such a quick reply. :)

  5. #5
    Join Date
    Sep 2012
    Posts
    31
    Plugin Contributions
    0

    Default Re: Trouble Moving Cart to Root Folder

    Actually, the everything points to the right link except the contact page, which still points to the old sub-folder:S what may be the cause of that?

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Trouble Moving Cart to Root Folder

    Since the standard Classic template doesn't include that link, yours has been hard-coded in your template to point to the old URL. Use the Admin - Tools - Developers Tool Kit to search for vinyl-stickers.

  7. #7
    Join Date
    Mar 2011
    Posts
    13
    Plugin Contributions
    0

    Default Trouble Moving Cart to Sub Domain

    I am using v1.50 and everything was ok while developing the cart.
    Now I want to move from a sub-folder (Example: mydomain.com/zencart) to a sub-domain (Example: shop.mydomain.com)

    I understand the cache location needs to be updated under admin. and this was done.

    I know that at least 4 items (maybe 6?) need to be changed in both includes/configure.php and admin/includes/configure.php files but I can't seem to get the coding right.

    This is an example the original.

    define('HTTP_SERVER', 'http://www.mydomain.com');
    define('HTTPS_SERVER', 'https://www.mydomain.com');

    define('DIR_WS_CATALOG', '/zencart/');
    define('DIR_WS_HTTPS_CATALOG', '/zencart/');
    define('DIR_FS_CATALOG', '/path1/path2/path3/mydomain.com/zencart/');
    define('DIR_FS_SQL_CACHE', '/path1/path2/path3/mydomain/zencart/cache');



    I would appreciate a cut and paste version of the correct code to suit the new sub-domain location of shop.mydomain.com.

    Thanks in advance for the kind assistance of anyone ()that can help...

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Trouble Moving Cart to Sub Domain

    Simply a matter of removing zencart/ wherever it appears.

  9. #9
    Join Date
    Mar 2011
    Posts
    13
    Plugin Contributions
    0

    Default Re: Trouble Moving Cart to Sub Domain

    Thanks for your reply, but unfortunately that didn't work.

  10. #10
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Trouble Moving Cart to Sub Domain

    Has to work, really, but what happens after you make those changes ? A link to the site might let us spot something.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 23
    Last Post: 8 Oct 2014, 05:32 AM
  2. Moving upgrade to root folder
    By peedeefish in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 13 Jan 2011, 02:48 AM
  3. Problem moving folder from sub-root to root
    By andycowboy in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 28 Jul 2009, 02:15 AM
  4. Moving Zen Cart to root folder
    By trialsmom in forum General Questions
    Replies: 2
    Last Post: 2 Oct 2008, 10:12 PM
  5. Moving Zen Cart to my root folder
    By apotterdd in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Sep 2008, 04:30 AM

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