nemedities Posted August 15, 2014 Share Posted August 15, 2014 Hello, Could someone help me with this. I activated the left column in the default bootstrap theme in prestashop 1.6.0.8 and the banners and facebook block kinda shrunk off to the right. I'm trying to get that area back to full width of page below left column. (see photo below) Link to comment Share on other sites More sharing options...
vekia Posted August 17, 2014 Share Posted August 17, 2014 hello there where is a blank space there is your left column. it's not possible without theme modificaitons it will be necessary to: 1) create new hook and associate theme configuration module, and block cms module, and facebook like block with this new hook. after that create hook execute function in theme .tpl file 2) move actual modules and their contents (block cms, theme configuration, facebook block) to footer section Link to comment Share on other sites More sharing options...
nemedities Posted August 17, 2014 Author Share Posted August 17, 2014 Ok, Vekia thanks, Just one problem didnt quite understand that but I'm gonna get it. (Trial and Error) :-) Link to comment Share on other sites More sharing options...
nemedities Posted August 18, 2014 Author Share Posted August 18, 2014 Is there any other posts on this topic? On how to create hooks in laymen terms? sorry dont know much about the subject I'm a newbie. Link to comment Share on other sites More sharing options...
vekia Posted August 23, 2014 Share Posted August 23, 2014 how to create new hook: Open PphMyAdmin .find your shop database and open it.in prestashop you need to create one Row in "ps_hook" table. first open ps_hook table and Insert new Row and name it for example MyNewHook .you just need to fill name and title field's.not any other values needed. then in modules you want to add to this hook add function: public function hookMyNewHook($params){ } with contents to display .tpl files then, in your theme file add code like: {hook::exec('MyNewHook')} to execute hooks in any place you want (in your case before footer) 1 Link to comment Share on other sites More sharing options...
jonathbenz Posted September 2, 2014 Share Posted September 2, 2014 Can anyone tell how to add Ad Management mod? Link to comment Share on other sites More sharing options...
vekia Posted September 2, 2014 Share Posted September 2, 2014 Can anyone tell how to add Ad Management mod? create new topic with your question please, it's not related to this topic Link to comment Share on other sites More sharing options...
Markaus Posted September 13, 2014 Share Posted September 13, 2014 how to create new hook: then in modules you want to add to this hook add function: public function hookMyNewHook($params){ } with contents to display .tpl files then, in your theme file add code like: {hook::exec('MyNewHook')} to execute hooks in any place you want (in your case before footer) i did not understand it well.. i facing same problem too after enable left column I have already insert a new raw call mynewrow and title name also was "mynewrow" now where should i past " public function hookMyNewHook($params){ }?? and what is the next step? can you please guide me.. for which folder.. which .tpl files.. i need to make the footer banner full length and the facebook block etc.. which module is it ? Thanks Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2014 Share Posted September 13, 2014 if you created hook with name mynewrow you have to use this function in your module: public function hookmynewrow($params){ } then you have to use in this function code that you want to execute when script will execute hook. to execude hooks in theme just use: {hook::exec('mynewrow')} 1 Link to comment Share on other sites More sharing options...
Markaus Posted September 14, 2014 Share Posted September 14, 2014 if you created hook with name mynewrow you have to use this function in your module: public function hookmynewrow($params){ } then you have to use in this function code that you want to execute when script will execute hook. to execude hooks in theme just use: {hook::exec('mynewrow')} Hi, Still i did not understand.. may it your explanation is too technical .. i;m not too familiar with code.. but i can add/change etc if you tell me which folder exacly to touch.. edit.. and the pathway to reach the files and folder.. for eg you said i have to execute in theme.. but which file in theme? thanks if you can help.. Have a great weekend uzzy Link to comment Share on other sites More sharing options...
Recommended Posts