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

best practices?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-12-2010, 05:31 PM
 
upupcreative upupcreative is offline
 

Advanced Member
  
Join Date: Aug 2010
Posts: 66
 

Default best practices?

So, I'm new to X-Cart, and so far I feel like I'm figuring things out alright, but I have one question I'd love to have some of you experts weigh in on.

I've noticed that there is a lot of built-in overlap -- the main template files (i.e. those in the common_files directory) and then the skin templates (i.e. those in the directory of each skin.

I'm curious: when you make modifications, when do you choose to edit the skin version and when do you choose to edit the common version? Is there a reason to choose one or the other for a specific modification?

I've made so many customizations to my skin that it's practically its own new thing now and I don't anticipate EVER switching to another skin, but I'm just wondering what the experts advise.

Thanks!
Julie
__________________
Version 4.4.2
Reply With Quote
  #2  
Old 10-12-2010, 06:11 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: best practices?

Combine all in one css file, delete redundant code, clean it up and load only this file.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Steel (10-14-2011)
  #3  
Old 10-12-2010, 07:27 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: best practices?

Yea, combine all into one CSS file. The templates don't actually overlap - there are a few in the actual skin directory and those take priority over the common_files ones, so you only need to edit in one place. Delete the duplicates if it makes it less confusing, I do.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following user thanks balinor for this useful post:
Steel (10-14-2011)
  #4  
Old 10-12-2010, 11:02 PM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: best practices?

Hi!

The multi-folder template system makes sense when you have a base layout and several color variations. If your custom theme is based on a default X-Cart skin (and just overrides a couple of files) just copy and modify a skin template folder - that will allow you to apply X-Cart patches on the unmodified main templates files without affecting/corrupting your custom modifications. If your custom theme is a completely new solid skin, there is no need to split it into two folders. However, more likely, in this case you'll have to manually apply X-Cart patches on your template files (if needed).
Reply With Quote

The following user thanks xplorer for this useful post:
Steel (10-14-2011)
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:35 PM.

   

 
X-Cart forums © 2001-2020