Jump to content

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

Will Cscart Ever Move To Css Templates Rate Topic   - - - - -

 
  • barry_k
  • Member
  • Members
  • Join Date: 01-Mar 12
  • 35 posts

Posted 12 June 2016 - 11:59 AM #1

The only thing I never liked about CsCart was its use of Smarty.

I know Smarty is supposed to be easier than CSS but I think using it is actually a major disadvantage.

 

1 - When it comes to making custom templates, it is clumsy and actually more difficult than CSS.

2 - We are limited in the developers we can tend projects to.

3 - It is slower than CSS.

 

I think switching to CSS would be a better idea, or even have support for Smarty and CSS Templates, a bigger developer pool would give us a greater variety of templates, the more developers templating would mean CsCart would become even more popular.



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11365 posts

Posted 12 June 2016 - 07:18 PM #2

They do completely different things.

Smarty provides for "control" and variable being passed from the business layer.

CSS controls styling.  While you can set variables in css/less, they can't be set from the business layer.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • barry_k
  • Member
  • Members
  • Join Date: 01-Mar 12
  • 35 posts

Posted 13 June 2016 - 02:22 PM #3

They do completely different things.

Smarty provides for "control" and variable being passed from the business layer.

CSS controls styling.  While you can set variables in css/less, they can't be set from the business layer.

You can easily control HTML and CSS from a backend GUI, I think it would be a step in the right direction to open up the engine to CSS devs.



 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2302 posts

Posted 13 June 2016 - 03:43 PM #4

You can easily control HTML and CSS from a backend GUI, I think it would be a step in the right direction to open up the engine to CSS devs.

 

No offence, but you obviously don't know what you're talking about :)


When life hands you lemons, bring on the Tequila baby!


 
  • barry_k
  • Member
  • Members
  • Join Date: 01-Mar 12
  • 35 posts

Posted 13 June 2016 - 06:50 PM #5

No offence, but you obviously don't know what you're talking about :)

Really? So you are saying there are no web based CMS that can build HTML and CSS templates? That you can't generate HTML and CSS code in Php? Smarty is simply a templating language designed to be easier for beginners to manage templates over php, practically anything it can do can be done in php or another web language.



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11365 posts

Posted 13 June 2016 - 10:09 PM #6

I think the point is (from original post) that what smarty does can't be done via CSS.  They provide two completely different elements of a page.  CSS is for styling, Smarty is for control and generationof HTML (which contains php and css). 

 

Of course PHP can generate html directly.  All smarty is is a front-end to generating HTML with embedded PHP within a page (just go look at any compiled template).

 

Smarty is not really "for beginners", it is simply a language that allows you to control what's generated a lot easier and cleanly than other means.  Yes there are other tools that do exactly the same thing but Smarty is fairly widely used and has been a pretty reliable framework in cs-cart since day one (like 10 years now).

 

I will admit that sometime cs-cart's use of smarty is a bit obtuse where they are really using it like subroutines (over use of capture tag), but for the most part, being able to simply include a template to get buttons and/or other common things generated automatically is a huge benefit to the maintainability of the product.

 

Note that it is all open source so if one wanted to add their own 'tags' or 'functions' they can do so within the framework.  You could always start requesting smarty engine hooks if you think they're needed.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2302 posts

Posted 14 June 2016 - 05:01 PM #7

Sorry I quoted the wrong post / line, but what I meant to say is css can never replace smarty because they are and do different things.


When life hands you lemons, bring on the Tequila baby!