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

Custom 4.4 skin breaks default skins

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-28-2010, 09:22 PM
 
mmasterson mmasterson is offline
 

Member
  
Join Date: Mar 2005
Posts: 16
 

Default Custom 4.4 skin breaks default skins

Just a quick question - I have a contractor developing a 4.4 skin for me and when they install it on my test server it appears some of the files in skin/common_files directory have been modified and apparently break the default skins shipped in the product.

The skin they are starting with is the newer 2-column skin shipped in 4.4, but should they have to modify files in common_files?
Is this an optimal solution and best practice for 4.4?

I'd like to be able to switch between themes and also ensure that as fixes are made to common elements via patches that they are as easy to apply as possible.

Thanks for your input!
__________________
X-Cart 4.4.1
Reply With Quote
  #2  
Old 10-29-2010, 03:02 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Custom 4.4 skin breaks default skins

They can modify files in common_files yes but each skin has its own files for some of them so depends on the skin. If the skin in use has its own product.tpl for example then there is no need to modify product.tpl in common_files
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 10-29-2010, 05:49 AM
 
mmasterson mmasterson is offline
 

Member
  
Join Date: Mar 2005
Posts: 16
 

Default Re: Custom 4.4 skin breaks default skins

Is it possible to add the files that need modification from skin/common_files into the other skin/custom_skin folder and then add to the files.lst? Otherwise the issue I'm seeing is that it appears to be breaking all other skins that may have dependency on the file in the common_files skin.

Seems like this is somewhat new for 4.4 with true dependency between custom skins and common_files, enabling "hot swap" skin changes, right?


Thanks again.
__________________
X-Cart 4.4.1
Reply With Quote
  #4  
Old 10-29-2010, 05:55 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Custom 4.4 skin breaks default skins

The idea is to easily swap skins yes. Not sure why you want to add anything to files.lst - this file has nothing to do with editing skins
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 11-01-2010, 07:36 PM
 
mmasterson mmasterson is offline
 

Member
  
Join Date: Mar 2005
Posts: 16
 

Default Re: Custom 4.4 skin breaks default skins

@cflsystems I'm confused because the new skin approach starting in 4.4 seems quite a bit different - which appears designed to allow quick swapping between skins.

The way I understand it, files in the customer skin folder (e.g. 2-column) will overide the ones in the common_files folder. Thus, shouldn't a custom skin be implemented by modifying the files *only* in the 2-column (or better yet a copy of that folder) so that the underlying common_files are not changed?

Otherwise there would no way to swap to a different skin quickly due to the changes in common_files that would likely break other skins.
__________________
X-Cart 4.4.1
Reply With Quote
  #6  
Old 11-02-2010, 02:04 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Custom 4.4 skin breaks default skins

Yes, modify only the files in the skin you are using. If a file doesn't exist there then you have to modify it in common_files
OR I would assume that if you create new file with same name in the skin you are using it will override the file from common_files so you don;t have to edit there
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Steel (10-15-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 03:14 PM.

   

 
X-Cart forums © 2001-2020