Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    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.

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

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

    Default Re: Trouble Moving Cart to Sub Domain

    Simply a matter of removing zencart/ wherever it appears.

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

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    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.

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

    Default Re: Trouble Moving Cart to Sub Domain - SOLVED

    Thanks for your prompt responses and help.
    I found another resource which gave me a clue on how to solve this.
    I made a fresh installation, saved the two new configure files, then deleted the installation.
    I copied the relevant parts of the new config files containing the correct paths to the old config files.

    For reference here are the updated paths (maybe this will help solve this for someone else in the future);

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

    define('DIR_WS_CATALOG', '//');
    define('DIR_WS_HTTPS_CATALOG', '//');

    define('DIR_FS_CATALOG', '/path1/path2/path3/shop/');
    define('DIR_FS_SQL_CACHE', '/path1/path2/path3/shop/cache');


    This now works :) except for one minor unknown issue...
    I had a new admin theme set up but the admin section has somehow reverted back to the original zencart admin theme, even though all the files are the original ones in the new location.

    Anyway, I'll figure it our or re-instal the admin theme.

    Thanks again for your help.

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Trouble Moving Cart to Sub Domain - SOLVED

    Quote Originally Posted by webgear_aus View Post

    define('DIR_WS_CATALOG', '//');
    define('DIR_WS_HTTPS_CATALOG', '//');
    Part of your problem is the double // (in red) remove one so it looks like this


    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

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

    Default Re: Trouble Moving Cart to Root Folder

    Quote Originally Posted by stevesh View Post
    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.
    Thanks! That fixed the issue I was having. Looks like I'm all set. Thank you very much.

 

 

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

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