Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

v4 scheme.less not recompiling Rate Topic   - - - - -

 
  • owenmelbz
  • Newbie
  • Trial users
  • Join Date: 29-Sep 13
  • 1 posts

Posted 29 September 2013 - 01:42 PM #1

Hi, I'm trying out the trial version of cs-cart at the moment to see if it fulfils our needs. I've noticed lots of the styling is in LESS which I really like.

I've been editing the files perfectly fine, everything updates no caching issues.

UNTIL.

editing scheme.less

I've changed line 146 which contained the colour variables.

I've changed it to

//Colors
@links: #000000;


Then I went into "/var/cache/misc/statics/design/themes/basic/css" removed all the cached css files.

Rebuilt the cache via the link in the backend.

A new css file was produced.

However it still contains the old value of @links

Not a browser caching issue as I'm physically looking at the content of the css file from a text editor on the server.

Any suggestions to why the scheme.less isn't affecting the generated css would be much appreciated.

 

Posted 12 March 2014 - 08:51 PM #2

I have exactly the same problem on v4.0.3 -

1. update scheme.less
2. empty cache
3. reload page = still original CSS

 
  • NairdaCart
  • Senior Member
  • Members
  • Join Date: 18-Jul 11
  • 306 posts

Posted 13 March 2014 - 08:18 AM #3

Whenever I'm making changes to my store I set Rebuild Cache Automatically to On. Much easier than having to remember to clear the cache by hand and wondering whether it worked or not.

Always works 100% for me with all files. However some people here have said it doesn't for them....

 

Posted 15 March 2014 - 01:09 PM #4

I had the same issue, and it drove me nuts. But in the end, the solution was logical. Depending on what theme you're using, there's further customizations that overwrite scheme.less CSS settings. Check the /presets/data/ folder (for example /design/themes/classyshop/presets/data/satori.less) and find the theme preset .less files.

To find out which .less file you have to edit:
1. Change CSS in satori.less, upload file
2. delete /var/cache/
3. Reload website to trigger recompiled .css
4. check css file to see if your change shows up