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

templating in 4.2.2 and folder structures

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-07-2011, 02:47 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default templating in 4.2.2 and folder structures

Hi,

I have built a number of xcart stores in 4.2.2 and have just started using 4.4.2 today.

From what I can see the skin folder now contains a common files and a folder for each template.

I can understand why this has been done, so that you can switch between the pre installed themes easily.

However, I am finding it difficult to implement a new custom theme as i have to find template files across two folder structures.

What decides if a file should be in common_files/customer or {yourtheme}/customer?

Should I not touch the files in common_files at all and just edit {yourtheme}/customer?

Is the idea that a file in your theme folder overrides a file in the common_files folder.

I have read through the latest menual updates and there is no explanation for this.

Any ideas?
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote
  #2  
Old 02-07-2011, 02:57 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: templating in 4.2.2 and folder structures

I think the way ot works is that XC is looking for the file in {yourtheme} - if it finds one will use it if not will use the one form common_files. You can leave common_files as is and any template you want to change just recreate files structure in {yourtheme} and have copy of that file there.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
zone1creative (02-07-2011)
  #3  
Old 02-07-2011, 03:04 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: templating in 4.2.2 and folder structures

Thanks for that.

Should have asked this from the beginning before hacking away at the common_files.

That all makes sense and much better way of doing it
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
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 09:19 PM.

   

 
X-Cart forums © 2001-2020