tinhyeuphonui Posted September 29, 2014 Share Posted September 29, 2014 my english not good. i install blocklayered hook left column and new hook, it's not working. if i install blocklayered hook left column => working. Help me ! Thanks advanced Link to comment Share on other sites More sharing options...
PascalVG Posted September 30, 2014 Share Posted September 30, 2014 From the Prestashop documentation: http://doc.prestashop.com/display/PS15/Managing+Modules+and+Themes#ManagingModulesandThemes-Installingmodules (Scroll down a little to "Attaching a module to a hook: Transplanting") Two things to know before transplanting a module: Some modules are written to only be attached to a given set of hooks. Some hooks are written to not accept some specific kinds of modules. Blocklayered has many hooks defined, but most for processing changes. A few are defined to 'hook' the module on the page: public function hookLeftColumn($params) { return $this->generateFiltersBlock($this->getSelectedFilters()); } public function hookRightColumn($params) { return $this->hookLeftColumn($params); } (Maybe hookFooter for categories as well, if I remember well) If you want to put it somewhere else, you may have to write your own hook function, with the appropriate contents to make it fit at that position. Some more info on this here: http://doc.prestashop.com/display/PS15/Creating+a+PrestaShop+module#CreatingaPrestaShopmodule-Implementinghooks It's good to read the user guide and the developer guide first before modifying/creating modules, so you know what needs to be done. Hope this helps, pascal. Link to comment Share on other sites More sharing options...
tinhyeuphonui Posted September 30, 2014 Author Share Posted September 30, 2014 (edited) Thanks Mr Pascal, I installed blocklayered new hook and left column, but if it's working only left colum when i installed leftcolumn, i install two hook not working thanks ! Edited September 30, 2014 by tinhyeuphonui (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted October 1, 2014 Share Posted October 1, 2014 If it's a 'new hook', that is not available (i.e. defined) in the blocklayered.php module code, you have to write this one yourself... To which "new hook" do you want to add it?? Link to comment Share on other sites More sharing options...
tinhyeuphonui Posted October 1, 2014 Author Share Posted October 1, 2014 If it's a 'new hook', that is not available (i.e. defined) in the blocklayered.php module code, you have to write this one yourself... To which "new hook" do you want to add it?? I defined new hook, example displayTestLayered. Important, i used two hook on one page. Thanks you ! Link to comment Share on other sites More sharing options...
PascalVG Posted October 1, 2014 Share Posted October 1, 2014 I'm afraid we can't do too much without the code you created. could you add it here?? please specify clearly in which files you added the different pieces of code (give full path of files) Link to comment Share on other sites More sharing options...
PascalVG Posted October 1, 2014 Share Posted October 1, 2014 oh, also please give URL to site, and PrestaShop version you use. Thanks! Link to comment Share on other sites More sharing options...
tinhyeuphonui Posted October 1, 2014 Author Share Posted October 1, 2014 oh, also please give URL to site, and PrestaShop version you use. Thanks! Hi, my site used VPN not public, Mr. PascalIVG can used teamview remote desktop, i used localhost. Link to comment Share on other sites More sharing options...
PascalVG Posted October 1, 2014 Share Posted October 1, 2014 Please start with giving the code you added to create the hook, the function to add contents and how you added the new hook to the page. Link to comment Share on other sites More sharing options...
tinhyeuphonui Posted October 22, 2014 Author Share Posted October 22, 2014 Hi, PascaIVG, My site public : http://test.coophomeshopping.vn/vn/lam-dep/ It's a problem filter. Thanks advance ! 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