Jump to content

hookDisplayProductButtons template value add in cart when click on add to cart button


Recommended Posts

hi,

i am new in prestashop. i create one template and this template call in DisplayProductButtons hook. i want to this template data value in cart when i click on "add to cart button". any help or suggestion for how do that...

 

Thanks in advance..

Link to comment
Share on other sites

hello...

 

all the value is goes in cartcontroller...

and its also cheak the blockcart modules in blockcart.php file

it is call the one function like

public function hookAjaxCall($params)
    {
        if (Configuration::get('PS_CATALOG_MODE'))
            return;

        $this->assignContentVars($params);
        $res = $this->display(__FILE__, 'blockcart-json.tpl');
        return $res;
    }

all the value is includeed the blockcart-json.tpl file

Edited by Nishith (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...