X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Creating new skin (https://forum.x-cart.com/showthread.php?t=66679)

cflsystems 04-19-2013 11:28 PM

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 :roll: . 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....

PhilJ 04-20-2013 12:29 AM

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"}

cflsystems 04-20-2013 12:39 AM

Re: Creating new skin
 
Yes but you shouldn't since the code is the script already.... it just doesn't work properly....


All times are GMT -8. The time now is 06:15 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.