Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

New Template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-06-2009, 06:15 AM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default New Template

Hi All,

I have purchased a template from 7Dana.com for my version of X-Cart. I was wondering if there was a trick, hint or tip to view this new template on my current website without messing up my website's look right now a I have a live store running. I'm interested in seeing what it will look like and the work I will need to do before I implement the new template. I'm hoping this is something I can do to save me a little money.

Thanks for any advice you can give ahead of time.
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #2  
Old 11-06-2009, 09:57 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: New Template

Create dev site, apply template there, make any modifications you need, upload the dev site over the live one
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 11-06-2009, 10:24 AM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: New Template

I'm not sure how I would do that. Wouldn't I have to make duplicate of everything (databases, etc.)?
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #4  
Old 11-06-2009, 01:20 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: New Template

Yes you will have to create new database for it too. Just create new subdirectory in your existing xcart installation - say dev-store. Create new db - dev-store. Install xcart in dev-store directory and connect to dev-store db. Make sure you close the dev-store and disallow access in robots. txt so it's not accessible.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 11-08-2009, 08:00 AM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: New Template

How do I disallow robots?

Thanks
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #6  
Old 11-08-2009, 07:14 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: New Template

Create robots.txt file in root of the dev site and put this inside

User-agent: *
Disallow: /

Note that not all search engines respect robots.txt
You can also restrict access in .htaccess to only the IP address you will be connecting from
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 11-11-2009, 03:42 AM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: New Template

Which file(s) do I need to modify to look at my copy database? and not my original?

Thanks in advance.
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #8  
Old 11-11-2009, 03:57 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: New Template

Edit config.php - you will need to change db name and also where cart is located as you will have it now in subdirectory
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #9  
Old 11-11-2009, 04:36 AM
 
Panther Panther is offline
 

Senior Member
  
Join Date: Feb 2009
Posts: 108
 

Default Re: New Template

In the config.php file are the below sections the correct sections to change? I don't want to change something that doesn't need to be changed.

Route to dev_store folder:

#$xcart_http_host ="my IP Address";
#$xcart_https_host ="my IP Address";
#//$xcart_web_dir ="";
#$xcart_web_dir ="/mydomainname/dev_store";

For dev_store database:

# $sql_host ='localhost';
# $sql_user ='dev_store database name';
# $sql_db ='dev_store database name';
# $sql_password ='mypassword';

Thanks
__________________
Panther
X-Cart Pro v4.4.4
Reply With Quote
  #10  
Old 11-11-2009, 08:23 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: New Template

$xcart_http_host ="my IP Address";
$xcart_https_host ="my IP Address";
$xcart_web_dir ="/dev_store";


$sql_host ='localhost';
$sql_user ='database username';
$sql_db ='dev_store database name';
$sql_password ='mypassword';
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:23 AM.

   

 
X-Cart forums © 2001-2020