setCommentsPerPage(10);
$gb->setTitle($product['name']);
$db = getDbData();
if ($db === false)
die("Cannot find a database");
$gb->loadDb(ImDb::from_db_data($db), 'w5_yqi4my9w_products_comments');
$gb->showSummary(true);
$newMessage = $gb->checkNewMessages(false, '', 'productpage', $imSettings['general']['url'] . 'admin/cart-comments.php?category=' . $product['categoryPath'][0] . '&product=' . $id);
$productsData = $ecommerce->getProductsData(array($id));$productData = isset($productsData[$id]) ? $productsData[$id] : array();if ($newMessage && $imSettings['admin']['enable_notifications']) {
Configuration::getNotifier()->sendNotification('products_comments', isset($productData['name']) ? $productData['name'] : l10n('product_comment_notification_title', 'New Comment'), l10n('products_new_comment_notification_body', 'You received a new comment'), 'cart-comments.php?product=' . $id . (isset($productData['category']) ? '&category=' . urlencode($productData['category']) : ''));
}
$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();
?>