Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Trying to make Zencart homepage

Trying to make Zencart homepage

Locked

Views: 779

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Aug 2009, 1:38 AM
#1
gws76 avatar

gws76

Zen Follower

Join Date:
Apr 2007
Posts:
151
Plugin Contributions:
0

Trying to make Zencart homepage

I helping my friend with their website and I previously had the zencart shop at www.taboolingerieshop.com/zencart and now I'm trying to have the zencart shop at https://www.taboolingerieshop.com I've emptied the contents of the zencart folder into the root folder and edited the admin/includes/configure.php and includes/configure.php to reflex these changes but it's having trouble connecting to the database. Here is what my two configure files currently say.

ADMIN/INCLUDES

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

  // Use secure webserver for catalog module and/or admin areas?
  define('ENABLE_SSL_CATALOG', 'false');
  define('ENABLE_SSL_ADMIN', '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_ADMIN', '/admin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
  define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');



  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
```INCLUDES
```php
 // 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://taboolingerieshop.com');
  define('HTTPS_SERVER', 'https://taboolingerieshop.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', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');

  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', '/');
7 Aug 2009, 2:51 AM
#2
richardr avatar

richardr

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
34
Plugin Contributions:
0

Re: Trying to make Zencart homepage

I know that didn't work for me, I had to do a re-install to the correct directory, I just backed up my files to my own drive, backed up my sql file, re-installed to proper directory and then re-uploaded custom php files and restored my sql backup. Turned out to be easy as can be, done in less than 30 mins after backing up all files.

Just an idea,

7 Aug 2009, 3:05 AM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Trying to make Zencart homepage

I've moved Zen Carts from folders to the root a few times and never had a problem connecting to the database. Did you follow the instructions in the tutorial? https://www.zen-cart.com/tutorials/index.php?article=122

7 Aug 2009, 3:56 AM
#4
gws76 avatar

gws76

Zen Follower

Join Date:
Apr 2007
Posts:
151
Plugin Contributions:
0

Re: Trying to make Zencart homepage

We had just recently changed the database password and I forgot to change that in both configure.php files. I was in the process of doing a reinstall and it clicked when the new install asked for a password. I'm glad I didn't do a reinstall. Everything is working how it should.:clap: