setCommentsPerPage(10);
$gb->setTitle($product['name']);
$db = getDbData();
if ($db === false)
die("Cannot find a database");
$gb->loadDb(ImDb::from_db_data($db), 'w5_1u5txfyc_products_comments');
$gb->showSummary(true);
$newMessage = $gb->checkNewMessages(false, '', 'productpage', $imSettings['general']['url'] . 'admin/cart-comments.php?category=' . $product['categoryPath'][0] . '&product=' . $id);
if ($newMessage && $imSettings['admin']['enable_manager_notifications']) {
Configuration::getNotifier()->sendNotification('PRODUCTPAGE_NEW_COMMENT', '{ "controlPanelQueryString": "redirect=productpage-comment&post='.$outputID.'"}');
}
$gb->showForm(true, false, false, '', 'productpage', $imSettings['general']['url'] . 'admin/cart-comments.php?category=' . $product['categoryPath'][0] . '&product=' . $id);
$gb->showComments(true, 'asc', false, true);
$ratingsData = $gb->getRatingsDataSummary();
?>