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

How to work on skin without redeploying after every change?

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-20-2014, 02:14 PM
 
spdesign spdesign is offline
 

Advanced Member
  
Join Date: Mar 2010
Posts: 31
 

Default How to work on skin without redeploying after every change?

Is there any way to do this? I can't find it any of the documentation, and forum searches are not helping.

How can we turn off caching and regenerating/minifying js and css?

Sig says x-cart classic, but I'm currently playing with 5.1.7, trying to decide whether to move clients onto it. If there's no easy way to deal with skins/templates, there's no way x-cart 5 is going to be an attractive option.
__________________
===========
x-cart gold/classic
4.6.4
Reply With Quote
  #2  
Old 10-20-2014, 02:59 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,738
 

Default Re: How to work on skin without redeploying after every change?

You don't have to regenerate cache when making changes to skin files - tpl, css, js. You have to regenerate it if you are making changes to php files. One way to avoid this when modifying php files is to modify the file under /var/run directory and when satisfied with the changes repeat them on the actual file under /classes/XLite

The cache regeneration is extremely annoying and it has been discussed here before, unfortunately so far there is no actual solution to this
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
qualiteam (10-24-2014), spdesign (10-21-2014)
  #3  
Old 10-21-2014, 06:14 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,430
 

Default Re: How to work on skin without redeploying after every change?

In order to be able to edit templates without store re-deployment, you need to enable developer_mode as explained here:
http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module#Step1-creatingsimplestmodule-Packingupyourmodule
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following 2 users thank tony_sologubov for this useful post:
qualiteam (10-24-2014), spdesign (10-21-2014)
  #4  
Old 10-21-2014, 07:15 AM
 
spdesign spdesign is offline
 

Advanced Member
  
Join Date: Mar 2010
Posts: 31
 

Default Re: How to work on skin without redeploying after every change?

EDIT: Never mind. I found it. For anyone else who comes across this thread, setting are under System Settings > Look & Feel > tab: Performance

Thanks, cflsystems and tony. I have already enabled developer_mode. However, css is still being converted to cached files, although it appears those are forced to reload during developer_mode. Any way to prevent renaming of those files so that we can better see exactly where css properties are writtem?
__________________
===========
x-cart gold/classic
4.6.4
Reply With Quote

The following user thanks spdesign for this useful post:
benlind (02-15-2017)
  #5  
Old 10-21-2014, 08:47 AM
 
spdesign spdesign is offline
 

Advanced Member
  
Join Date: Mar 2010
Posts: 31
 

Default Re: How to work on skin without redeploying after every change?

Argh. There's normalizer css that overrides color specifications, which is very annoying. I understand the need to normalize placement and general layout characteristics, but color should not be set this way.

Is this being achieved through JS? I can't seem to find where it is.
__________________
===========
x-cart gold/classic
4.6.4
Reply With Quote
  #6  
Old 10-21-2014, 09:27 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,430
 

Default Re: How to work on skin without redeploying after every change?

Not sure I am following you about normalizer that overrides the color specs. Could you explain it a bit?
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #7  
Old 10-21-2014, 09:47 AM
 
spdesign spdesign is offline
 

Advanced Member
  
Join Date: Mar 2010
Posts: 31
 

Default Re: How to work on skin without redeploying after every change?

It looked as though bootstrap css was being pulled in after theme.css.

After double-checking to make sure I had set developer_mode to "On" in config.php (check), making sure everything was unchecked under Look & Feel > Performance (check), and making sure theme.css was not being served in an aggregated state (check), and emptying browser cache repeatedly, some color instructions in theme.css were still being ignored in favor of color specifications in bootstrap css.

I manually deleted all cached files in /var, and now it appears that theme.css overrides bootstrap css as it should. I'm not sure if that's what did it or it was coincidental to some other change, but it's OK now.
__________________
===========
x-cart gold/classic
4.6.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


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 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 01:40 PM.

   

 
X-Cart forums © 2001-2020