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)
-   -   Adding Entire Template Set...How? (https://forum.x-cart.com/showthread.php?t=605)

ArmyNavy 11-10-2002 08:27 AM

Adding Entire Template Set...How?
 
Hi All

I'd like to add my own set of templates rather than edit .../skin1

How can I add this and get the system to recognize it? I've been hunting around in the admin area, but I can't find anything to change to a different template set.

Thanks very much. :)

syddos 11-12-2002 03:12 AM

Quote:

Originally Posted by ArmyNavy
I'd like to add my own set of templates rather than edit .../skin1


The easiest way to do this is to add a sub directory under skin1/images/ ( skin1/images/my_skins/file.gif ) this way when you use the {$ImageDir} just add " /my_skins" before your image file name.

Regards,

funkydunk 11-12-2002 03:14 AM

Quote:

I'd like to add my own set of templates rather than edit .../skin1

How can I add this and get the system to recognize it? I've been hunting around in the admin area, but I can't find anything to change to a different template set.


The settings for the skin1 side of things are within the install.php file
Code:

$templates_repository = "skin1_original";
$schemes_repository = "schemes";

$templates_directory = "skin1";

The code below that then creates a new directory called "skin1" and copies all templates from skin1_original.

Therefore if you were wanting to use you own complete template set, probably easiest to creat a copy of the templates within site1_original to your own directory, then do a fresh install of x-cart with the newly amended install.php site.

My question is why?

It is far easier to edit the skin1 templates and create a totally custom built site rather than editing the way that x-cart works where you could potentially have numerous bugs. Also, going down this route, would mean that future upgrades would be even harder and very few people on this forum could help if it went wrong.

Sorry to be a messenger of doom, but do weigh up the advantages and disadvantages before going there.

Funkydunk

ArmyNavy 11-12-2002 04:18 AM

Quote:

The easiest way to do this is to add a sub directory under skin1/images/ ( skin1/images/my_skins/file.gif ) this way when you use the {$ImageDir} just add " /my_skins" before your image file name.

I appreciate everyone's thoughts. I think what I'll do is create new sub sets of templates under /skin1. It seems the most straightforward. You're no messenger of doom, funkydunk. :)

Thanks, All :)


All times are GMT -8. The time now is 07:18 PM.

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