vikasmnl Posted September 14, 2016 Share Posted September 14, 2016 Hello , I want to show cart details in a specific cms page , similarly as blockcart module does in our header. Plz help Link to comment Share on other sites More sharing options...
El Patron Posted September 15, 2016 Share Posted September 15, 2016 I think you would need to modify the blockcart.php and add hook that is called in CMS page...I did not research but that would be native approach to module display placement. Link to comment Share on other sites More sharing options...
vikasmnl Posted September 15, 2016 Author Share Posted September 15, 2016 I modified blockcart.php as follows: public function install() { if ( parent::install() == false || $this->registerHook('top') == false || $this->registerHook('header') == false || $this->registerHook('actionCartListOverride') == false || $this->registerHook('estimatecart') == false public function hookestimatecart($params) { if (Tools::getValue('id_cms') != 11) return; } Then, In i add a hook in cms.tpl file as follows : {hook h="estimatecart"} <div class="rte{if $content_only} content_only{/if}"> {$cms->content} </div> but on cms page id no 11 , when i open this page nothing comes. Plz help.. Link to comment Share on other sites More sharing options...
El Patron Posted September 15, 2016 Share Posted September 15, 2016 Hi, there is more to adding a hook than just adding to .tpl file. see this information on adding new hook http://doc.prestashop.com/display/PS16/Managing+Hooks Link to comment Share on other sites More sharing options...
vikasmnl Posted September 16, 2016 Author Share Posted September 16, 2016 Hi Patron, Thanks for your help but provided link is not working can you tell me what to do more for the same... Link to comment Share on other sites More sharing options...
Rosielukas Posted September 16, 2016 Share Posted September 16, 2016 I want to add hook for showing blockcart module into a cms page, using prestashop1.6.1, Basically we want to show cart summary on screen directly not on hover on as shown in header. Please tell me the solution. 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