Hi I have installed this contribution but am having a problem with the product pages. When I try to edit a product I get the following error message.
"Fatal error: Call to undefined function: jjg_db_getattributesetid() in /home/httpd/vhosts/1stsexshop.com/httpsdocs/catalog/admin/categories.php on line 539"
I seem to be able to add Attribute sets fine.
Here is the portion of the code from my categories.php file
"<!-- //JJG building drop down list - Begin -->
<?php
if( empty($pInfo->products_id) ){
$iteration = 0;
}else{
$getOptionsCount_query = tep_db_query('SELECT count( DISTINCT options_id ) as count
FROM '. TABLE_PRODUCTS_ATTRIBUTES .'
WHERE `products_id` ='.$pInfo->products_id);
$arr_getOptionsCount = tep_db_fetch_array($getOptionsCount_query);
$arr_pas_id = jjg_db_getAttributeSetId($pInfo->products_id, $action);
if( !empty($arr_pas_id) ){
$iteration = $arr_getOptionsCount['count'];
}
}
for($i=0; $i<=$iteration; $i++){
?>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_ATTRIBUTES_SET; ?></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_pull_down_menu('products_attributes_sets_id_'.$i, $attribute_sets_array, $arr_pas_id[$i] ); ?></td> </tr>
<?php
}
?>
<tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?> <?php echo tep_draw_hidden_field('AttributeSetCount', $arr_getOptionsCount['count']+1); ?>
</td>
</tr>
<!-- //JJG building drop down list - End -->"
It is straight from the install instrucions.
Can anyone shed any light on this one.
Cheers
Paul