I've managed to get a working installation going (using TEST_VERSION_extra_product_tabs_v1.0.4_b8.zip)for 1.5.4 for this extension, tables are present, tab data are being added correctly to the tables, but my product page has errors and it's choking here:
Code: Select all
// End ADdpublic function getProductTabs($product_id) {
$product_tab_data = array();
$product_tab_query = $this->db->query("SELECT t.tab_id, td.name, pt.text, t.position, t.show_empty FROM " . DB_PREFIX . "product_tab pt LEFT JOIN " . DB_PREFIX . "tab t ON (pt.tab_id = t.tab_id) LEFT JOIN " . DB_PREFIX . "tab_description td ON (t.tab_id = td.tab_id) WHERE pt.product_id = '" . (int)$product_id . "' AND td.language_id = '" . (int)$this->config->get('config_language_id') . "' AND pt.language_id = '" . (int)$this->config->get('config_language_id') . "' AND t.status = '1' AND ( t.show_empty = '1' OR NOT pt.text REGEXP '^[[:space:]]*$' ) ORDER BY t.position, t.sort_order, td.name");
foreach ($product_tab_query->rows as $product_tab) {
$product_tab_data[] = array(
'tab_id' => $product_tab['tab_id'],
'name' => $product_tab['name'],
'text' => $product_tab['text'],
'position' => $product_tab['position']
);
}
return $product_tab_data;
}
}
?>
Completely clueless on what's happening here.
Error:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/****/public_html/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 605
Also, I checked to make sure it wasn't my product.tpl template just in case because I had added some changes, so I uploaded a fresh copy. No luck, same error. (using the default theme) / vqmod 2.1.7