Hi Jack,
This looks like a very useful contribution. I managed to get it installed thanks to the newbie friendly documentation.
I ran the test and have one syntax error which I cannot seem to fix.
Parse error: syntax error, unexpected '}' in /home/alarmvib/public_html/admin/categories.php on line 845
When I remove the likely '}', I get this error:
Parse error: syntax error, unexpected T_ELSEIF in /home/alarmvib/public_html/admin/categories.php on line 846
---------------------
This is the code from the Install_Admin.txt file:
FIND (around line 831):
<?php
} elseif ($action == 'new_product_preview') {
$product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'");
REPLACE WITH:
<?php /*** Begin Header Tags SEO ***/ ?>
<?php
} elseif ($action == 'new_product_preview') {
$product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_desc_tag, pd.products_head_keywords_tag, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'");
/*** End Header Tags SEO ***/
===============================================
Here is Header Tags code included with some lines above:
<script type="text/javascript">
$('#products_date_available').datepicker({
dateFormat: 'yy-mm-dd'
});
</script>
</form>
<?php /*** Begin Header Tags SEO ***/ ?>
<?php
}
elseif ($action == 'new_product_preview') {
$product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_desc_tag, pd.products_head_keywords_tag, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'");
/*** End Header Tags SEO ***/
$product = tep_db_fetch_array($product_query);
$pInfo = new objectInfo($product);
$products_image_name = $pInfo->products_image;
Looking forward to a fix.
Thanks
batchos