X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Advice on how to develop and deploy new look please. (https://forum.x-cart.com/showthread.php?t=38090)

baronmunchowsen 03-06-2008 11:21 AM

Advice on how to develop and deploy new look please.
 
I'm looking for advice on the best way to re-theme/re-skin our x-cart site that is live.

Is there a way to create a new skin folder (e.g. skin2 - by copying the skin1_original folder), make my changes to these files, and preview it on the live site? Then upon completion of the re-skinning, change the configuration settings and switch from skin1 (current skin) to skin2?

Or

Should I copy the site to a development server, edit the skin1 template files and then once happy simply overwrite the old skin1 template files with the new skin1 template files on the live webserver?

What would you recommend as the best process? Is there another, better way to do this.

Thanks.

balinor 03-06-2008 11:35 AM

Re: Advice on how to develop and deploy new look please.
 
Option 2 is your best bet. I usually install X-Cart on a sub-directory using the same database and just edit the skin files there. When the skin is done, just rename the skin1 folder on the main site and move the modified one up.

intel352 03-06-2008 11:49 AM

Re: Advice on how to develop and deploy new look please.
 
I could provide a mod to allow your option 1 request to work, if there's interest.

baronmunchowsen 03-06-2008 12:38 PM

Re: Advice on how to develop and deploy new look please.
 
Quote:

Originally Posted by balinor
Option 2 is your best bet. I usually install X-Cart on a sub-directory using the same database and just edit the skin files there. When the skin is done, just rename the skin1 folder on the main site and move the modified one up.


This sounds good - is there anything that I need to be concerned about running my development project on the same database as my production site? For instance, I will want to re-skin all the checkout pages and so forth, so will this pose any major issues?

Thanks for the reply

balinor 03-06-2008 12:39 PM

Re: Advice on how to develop and deploy new look please.
 
As long as you don't modify any php files or database settings, it won't affect your live store. Keep your changes to the templates in the development directory.

baronmunchowsen 03-06-2008 12:42 PM

Re: Advice on how to develop and deploy new look please.
 
Quote:

Originally Posted by intel352
I could provide a mod to allow your option 1 request to work, if there's interest.


Thanks for this. I'd rather source a way to re-skin the site with minimum impact on the actual configuration of the site. I was just wondering whether x-cart has the functionality within it to run 2 skins at once (dependant on say, role or user id) already built into it.

I'm sure that someone will stumble upon this thread in need of your mod though!

Thanks,

baronmunchowsen 03-06-2008 12:47 PM

Re: Advice on how to develop and deploy new look please.
 
Quote:

Originally Posted by balinor
As long as you don't modify any php files or database settings, it won't affect your live store. Keep your changes to the templates in the development directory.


Okay - great. So to clarify for myself and others in the same boat:

1. Take backup of website
2. Upload backup to sub-domain
3. Password protect sub-domain for security(?)
4. Update relevant settings in config.php ($xcart_http(s)_host)
5. Site should run as normal in sub-directory
6. Make all changes to the skin1 template file
7. Overwrite existing skin1 directory with new, modified skin1 directory
7. Close shop
8. Rename exisiting skin1 directory to skin1_old
6. Upload new skin1 directory
10. Open shop

Have I missed anything?

Thanks,

--------
Edit 1: edited as per Kube below

kube 03-06-2008 12:52 PM

Re: Advice on how to develop and deploy new look please.
 
Regarding...

6) Overwrite existing skin1 directory with new, modified skin1 directory

Me being pedantic... perhaps close the shop, rename the original skin1 folder and then rename the new skinned folder to skin1. I wouldn't overwrite; as anything could go wrong and then you have nothing to revert back to. Except a lengthy upload of original skin1.

==============================
Edit: missed out "then rename the new skinned folder to skin1"

baronmunchowsen 03-06-2008 01:06 PM

Re: Advice on how to develop and deploy new look please.
 
Quote:

Originally Posted by kube
Regarding...

6) Overwrite existing skin1 directory with new, modified skin1 directory

Me being pedantic... perhaps close the shop, rename the original skin1 folder and then rename the new skinned folder to skin1. I wouldn't overwrite; as anything could go wrong and then you have nothing to revert back to. Except a lengthy upload of original skin1.

==============================
Edit: missed out "then rename the new skinned folder to skin1"


Good call - I've amended the list


All times are GMT -8. The time now is 12:44 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.