Jump to content

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

Css-Less Rate Topic   - - - - -

 
  • Ranger-1
  • Member
  • Trial users
  • Join Date: 20-Aug 11
  • 35 posts

Posted 31 January 2020 - 10:29 AM #1

We have several webshops, all partly using the same Custom CSS (about 1800 out of 1900 lines in total). The others 100 lines are bascily shop-specific LESS values for colours, and images and such. Can we somehow make a «master.less» file and integrate that in «shop1.less» «shop2.less» «shop3.less» and so on..?


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20055 posts

Posted 31 January 2020 - 01:36 PM #2

Why not?

 

For example, in the design/themes/responsive/templates/addons/my_changes/hooks/index/scripts.post.tpl hook try the following code

{style src="addons/my_changes/master.less"}
{style src="addons/my_changes/shop`$runtime.company_id`.less"}

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)