Jump to content

How to show cart details like block cart in a cms page in prestashop 1.6


vikasmnl

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...