ann1874 Posted February 7, 2008 Posted February 7, 2008 I have just installed the catalog part of HTC ver 2.6.3. The instructions said that if it changed the home page title to Home page oscommerce that the install is working. It did change that title to the default. but if I click on a catagory page I now have this message at the place where the "Let's see what we have here" was: if (isset($HTTP_GET_VARS['manufacturers_id'])) $db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from " . TABLE_MANUFACTURERS_INFO . " where languages_id = '" . (int)$languages_id . "' and manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); else $db_query = tep_db_query("select categories_htc_title_tag as htc_title, categories_htc_description as htc_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'"); $htc = tep_db_fetch_array($db_query); ?> I have not yet installed the admin part of the contribution for fear that this is an error? Is this Supposed to be like this until the entire Contribution is added or have I made an error? If this is an error can anyone please tell me how to fix it. This is not a clean shop. The following contributions have been added: CCGV Trad CSS Editor Easy Populate 2.76d remove default .gif specials on default any and all help would be great! Thanks in Advance!! Quote
maxxxie Posted February 7, 2008 Posted February 7, 2008 I have just installed the catalog part of HTC ver 2.6.3. The instructions said that if it changed the home page title to Home page oscommerce that the install is working. It did change that title to the default. but if I click on a catagory page I now have this message at the place where the "Let's see what we have here" was: if (isset($HTTP_GET_VARS['manufacturers_id'])) $db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from " . TABLE_MANUFACTURERS_INFO . " where languages_id = '" . (int)$languages_id . "' and manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); else $db_query = tep_db_query("select categories_htc_title_tag as htc_title, categories_htc_description as htc_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'"); $htc = tep_db_fetch_array($db_query); ?> I have not yet installed the admin part of the contribution for fear that this is an error? Is this Supposed to be like this until the entire Contribution is added or have I made an error? If this is an error can anyone please tell me how to fix it. This is not a clean shop. The following contributions have been added: CCGV Trad CSS Editor Easy Populate 2.76d remove default .gif specials on default any and all help would be great! Thanks in Advance!! Looks to me like in your edits you deleted or missed adding a <?php opening tag. I don't know anything about HTC, but my guess is that at some point in the instructions, you needed to add the code above - locate the relevant file, and find the code. Just before it, try adding an opening tag so that it reads: <?php if (isset($HTTP_GET_VARS['manufacturers_id'])) $db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from " . TABLE_MANUFACTURERS_INFO . " where languages_id = '" . (int)$languages_id . "' and manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); else $db_query = tep_db_query("select categories_htc_title_tag as htc_title, categories_htc_description as htc_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'"); $htc = tep_db_fetch_array($db_query); ?> Be sure to back up the files first, so you can revert if it all goes screwy. Cheers, Max Quote
ann1874 Posted February 9, 2008 Author Posted February 9, 2008 Max: Thanks you so much for the insight. I found that I indeed had an extra ?> right before the code that I inserted. Again thank you it looks like everything is working correctly now. By the way sorry for the slow reply. My son fell sick; so I haven't been able to get back to this until now. Ann Looks to me like in your edits you deleted or missed adding a <?php opening tag. I don't know anything about HTC, but my guess is that at some point in the instructions, you needed to add the code above - locate the relevant file, and find the code. Just before it, try adding an opening tag so that it reads: <?php if (isset($HTTP_GET_VARS['manufacturers_id'])) $db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from " . TABLE_MANUFACTURERS_INFO . " where languages_id = '" . (int)$languages_id . "' and manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); else $db_query = tep_db_query("select categories_htc_title_tag as htc_title, categories_htc_description as htc_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'"); $htc = tep_db_fetch_array($db_query); ?> Be sure to back up the files first, so you can revert if it all goes screwy. Cheers, Max Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.