istox Posted May 11, 2014 Share Posted May 11, 2014 Hello! How I can disable left column on cash on delivery module in the validation order page? The Theme config is set to off left column. validation.php is set to public $display_column_left = false; But left column appears . Please see the picture: 1 Link to comment Share on other sites More sharing options...
NemoPS Posted May 12, 2014 Share Posted May 12, 2014 That module 'has been left behind' It's missing a couple of things, as far as I can see. Try opening cashondelivery.php, and add $this->bootstrap = true; $this->controllers = array('validation'); To the __construct method Link to comment Share on other sites More sharing options...
istox Posted May 12, 2014 Author Share Posted May 12, 2014 Thanks. But not working:( Link to comment Share on other sites More sharing options...
gemaadn Posted May 16, 2014 Share Posted May 16, 2014 I need it too. Does anyone know how to hide the left column? Link to comment Share on other sites More sharing options...
Ehinarr Posted June 20, 2014 Share Posted June 20, 2014 I need it too. Does anyone know how to hide the left column? For payment modules, I use this style directly on payment_execution.tpl file: {literal} <style type="text/css"> #module-yourmodule-payment #left_column, #module-yourmodule-payment #right_column {display:none} #module-yourmodule-payment #center_column{width:100%} </style> {/literal} This way,both columns.are diabled. Link to comment Share on other sites More sharing options...
NemoPS Posted June 24, 2014 Share Posted June 24, 2014 Actually, that way they are not disabled, only hidden, you should better do it from the back office, from, the theme's preferences Link to comment Share on other sites More sharing options...
nhelliwell Posted June 24, 2014 Share Posted June 24, 2014 Agreed, but what's the best way to do it? Tried your idea above but it didn't seem to make a difference. I've disabled mine, but I've had to add the page id directly to the ps_meta table, and then add an entry to ps_theme_meta to disable the left/right column by default. Module now appears in the advanced settings for the theme configuration, but I'm not sure I like the idea of meddling directly with the database to do this. Shouldn't the module have added it's own values to these tables when installed? Cheers Link to comment Share on other sites More sharing options...
NemoPS Posted June 25, 2014 Share Posted June 25, 2014 Well it depends on how you create the page. It *should* be added automatically if you create it through a module's controller. If it doesn't.... it's broken Link to comment Share on other sites More sharing options...
nhelliwell Posted June 25, 2014 Share Posted June 25, 2014 Cashondelivery module is Prestashop developed, I just turn those chaps on. I wonder if this might be related to the upgrade to 1.6.x I've been using this module since 1.5.something, and all my environments have been slowly upgraded to 1.6.0.8. I seem to be missing a LOT of entries in ps_meta & ps_theme_meta if modules and pages are supposed to be adding their entries automatically. Link to comment Share on other sites More sharing options...
NemoPS Posted June 27, 2014 Share Posted June 27, 2014 yes it should. Do you mean it didn't add it once the module was installed? If so, it's definitely bugged Link to comment Share on other sites More sharing options...
nhelliwell Posted June 27, 2014 Share Posted June 27, 2014 Ok, played around with it a bit on a test installation with my theme migrated. If I uninstall, and reinstall, the entries are correctly created. So my guess would be since I've been using this since an early 1.5 version, which would have been before these values, and left/right column config existed (?), then something has not been included during the upgrade to 1.6. The modules aren't uninstalled prior to upgrade, just disabled and re-enabled (I use the 1-click upgrade module). Maybe it's just because this module was fixed after I had already upgraded to 1.6.0.8. A question then: $this->bootstrap = true; $this->controllers = array('validation'); Only modules that call these both these lines will configure themselves in ps_meta, or all modules should be in there, and these values just turn on the 'configurable' column? Link to comment Share on other sites More sharing options...
NemoPS Posted June 28, 2014 Share Posted June 28, 2014 Bootstrap should only enable responsiveness in the back office as far as I know! As for the other, it simply mentions the controllers which are part of the module Otherwise I believe they won't work (I can't recall just now) Link to comment Share on other sites More sharing options...
toniagustian Posted June 29, 2014 Share Posted June 29, 2014 is it solved?.. i still facing this problem with COD. where is the solution? Link to comment Share on other sites More sharing options...
nhelliwell Posted June 30, 2014 Share Posted June 30, 2014 is it solved?.. i still facing this problem with COD. where is the solution? Uninstall and reinstall the module should do it. 1 Link to comment Share on other sites More sharing options...
Recommended Posts