Trine Posted January 9, 2009 Share Posted January 9, 2009 Hi,I wan't to move some blocks from right to left.Fx. the newsletterblock from left to right column. function hookRightColumn($params) { return $this->hookLeftColumn($params); } function hookLeftColumn($params) { global $smarty; if (Tools::isSubmit('submitNewsletter')) { $this->newsletterRegistration(); if ($this->error) { $smarty->assign(array('color' => 'red', 'msg' => $this->error, 'nw_value' => isset($_POST['email']) ? pSQL($_POST['email']) : false, 'nw_error' => true, 'action' => $_POST['action'])); } elseif ($this->valid) { if (Configuration::get('NW_CONFIRMATION_EMAIL') AND isset($_POST['action']) AND intval($_POST['action']) == 0) Mail::Send(intval($params['cookie']->id_lang), 'newsletter_conf', $this->l('Newsletter confirmation'), array(), pSQL($_POST['email']), NULL, NULL, NULL, NULL, NULL, dirname(__FILE__).'/mails/'); $smarty->assign(array('color' => 'green', 'msg' => $this->valid, 'nw_error' => false)); } } $smarty->assign('this_path', $this->_path); return $this->display(__FILE__, 'blocknewsletter.tpl'); } public function confirmation() { global $smarty; return $this->display(__FILE__, 'newsletter.tpl'); } public function externalNewsletter(/*$params*/) { return $this->hookLeftColumn($params); } How do I move the block to right column? And isn't there a .tpl file somewhere where the hook should be edited?Can anyone give me a quick tutorial/tip?Regards, Trine Link to comment Share on other sites More sharing options...
hieloiceberg Posted January 9, 2009 Share Posted January 9, 2009 Back Office >>Modules >>Positions >>Transplant a module then you choose Right column blocks or Left column blocks Link to comment Share on other sites More sharing options...
Trine Posted January 9, 2009 Author Share Posted January 9, 2009 Hi,That would be the natural thing to do :-) - but the "Hook into" drop down box only offers "Left Column Block" and not "Right Column Block"I have checked all the blocks, and it is the same issue for all blocks, so I thought is was a feature which not yet have been implemented.My installation is an v.1.1.Regards, Trine Link to comment Share on other sites More sharing options...
Static Posted January 9, 2009 Share Posted January 9, 2009 sounds like your only using a 2 column themedo you have a link so we can see? Link to comment Share on other sites More sharing options...
Trine Posted January 9, 2009 Author Share Posted January 9, 2009 Nope - it is the PrestaShop theme I use...http://prestashopdemo.webkompagniet.dk/Note it is a testinstallation.... Link to comment Share on other sites More sharing options...
Trine Posted January 9, 2009 Author Share Posted January 9, 2009 I have made another v.1.1 installation and it is neither working here....Do any one else experience the same problem? Link to comment Share on other sites More sharing options...
hieloiceberg Posted January 9, 2009 Share Posted January 9, 2009 The options is there but some modules do not have it on it so you have to edit the module php file to have the option witch side you need it to go to Link to comment Share on other sites More sharing options...
Trine Posted January 9, 2009 Author Share Posted January 9, 2009 Hi again...I have checked all the installed modules to see if the option where available, but none had it switched on.Could you please show me the code snippet on how to switch it on?Regards Trine Link to comment Share on other sites More sharing options...
boran Posted February 3, 2009 Share Posted February 3, 2009 I too, wish to move the My Account block from left to right.In Back Office >> Modules >> Positions >> My Account Block the options are greyed out.The default theme is being used.So i started sifting through the theme code, imagining that it must be in there somewhere. I had a look at global.css and my-account.tpl, but no luck.Where is the column position specified in the code? Link to comment Share on other sites More sharing options...
boran Posted February 3, 2009 Share Posted February 3, 2009 I found the solution for placing the My Account on the right.A) in modules\blockmyaccount\blockmyaccount.php, change the following code: public function install() { //if (!$this->addMyAccountBlockHook() OR !parent::install() OR !$this->registerHook('leftColumn')) if (!$this->addMyAccountBlockHook() OR !parent::install() OR !$this->registerHook('rightColumn')) deinstall then re-install the "My Account block" modulePerhaps someone could tell me however, what is needed so that a module can be changed from left to right from the GUI, i.e. Back Office >> Modules >> Positions Link to comment Share on other sites More sharing options...
Hoodgrown Posted March 15, 2009 Share Posted March 15, 2009 hieloiceberg,I'm experiencing the same problem. I tried searching for the answer which led me to this post. 1. I'm using Prestashop 1.12. My Account block v1.23. Modifying Prestashop Theme4. The "Account Block" doesn't even show up in my left column even though it's installed.In Modules/Positons backendthe "Hook Into" field is not even selectable. So there's no what for me to change column position.As a matter of fact, none of the modules will let me select the "Hook Into" pulldown menus....Any help would be greatly appreciated.. Link to comment Share on other sites More sharing options...
Hoodgrown Posted March 15, 2009 Share Posted March 15, 2009 Ok... I did some more searching and found the answer right http://www.prestashop.com/forums/viewthread/12961/installation_configuration___upgrade/modules_positions__pulldown_lists_greyed_out_and_not_active 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