'PS1.7 Move ProductComments into DisplayProductExtraContent
I am tryng to show product comments list (default Prestashop1.7 module productcomments) into a custom tab called "Comments"
But the contents doesn't show.. tried many solutions but nothing
I have created a custom addon used for customization
public function hookDisplayProductExtraContent($params)
{
$module = Module::getInstanceByName('productcomments');
$contenuto = Hook::coreRenderWidget($module, 'hookDisplayFooterProduct', array());
$array = array();
$array[] = (new PrestaShop\PrestaShop\Core\Product\ProductExtraContent())
->setTitle('Comments')
->setContent($contenuto);
return $array;
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
