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

Explanation of home.php skin1, skin1_ori, shemes, templates

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-03-2006, 09:14 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default Explanation of home.php skin1, skin1_ori, shemes, templates

I have come to the conclusion that im confused.

Can someone explain to me in easy to understand terms why all these exists and how it affects the store:

im on 4 0 18 on the inside the xcart folder i have

1.
xcart/home.php - this file has if...include statements.
has no html structure.
Whats this for?
What does it control?
===============================

2.
then inside cart folder again theres
xcart/custmer/home.php
this file has only

header("Location: ../home.php".(!empty($QUERY_STRING) ? "?".$QUERY_STRING : ""));
?>

Whats this for?
What does it control?
=================================

3. then i have
xcart/skin1_original
in here i have a bunch of folders, many tpls, etc.

=================================


4. then i have
xcart/schemes/
in schemes theres, folders, colors, digbats, templates
in templates, there 2 column , 3, small_shop
Whats schemes and there stuff for? if we have skin1 folder

====================================
5. then theres skin1
how does xcart know to use skin1 or skin1_orig
is it the config.php file that tells it what to use?
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #2  
Old 08-03-2006, 09:39 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default

1. You will benefit if you discover "webmaster mode". It's well documented. Webmaster mode will put your entire site into a mode with a pop-up "debugging console" which, if you drag your cursor over the elements, will highlight the template on-screen -- so it's very easy to determine what lives where and who is nested within it's buddies...

You are working too hard... go into webmaster mode, click on "Open customer area in a new window" - and you will hit yourself for not reading about this sooner...

All your questions will have OBVIOUS ansers once you view the template structure in webmaster mode.

Additionally, you can't go wrong with balinor's Template Editing Guide

Quote:
3. then i have
xcart/skin1_original
in here i have a bunch of folders, many tpls, etc.
Leave that alone. That's the ORIGINAL, virgin skin1 files. You do not need to go there...

Leave /schemes and skin1_oig alone...

The default skin is skin1 -- you don't have to use skin1 -- if you replace the skin, you can point xcart to any skin of your choosing, but for simplicity, you are best replacing skin1 directory with your new skin.

GET DEEP with webamster mode and report back. The templates will tell you who lives where... once you are over that hurdle, you get to learn Smarty, but that's an entirely new thread... hint: This will help you decifer smarty
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 08-03-2006, 10:15 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

AWSOME! man that makes understanding it so much easier. i've used websmaster mode but never saw the frontend with indicating where i was pointing.

Thanks, and yeah balinors tutorial is good. I've seen it before but
is faster and better to visualize it now with webmaster.

check my the thread about the "html in extra fields" , i think is related to what we wanted with the extra tabs "ingredients".
__________________
X-Cart 4.0.18 DBest
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 02:09 AM.

   

 
X-Cart forums © 2001-2020