Thread: Shop copy

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Shop copy

    I am looking at doing a full image backup of my site together with it's database so that I can setup another site that looks the same but selling completely different products.

    What pages do I need to amend so that when I upload the database, with a different name etc, the site picks up the correct database?

    Is there anything else I need to change/do?

    I am trying to speed up the process of setting up another shop.
    Learning Fast.
    Eden Craft Supplies

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Shop copy

    Quote Originally Posted by adb34 View Post
    I am looking at doing a full image backup of my site together with it's database so that I can setup another site that looks the same but selling completely different products.

    What pages do I need to amend so that when I upload the database, with a different name etc, the site picks up the correct database?

    Is there anything else I need to change/do?

    I am trying to speed up the process of setting up another shop.
    It can be as simple as changing the configure.php files to point at the correct location and database..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Shop copy

    Quote Originally Posted by adb34 View Post
    I am looking at doing a full image backup of my site together with it's database so that I can setup another site that looks the same but selling completely different products.

    What pages do I need to amend so that when I upload the database, with a different name etc, the site picks up the correct database?

    Is there anything else I need to change/do?

    I am trying to speed up the process of setting up another shop.
    Quote Originally Posted by DivaVocals View Post
    It can be as simple as changing the configure.php files to point at the correct location and database..
    Assuming that as the site has been further modified that things like hard links have not been created to the current site, but instead relative/zen_href_link functionality used, or specific files loaded based on path information entered specifically on the page(s), but instead again ZC functions and code used to find the applicable file(s).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Shop copy

    Quote Originally Posted by mc12345678 View Post
    Assuming that as the site has been further modified that things like hard links have not been created to the current site, but instead relative/zen_href_link functionality used, or specific files loaded based on path information entered specifically on the page(s), but instead again ZC functions and code used to find the applicable file(s).
    Thanks guys. just could not think of the right files.
    Learning Fast.
    Eden Craft Supplies

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Shop copy

    Quote Originally Posted by DivaVocals View Post
    It can be as simple as changing the configure.php files to point at the correct location and database..
    Quote Originally Posted by mc12345678 View Post
    Assuming that as the site has been further modified that things like hard links have not been created to the current site, but instead relative/zen_href_link functionality used, or specific files loaded based on path information entered specifically on the page(s), but instead again ZC functions and code used to find the applicable file(s).
    Right.. but my original answer was based on the things we KNOW about Zen Cart, not everything we don't know (hard coded links and any other "unusual" modification would be in that unknown area). We KNOW that all things being equal that a change to the configure.php files (store side and admin) to point to the new location and database would be all that's minimally needed.. (and BTW, there is an FAQ which covers moving one's Zen Cart site..)
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Shop copy

    Quote Originally Posted by DivaVocals View Post
    It can be as simple as changing the configure.php files to point at the correct location and database..
    I have copied the site that I want to use in to another domain. I have changed both of the config files to the new domain and database. When I access the new domain the home page is OK, but all other links go to the copied site.
    Learning Fast.
    Eden Craft Supplies

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Shop copy

    Quote Originally Posted by adb34 View Post
    I have copied the site that I want to use in to another domain. I have changed both of the config files to the new domain and database. When I access the new domain the home page is OK, but all other links go to the copied site.
    You need to update your config file to point to the NEW FILE FOLDERS location too...
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #8
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Shop copy

    Quote Originally Posted by DivaVocals View Post
    You need to update your config file to point to the NEW FILE FOLDERS location too...
    They are. Very thing in both of the config files are pointing to the correct site.
    Learning Fast.
    Eden Craft Supplies

  9. #9
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Shop copy

    Quote Originally Posted by adb34 View Post
    They are. Very thing in both of the config files are pointing to the correct site.
    How bout posting the includes/configure.php and admin/includes/configure.php files (obscuring DB_PASSWORD and admin directory if specifically provided (which it shouldn't be in an updated site)).

    Please include within [CODE][/CODE] tags that are generated by pressing the # button in the reply message box toolbar.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Shop copy

    includes/configure.php
    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.5.3
     * @copyright Copyright 2003-2014 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * File Built by zc_install on 2014-10-13 03:25:44
     */
    
    
    /*************** 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://ebooks.adb34.co.uk');
      define('HTTPS_SERVER', 'https://ebooks.adb34.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', '/homepages/20/d503465712/htdocs/shops/ebooks/');
    
      //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
      define('DIR_FS_LOGS', '/homepages/20/d503465712/htdocs/shops/ebooks/logs');
    
      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', 'ebooks_');
      define('DB_CHARSET', 'utf8');
      define('DB_SERVER', '*******.db.1and1.com');
      define('DB_SERVER_USERNAME', '********');
      define('DB_SERVER_PASSWORD', '********');
      define('DB_DATABASE', '********');
    
      // 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', 'file'); 
      define('DIR_FS_SQL_CACHE', '/homepages/20/d503465712/htdocs/shops/ebooks/cache');
    
    // EOF
    admin/includes/configure.php

    Code:
    <?php
    /**
     * @package Configuration Settings circa 1.5.3
     * @copyright Copyright 2003-2014 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * File Built by zc_install on 2014-10-13 03:25:44
     */
    
    
    /*************** 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.      ***********/
    
    /**
     * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
     * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
     */
      define('HTTP_SERVER', 'http://ebooks.adb34.co.uk');
      define('HTTPS_SERVER', 'https://ebooks.adb34.co.uk');
      define('HTTP_CATALOG_SERVER', 'http://ebooks.adb34.co.uk');
      define('HTTPS_CATALOG_SERVER', 'https://ebooks.adb34.co.uk');
    
      // secure webserver for admin?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_ADMIN', 'false');
    
      // secure webserver for storefront?  Valid choices are 'true' or 'false' (including quotes).
      define('ENABLE_SSL_CATALOG', 'false');
    
      define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_CATALOG', '/');
      define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
      define('DIR_WS_HTTPS_CATALOG', '/');
    
    // 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_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)
      define('DIR_FS_ADMIN', preg_replace('#/includes/$#', '/', realpath(dirname(__FILE__) . '/../') . '/'));
      //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
      define('DIR_FS_CATALOG', '/homepages/20/d503465712/htdocs/shops/ebooks/');
    
      //the following path is a COMPLETE path to the /logs/ folder  eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
      define('DIR_FS_LOGS', '/homepages/20/d503465712/htdocs/shops/ebooks/logs');
    
      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', 'ebooks_');
      define('DB_CHARSET', 'utf8');
      define('DB_SERVER', '******2.db.1and1.com');
      define('DB_SERVER_USERNAME', '*******');
      define('DB_SERVER_PASSWORD', '*******');
      define('DB_DATABASE', '*********');
    
      // 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', 'file'); 
      define('DIR_FS_SQL_CACHE', '/homepages/20/d503465712/htdocs/shops/ebooks/cache');
    
    
    // Define the webserver and path parameters
      // Main webserver: eg-http://www.your_domain.com - 
      // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
      // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
      // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.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
       */
    // EOF
    Learning Fast.
    Eden Craft Supplies

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Copy Shop Inventory from one store to another?
    By cloudstrife08 in forum General Questions
    Replies: 0
    Last Post: 24 Jan 2010, 03:39 AM
  2. Replies: 3
    Last Post: 9 Aug 2009, 09:04 PM
  3. Replies: 3
    Last Post: 19 Aug 2008, 02:42 AM
  4. Tax only applied to hard copy not to electronic copy of a book
    By cheloricardo in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Mar 2007, 03:41 PM
  5. Replies: 4
    Last Post: 22 Sep 2006, 06:17 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