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

Create Custom Skin Directory in X-Cart 4.5.1

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-06-2012, 02:58 PM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default Create Custom Skin Directory in X-Cart 4.5.1

(none of the following is live yet)

I had a clean 4.5.0 installation, I followed Mike White's (Baby Monkey Studios) excellent video tutorial on how to create a custom skin directory so I wouldn't mess with the default skin files. I copied the /skin/ideal_comfort" skin folder to /skin/cnmc_ideal_comfort edited the altskin.ini and made very few changes - modified the logo, and it all worked fine. I could see the new skin in the Admin:General Settings:Appearance settings and I could change the skin for the site, it was beautiful.

In the past week I had QT upgrade from 4.5.0 to to 4.5.1. Because I know that they cleaned up some of the "ideal_comfort" skin files. I figured I'd start from scratch building my skin again (no big deal I had changed the logo and that was about it). I performed the same steps as before. Copied /skin/ideal_comfort folder to /skin/ideal_comfort_cnmc (notice I did not overwrite my previous custom skin folder). Edited the altskin.ini and the screenshot.png. Then went looking for my new skin in Admin:General Settings:Appearance BUT THE LATEST SKIN IS NOT IN THE DROPDOWN LIST. I've checked the folder and file permissions, and they are all the same as the default skin folders. Why doesn't it show up in the dropdown list of skins to select from? I've tried a different computer so I could be sure nothing on the computer or browser was cached. Is there a reason that the new skin wouldn't show up right away? Is there a XC cache that is driving the list of skins in the dropdown, if so can it be forced to refresh? Is there a limit to the number of skins that will show in the dropdown (so I have to get rid of a skin to make a new one)? Also I have the following General Settings:Optimization Settings DISABLED ..."Use speed up tool for Javascript" & " Use speed up tool for CSS"

I'm pulling my hair out because I know the solution is something simple (I hope)

Anyone got a clue?
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #2  
Old 07-09-2012, 07:59 AM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

Hope you had a good weekend all. Well I am still confused by the original problem I had (above), but it seems to have fixed itself (I love those, it just offends my sensibilities).

After creating the custom skin folder on Friday in the afternoon, I went looking for it on Saturday morning in the Admin dropdown and it still wasn't there. I went looking again Sunday night and BOOM, it was there. This hints to me that somehow the dropdown list of available skins is cached by X-cart and refreshed itself after around 24hrs. Anyone know how you can force a refresh if this is indeed the case?

Thanks for any response?
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #3  
Old 07-10-2012, 02:35 AM
  pauldodman's Avatar 
pauldodman pauldodman is online now
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,052
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

run /cleanup.php from your browser.

Also check the bottom of general settings for caching options.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote

The following user thanks pauldodman for this useful post:
tartaglia (07-10-2012)
  #4  
Old 07-10-2012, 08:58 AM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

Thanks Paul, what does cleanup.php do, is it executable from the Admin side? I hesitate to directly run php scripts, thinking that i fthey were meant to be run, the people at QT qould have put them in the maintenance section of the Admin side and said something like "run this to refresh your ?????".

Also there is an option "Generate X-Cart cache every N hour(s)" in General settings that I have set by default to 24. But I wasn't sure what was included in the "X-cart cache" and didn't want to shorten the increment without that knowledge cause I know regenerating caches more frequently than necessary is not a good idea. Thanks for your insight on this issue.
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #5  
Old 07-10-2012, 09:01 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

www.yourdomain.com/cleanup.php - it is XC internal script and you run it from the browser address bar. It deleted all files in the XC var/template_c directory so XC is forced to generate them again. It doesn't hurt anything or cause any problems
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
tartaglia (07-10-2012)
  #6  
Old 07-10-2012, 09:09 AM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

Steve,

I saw in another completely un-related post that someone (maybe you suggested that the person "clear the X-Cart cache" is this the same as cleanup.php?

Also does cleanup.php take a lot of time/resources is it something I should only do sparingly when our traffic is low?

(I read the forums now almost everyday, trying to keep up and you are very helpful thank you)

David
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #7  
Old 07-10-2012, 09:12 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

Yes the same. No, it doesn't take time, all it does it's deleting files. You don't have to do it all the time, only when you change template files or database structure
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 07-10-2012, 09:32 AM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

Well luckily I don't change DB structure, I leave that to you guys, the professionals and gladly pay for it. Thanks again. I will put that cleanup.php script in my "toolbox" next time I make a template change that doesn't "take" like it should. And give it a try.
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
  #9  
Old 07-10-2012, 01:18 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

Here's some more information on that tool:

http://help.x-cart.com/index.php?title=X-Cart:Advanced_Tools#Clear_Templates.2FX-Cart_Cache
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
tartaglia (07-10-2012)
  #10  
Old 07-10-2012, 03:25 PM
 
tartaglia tartaglia is offline
 

X-Adept
  
Join Date: May 2006
Location: Dallas, TX
Posts: 575
 

Default Re: Create Custom Skin Directory in X-Cart 4.5.1

Thanks cherie
__________________
David Coggan
Carolyn Nussbaum Music Company
X-Cart v4.5.4 Gold +
LiteCommerce v2.2.41 (previous 6 years)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:07 PM.

   

 
X-Cart forums © 2001-2020