Forums / General Questions / Setting Zencart to Main Directory

Setting Zencart to Main Directory

Locked

Views: 751

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
26 Jun 2009, 1:49 PM
#1
luisc23 avatar

luisc23

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

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 (https://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 (https://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.

26 Jun 2009, 2:50 PM
#2
luisc23 avatar

luisc23

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

Re: Setting Zencart to Main Directory

Any help please. :(

26 Jun 2009, 3:31 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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/" />

26 Jun 2009, 4:02 PM
#4
luisc23 avatar

luisc23

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

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/');
26 Jun 2009, 4:03 PM
#5
luisc23 avatar

luisc23

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

Re: Setting Zencart to Main Directory

any thoughts?

26 Jun 2009, 4:19 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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

26 Jun 2009, 5:06 PM
#7
luisc23 avatar

luisc23

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

Re: Setting Zencart to Main Directory

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

26 Jun 2009, 5:43 PM
#8
luisc23 avatar

luisc23

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

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?