Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Setting Zencart to Main Directory

    Hello guys, I'm really in need of some help regarding the move of the zencart shop from a directory to the main (www.domain.com).

    I followed the steps on the guide to change the following files to the new directory:

    DIR_WS_CATALOG
    DIR_WS_HTTPS_CATALOG
    DIR_FS_CATALOG
    DIR_FS_SQL_CACHE
    DIR_WS_ADMIN (in admin)
    DIR_WS_HTTPS_ADMIN (in admin)
    DIR_FS_ADMIN (in admin)

    I got my admin page to work, but when it comes to my shop for some reason I enter the domain name (www.exeltronics.com) and the webpage displays but it does not seem to be reading the template files neither the images.

    Can someone please help me out.

    Thanks in advance.

  2. #2
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Setting Zencart to Main Directory

    Any help please.

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

    Default Re: Setting Zencart to Main Directory

    Can't tell you if it's the problem, but you have this in the source of the page, so you have something entered twice somewhere:

    <base href="http://exeltronics.comhttp://exeltronics.com/" />

  4. #4
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Setting Zencart to Main Directory

    I just touched the configure.php nothing else.

    This is the way my includes/configure.php looks:
    <?php
    /**
    * @package Configuration Settings circa 1.3.8
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://exeltronics.com');
    define('HTTPS_SERVER', 'https://exeltronics.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', 'http://exeltronics.com/');
    define('DIR_WS_HTTPS_CATALOG', 'http://exeltronics.com/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/hermes/web07/b2216/moo.exeltronics/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

  5. #5
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Setting Zencart to Main Directory

    any thoughts?

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

    Default Re: Setting Zencart to Main Directory

    These should read as so:

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


    if your site is in the root directory (as it is).

  7. #7
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Setting Zencart to Main Directory

    I just did that. Now when going to the www.exeltronics.com it comes up blank.

  8. #8
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: Setting Zencart to Main Directory

    Quick question is it possible to install zencart directly into the main site without having to install it on a directory?

 

 

Similar Threads

  1. v151 Setting locale in template-override directory
    By lat9 in forum Addon Language Packs
    Replies: 1
    Last Post: 23 Mar 2013, 11:56 PM
  2. Setting Zencart to main domain name
    By raymonster in forum General Questions
    Replies: 6
    Last Post: 1 Jul 2009, 06:39 PM
  3. Setting Zencart as Homepage when not installed in route directory?
    By Pnano in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jun 2008, 06:13 PM
  4. Using Zencart Info Outside of the zencart Directory
    By thisandthat in forum General Questions
    Replies: 6
    Last Post: 29 Dec 2007, 05:29 PM
  5. Moving Zencart from Subdirectory to Main Directory
    By Jaeca in forum General Questions
    Replies: 1
    Last Post: 5 Jul 2007, 07:30 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