santolla Posted October 16, 2014 Share Posted October 16, 2014 I'm trying to validate a theme, but always get an error "main class not found". Which is impossible, the main class is there (global.css). Is there a system where I need to add something to get it validated? Thank you! Link to comment Share on other sites More sharing options...
DrunkBug Posted October 16, 2014 Share Posted October 16, 2014 (edited) About what validation feature are you talking? I've never heard about one in Prestashop, would like to know where I can find one. Edited October 16, 2014 by DrunkBug (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted October 16, 2014 Share Posted October 16, 2014 Can we assume you are referring to the following URL? https://validator.prestashop.com/ If so, isn't this a module validator? Link to comment Share on other sites More sharing options...
santolla Posted October 16, 2014 Author Share Posted October 16, 2014 https://validator.prestashop.com/ Sorry, that's what i'm taking about. Sometimes my themes get rejected by prestashop cause they say it didn't validate via https://validator.prestashop.com/ But my themes never did validate on the validator. Neither does the default bootstrap. I need to make this pass the validator, but I can't figure out how. My themes hold the structure it is supposed to. So where is it getting that "Main class not found"???? Link to comment Share on other sites More sharing options...
razaro Posted October 16, 2014 Share Posted October 16, 2014 Like bellini said it is module validator so you can't validate theme, at least not theme zip file. If you have some custom modules that goes with theme you can validate them separately. You can also check http://doc.prestashop.com/display/PS16/Coding+Standards for guide and for theme tpl files mostly check if smarty variables are properly escaped. Think I read somewhere there is plan to have public theme validator also in a future, but for now it is just modules. Link to comment Share on other sites More sharing options...
Recommended Posts