robchef Posted August 16, 2012 Share Posted August 16, 2012 can any one please explan were the ps_hook folder is as i need to edit im trying to follow this tutalor to edit my newsletter please help Display newsletter block in a CMS page http://www.prestashop.com/forums/topic/129386-display-newsletter-block-in-a-cms-page/ Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted August 16, 2012 Share Posted August 16, 2012 No such folder exists. The tut is talking about adding a new hook to the table ps_hook in your database. Hope that helps! Marty Shue Link to comment Share on other sites More sharing options...
robchef Posted August 16, 2012 Author Share Posted August 16, 2012 (edited) can you tell me where to add the hook in the database and were the database im really new at this sorry to be a pain Edited August 16, 2012 by robchef (see edit history) Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted August 16, 2012 Share Posted August 16, 2012 Messing with your DB is not something you should be experimenting with. If you are not familiar with working with a DB I would suggest you seek professional help. You can easily destroy your whole store. If you must proceed then-- you will add the new hook in the table ps_hook. Marty Shue Link to comment Share on other sites More sharing options...
robchef Posted August 16, 2012 Author Share Posted August 16, 2012 my last question is it my sql datebase i need to be in Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted August 16, 2012 Share Posted August 16, 2012 Yes Marty Shue Link to comment Share on other sites More sharing options...
robchef Posted August 16, 2012 Author Share Posted August 16, 2012 (edited) how do i get in to the sql data base and were is it as i cant see it in dreamweaver Edited August 16, 2012 by robchef (see edit history) Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 16, 2012 Share Posted August 16, 2012 Hello robchef, there are different ways to access your mysql database. Many hosting providers have access through myphpadmin. You should contact your hosting provider if you plan to edit your database. Also, make sure you back up all your data before playing around within that database! Thanks for choosing PrestaShop! Link to comment Share on other sites More sharing options...
robchef Posted August 16, 2012 Author Share Posted August 16, 2012 Benjamin Utterback can you please tell me how to do this as im really strugling Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 16, 2012 Share Posted August 16, 2012 Hello robchef, there are different ways to access your mysql database. Many hosting providers have access through myphpadmin. You should contact your hosting provider if you plan to edit your database. Also, make sure you back up all your data before playing around within that database! Thanks for choosing PrestaShop! The first thing you should do is call your hosting provider, yeah? Link to comment Share on other sites More sharing options...
robchef Posted August 16, 2012 Author Share Posted August 16, 2012 (edited) i made a new hook in ps hook but when i try and put newsletter block in to hook into newsletter i get the This module cannot be transplanted to this hook. please help why am i getting this error Edited August 16, 2012 by robchef (see edit history) Link to comment Share on other sites More sharing options...
robchef Posted August 16, 2012 Author Share Posted August 16, 2012 any body out there Link to comment Share on other sites More sharing options...
robchef Posted August 17, 2012 Author Share Posted August 17, 2012 (edited) i put self::$smarty->assign(array( 'HOOK_HEADER' => Module::hookExec('header'), 'HOOK_TOP' => Module::hookExec('top'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'), 'HOOK_NEWSLETTER' => Module::hookExec('Newsletter') in my classes/frontcontroller.php but were abouts do i put this in my cms.tpl {if $cms->id == 8} {$HOOK_NEWSLETTER} {/if} Edited August 17, 2012 by robchef (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts