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

Creating new skin

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-19-2013, 11:28 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Creating new skin

This is not documented anywhere or I was not able to find it. When creating new skin it is mandatory to create

/css/altskin.css

even if the file is empty. XC is coded so if this file does not exists $AltSkinDir and $AltImagesDir variables have no value and are not assigned to smarty.

What altskin.css has to do with these 2 variable is beyond me . Easily can call this a bug. It can be fixed by modifying smarty.php and taking out the conditional line

if (@file_exists($alt_skin_dir . XC_DS . 'css' . XC_DS . 'altskin.css')) {

or if you want to be forced to create an emtpy file for no reason at all just create altskin.css in your new skin css directory - which means you have to have css directory as well even if you don't need it....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
PhilJ (04-20-2013)
  #2  
Old 04-20-2013, 12:29 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Creating new skin

An alternative is to add this to the top of your new skin/whatever/customer/home.tpl

Quote:
{assign var="AltSkinDir" value="skin/whatever"}
{assign var="AltImagesDir" value="skin/whatever/images"}
__________________
xcartmods.co.uk
Reply With Quote
  #3  
Old 04-20-2013, 12:39 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Creating new skin

Yes but you shouldn't since the code is the script already.... it just doesn't work properly....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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:06 PM.

   

 
X-Cart forums © 2001-2020