Jump to content

[Solved] Transplant wishlist block to displayLeftColumnProduct


Recommended Posts

Hi,

I'd like to move the wishlist module block out of displayProductbuttons and into the displayLeftColumnProduct block.

 

It is not allowing me to transplant the module.

The displayLeftColumnProduct block has the Favourite products module already in it. I want to show both together.

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

I think so!

Currently favorite products is showing in displayleftcolumnproduct hook.

It shows up below the multiple image thumbnails.

From Firefox Web Developer module it shows:

 

<ul id="usefull_link_block"><li id="left_share_fb" style="display: none;"></li><li id="favoriteproducts_block_extra_add" class="add"></li><li id="favoriteproducts_block_extra_added"></li><li id="favoriteproducts_block_extra_removed"></li></ul>

Link to comment
Share on other sites

this hook is called

extraleft and also displayleftcolumnproduct :)

 

"This hook is called right before the "Print" link, under the picture on product page. This is ideal place for displaying buttons or links to do something with product page (like print, share buttons of social networks, etc)."

 

so, you must open the blockwishlist.php file in module directory and add somewhere in class { }:

 


public function hookextraleft($params)
{
$this->smarty->assign('id_product', (int)(Tools::getValue('id_product')));
return ($this->display(__FILE__, 'blockwishlist-extra.tpl'));
}

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

  • 7 months later...
×
×
  • Create New...