gonliSs Posted July 22, 2014 Share Posted July 22, 2014 Hello, I've created module display page and there is shown left column. I'd like to hide it. There is no option for doing this on editing theme preferences. How can I do that? Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2014 Share Posted July 22, 2014 you have to add this public $display_column_left = false; in module controller class definition class XXXModuleFrontController extend ModuleFrontcontroller { HERE } Link to comment Share on other sites More sharing options...
gonliSs Posted July 22, 2014 Author Share Posted July 22, 2014 I've hidden it already but if statement in header.tpl file so it is hidden but I tried your solution: <?php class customercommentsdisplayModuleFrontController extends ModuleFrontController { public $display_column_left = false; and it doesn't work. Am I doing something wrong? Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2014 Share Posted July 22, 2014 let's clarfiy you've got module front controller you open your module page with something like: http://yourdomain.com/modules/yourmodule/controllername ? Link to comment Share on other sites More sharing options...
gonliSs Posted July 22, 2014 Author Share Posted July 22, 2014 <a href="{$link->getModuleLink('customercomments','display')}">Opinie</a> so it is: http://127.0.0.1/module/customercomments/display Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2014 Share Posted July 22, 2014 strange :/ can you show contents of your controller file? Link to comment Share on other sites More sharing options...
gonliSs Posted July 23, 2014 Author Share Posted July 23, 2014 http://pastebin.com/EiTbTsQy Link to comment Share on other sites More sharing options...
vekia Posted July 23, 2014 Share Posted July 23, 2014 everything looks well in your code im out of ideas you use default theme? what ps version? perhaps your left column is hardcoded in different way than default theme left column Link to comment Share on other sites More sharing options...
gonliSs Posted July 24, 2014 Author Share Posted July 24, 2014 I use prestashop 1.6.0.6 and default theme. But it's ok, I wanted to know to my own knowledge why it isn't working. I put if statement in the header.tpl and it also works. I don't know if it is good solution? Link to comment Share on other sites More sharing options...
vekia Posted July 24, 2014 Share Posted July 24, 2014 if statement is also correct way to achieve it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now