Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Setting home page

    Hi,

    My shop is at http://www.ampmgraphicsprint.com/shop/

    But I want the shop to appear when people type in ampmgraphicsprint.com

    How do I do this?

    I have just had a good read through the forum but can't find a clear answer.

    Any help would be great, thanks

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Setting home page

    The best way to do this is to move the Zen Cart files out of the /shop folder into the root and edit your admin/includes/configure.php and includes/configure.php files to point to the root directory instead of the /shop folder.

  3. #3
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Setting home page

    cant find those two files??

    what do I change it to?

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Setting home page

    Did you move all the folders and files to the root?

    The best way to edit those files is by using a good text editor like Crimson Editor or Notepad++. To do that, you'll have to FTP your files to your local computer (if you don't have them locally now), edit them and then FTP them back to your site.

    The admin/includes/configure.php file is just where I've indicated it is. When you edit it, you'll see something like
    Code:
    <?php
    //
    /**
     *
     * @package Configuration Settings
     * @copyright Copyright 2003-2006 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 "store" version of configure.php. ***********/
    /***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/
    
    // Define the webserver and path parameters
      // Main webserver: eg, http://localhost - should not be empty for productive servers
      // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
      // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
      // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      /* 
       * URLs for your site will be built via:  
       *     HTTP_SERVER plus DIR_WS_ADMIN or
       *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
       *     HTTP_SERVER plus DIR_WS_CATALOG or 
       *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
       * ...depending on your system configuration settings
       */
      define('HTTP_SERVER', 'http://www.mydomain.com');
      define('HTTPS_SERVER', 'https://www.mydomain.com');
      define('HTTP_CATALOG_SERVER', 'http://www.mydomain.com');
      define('HTTPS_CATALOG_SERVER', 'https://www.mydomain.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', '/shop/admin/');
      define('DIR_WS_CATALOG', '/shop/');
      define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/shop/');
    You want to change the information I highlighted in red to
    Code:
    // 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', '/');
    In includes/configure.php, find

    Code:
    // 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', '/shop/');
      define('DIR_WS_HTTPS_CATALOG', '/shop/');
    and change it to
    Code:
    // 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', '/');

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Setting home page

    Quote Originally Posted by pb4 View Post
    cant find those two files??

    what do I change it to?
    Be sure to have MOVED your zencart install into root folder,
    BEFORE you alter those two config files..otherwise your
    zencart store will not work.

  6. #6
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Setting home page

    I have now found the files on my ftp and changed them however I cant work out how to move all the files....

    I am using Filezilla

    any clues???

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Setting home page

    If you have CPanel as your webmaster panel, try using the file manager to move everything.

    Alternatively, you could download ALL the files and folders from /shop to your computer and then upload them again to the root. You could keep the /shop version as a test cart. You'll need to create a separate database for it, tho, and the configure.php files will have to point to /shop instead of the root.

  8. #8
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Setting home page

    I have changed the two files and moved the folders etc...but it isnt working

    What have I not done or done wrong??...its saying http 404 not found????

    These are the folders I have in the public folder of my site... (is that the right place for them??)!

    FOlders: images, shop, _files, admin, cahce, download, editors, email, extras, htmlarea, includes, install_shop, media, pub

    files: index.php, ipn_main_handler.php, nddbc.html, page_not_found.php, readme.txt
    Last edited by pb4; 3 Jan 2008 at 11:44 AM.

  9. #9
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Setting home page

    This is the text from one file
    Code:
    <?php
    //
    /**
     *
     * @package Configuration Settings
     * @copyright Copyright 2003-2006 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 "store" version of configure.php. ***********/
    /***************       The 2 files should be kept separate and not used to overwrite each other.      ***********/
    
    // Define the webserver and path parameters
      // Main webserver: eg, http://localhost - should not be empty for productive servers
      // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
      // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
      // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      /* 
       * URLs for your site will be built via:  
       *     HTTP_SERVER plus DIR_WS_ADMIN or
       *     HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
       *     HTTP_SERVER plus DIR_WS_CATALOG or 
       *     HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
       * ...depending on your system configuration settings
       */
      define('HTTP_SERVER', 'http://ampmgraphicsprint.com');
      define('HTTPS_SERVER', 'https://web91.secure-secure.co.uk');
      define('HTTP_CATALOG_SERVER', 'http://ampmgraphicsprint.com');
      define('HTTPS_CATALOG_SERVER', 'https://web91.secure-secure.co.uk');
    
      // 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_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/');
    
    // * 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_ADMIN', '/home/sites/ampmgraphicsprint.com/public_html/shop/admin/');
      define('DIR_FS_CATALOG', '/home/sites/ampmgraphicsprint.com/public_html/shop/');
    
      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/');
    
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', '');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'web91-a-zenc-22');
      define('DB_SERVER_PASSWORD', '******');
      define('DB_DATABASE', 'web91-a-zenc-22');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
    
      // The next 2 "defines" are for SQL cache support.
      // For SQL_CACHE_METHOD, you can select from:  none, database, or file
      // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
      // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
      // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
      define('SQL_CACHE_METHOD', 'none'); 
      define('DIR_FS_SQL_CACHE', '/home/sites/ampmgraphicsprint.com/public_html/shop/cache');
    
    ?>
    and this is the text from the other

    Code:
    <?php
    /**
     *
     * @package Configuration Settings
     * @copyright Copyright 2003-2006 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.yourdomain.com
      // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      define('HTTP_SERVER', 'http://ampmgraphicsprint.com');
      define('HTTPS_SERVER', 'https://web91.secure-secure.co.uk');
    
      // 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', '/');
    
    // * 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', '/home/sites/ampmgraphicsprint.com/public_html/shop/');
    
      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/');
    
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', '');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'web91-a-zenc-22');
      define('DB_SERVER_PASSWORD', '******');
      define('DB_DATABASE', 'web91-a-zenc-22');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage
    
      // The next 2 "defines" are for SQL cache support.
      // For SQL_CACHE_METHOD, you can select from:  none, database, or file
      // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
      // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
      // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
      define('SQL_CACHE_METHOD', 'none'); 
      define('DIR_FS_SQL_CACHE', '/home/sites/ampmgraphicsprint.com/public_html/shop/cache');
    
    ?>
    What have I done wrong?

    Still is not working
    Last edited by Kim; 3 Jan 2008 at 04:21 PM.

  10. #10
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Setting home page

    I changed the script back again and now it doesnt work on the /shop link

    Wish I hadnt bothered...why is this so tricky...??

    Dont most people want their shop to appear when they type in the main domain??

    Seems a lot of hassle to me to do a simple thing???

    Please help if you can...I may need step by step help on this now...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v152 Setting Home Page
    By Sachin1008 in forum Customization from the Admin
    Replies: 1
    Last Post: 23 May 2014, 06:20 PM
  2. Setting a slider ad as the 'home' ad.
    By ameliesattic in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Feb 2011, 03:42 AM
  3. home page text and footer do not show on home page
    By terrancesmith98 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Oct 2010, 01:45 AM
  4. Help connecting my flash home page to my shop home page...
    By BenhamCollectibles in forum General Questions
    Replies: 19
    Last Post: 8 Dec 2009, 09:36 PM
  5. Another request for a home page link to my real home page
    By thesoundsmith in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 19 Jun 2008, 09:46 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