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

Adding Entire Template Set...How?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-10-2002, 08:27 AM
 
ArmyNavy ArmyNavy is offline
 

Member
  
Join Date: Oct 2002
Location: Philadelphia, PA, USA
Posts: 28
 

Default 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.
__________________
ArmyNavy.com TM
Military Surplus, Clothing, Gear, Vehicles, and Tons More.
\"Tons and Tons of Surplus!\" TM
Reply With Quote
  #2  
Old 11-12-2002, 03:12 AM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

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,
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
  #3  
Old 11-12-2002, 03:14 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

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
__________________
ex x-cart guru
Reply With Quote
  #4  
Old 11-12-2002, 04:18 AM
 
ArmyNavy ArmyNavy is offline
 

Member
  
Join Date: Oct 2002
Location: Philadelphia, PA, USA
Posts: 28
 

Default

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
__________________
ArmyNavy.com TM
Military Surplus, Clothing, Gear, Vehicles, and Tons More.
\"Tons and Tons of Surplus!\" TM
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 01:51 PM.

   

 
X-Cart forums © 2001-2020