Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Header Tags Controller for Admin MS 2.2


Farrukh

Recommended Posts

BillyRay, I put the STSv4.2 with HTC 2.5.9 contribution together. The contribution was put together with a stock oscommerce store in mind, meaning, you do not have any other contributions installed. If you do have other contributions installed, then I suggest downloading the HTC 2.5.9 contribution and install it individually aside from other contributions.

 

STSv4.2 and HTCv2.5.9 are the most current stable releases of each so I thought it best to "bundle" the two together.

 

I did not include instructions for a manual installation since you could easily get those instructions with the HTCv2.5.9 contribution itself. However, if you need some help, let me know how you tried to install the "bundle" and maybe I could help show you where you went wrong.

 

Note: The reference to "catalog" is commonly known as your stores root folder, the folder where all the stores files and folders are located such as catalog/admin and catalog/includes and such. Your catalog folder would be the name of the folder that you installed your oscommerce store into. This could be "eshop", "mystore" or "whatever". It could also be the root folder of your web site such as "mystore.com/"

 

 

 

The clean_osc folder in the contribution has all of the modified files inside the folder that you need to copy over your stores files in the same file/folder structure except of course not copying the actual "clean_osc" folder itself. You need to copy the files and folders inside such as "admin" "includes" "database_setup.php" etc. to your store.

 

I hope this helped clarify this for you.

Edited by bkellum

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

  • Replies 4.6k
  • Created
  • Last Reply

Top Posters In This Topic

Greetings! I am having an issue on my site in which some of the meta tag information is being placed ABOVE the DOCTYPE declaration info. Here's how the top of the page source looks on this page (http://www.kimandjason.com/shop/index.php):

 

<title>Kim & Jason Lemonade Stand</title>

<meta name="Description" content="Cool stuff for the young at heart, including unique greeting cards, t-shirts, artwork and gifts."/>

<meta name="Keywords" content="unique gifts"/>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

<!-- EOF: Generated Meta Tags -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html dir="LTR" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Kim & Jason Lemonade Stand</title><base href="https://www.kimandjason.com/shop/">

 

Does anyone know what is causing this?

Thanks,

Jason

Link to comment
Share on other sites

It can only appear where you place the code for it. So it seems you put the code in the wrong place in the file.

 

Jack

 

That makes sense. Any idea what specific file might be the culprit? I use STS and the template itself DOES have the doctype info first, so I'm not sure which file in the Header Tags contrib is the one responsible for actually inserting the header information above it.

 

Thanks for the help.

 

Jason

Link to comment
Share on other sites

I don't use STS so you will need to ask in that thread for help on that one. But, normally. the code goes in the heade section of each file in the root you want to have tags dissplaed in. If your problem is with your home page, I would check the index.php page first.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I don't use STS so you will need to ask in that thread for help on that one. But, normally. the code goes in the heade section of each file in the root you want to have tags dissplaed in. If your problem is with your home page, I would check the index.php page first.

 

Jack

 

Actually, the problem is with every page. The Header Tag information gets placed above the doctype info on all pages. I guess I'll try the STS thread.

Link to comment
Share on other sites

Hi,

 

i've installed HeaderTags_v2.5.9.1 (so far adjusted index and product_info, the back-end looks fine.

 

problem: although it renders out the default tags that I set up and which i can also change using the tool, the options htta, htca etc... do not change anything

 

it still keeps rendering the default tags no matter what i choose or change

 

i notice the header tag comment in the source code seems to comae after the meta

 

http://www.oxfamirelandshop.org/catalog

 

please advise

Edited by oxfam_karl
Link to comment
Share on other sites

yes it is being updated. I'm wondering though as to why the <!-- EOF: Generated Meta Tags --> and the closing comment are around my upper table rather than around the meta tags??

 

could that be causing the problem. I was sure I filled in all the relevent files php as directed in the concise instructions.

Link to comment
Share on other sites

it just struck me that i never changed the following code in index as those images were deleted during customisation.

 

would this be causing the problem?

 

 

Around line 298

 

Find

 

<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

 

REPLACE with

 

<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, $category['categories_htc_title_tag'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

<?php if (tep_not_null($htc['htc_description'])) { ?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><h2><?php echo $htc['htc_description']; ?></h2></td>

</tr>

<?php } ?>

Edited by oxfam_karl
Link to comment
Share on other sites

yes it is being updated. I'm wondering though as to why the <!-- EOF: Generated Meta Tags --> and the closing comment are around my upper table rather than around the meta tags??

 

could that be causing the problem. I was sure I filled in all the relevent files php as directed in the concise instructions.

Only the closing comment is displayed. That should not be the problem. If you are using STS, then there are others that have had the same problem. You could try looking at their posts.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

When you installed the contribution, the instructions said to stop after making the changes to the shop and checking to see if the title displayed correctly. You should have seen Home in the title. Did that work?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I can't think of anything else. Mybe something in your code is preventing it from working. If you have the title code in index.php and you have text in the fields for the index.php section in includes/languages/english/header_tags.php, then the text should display.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

ok thanks anyway

 

its a wierd one, it does half work in that it controls the title and metatags but only renders the default tags in text control, although the admin section itself remembers the differences you make, which means it does write the tags to the storage file, it just doesnt apply them to the pages. it also styles the new heading tags on each page.

 

i dunno, maybe i made some jeuvenile error. I suppose at least the title tag is better than what i was using.

 

karl

Link to comment
Share on other sites

Did you delete and then add the index page in admin->Header Tags? That will break it if you do. If not, open the english/header_tags.pgp and change teh default title and the title for index yourself to something that is obvious like XXX and YYY. Then see if either show up when you view the page.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hello, I think i got everything installed.. But i keep getting this.

 

 

Parse error: parse error, unexpected '<' in /home/leather/public_html/catalog/index.php on line 67

 

I know it means something is wrong on that line but i can t see what, ive edited alot but it still comes up the same.. anyone got any ideas?

 

here is ther code

 

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

$col_right_display = 'no';

require('includes/application_top.php');

 

// the following cPath references come from application_top.php

$category_depth = 'top';

if (isset($cPath) && tep_not_null($cPath)) {

$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");

$cateqories_products = tep_db_fetch_array($categories_products_query);

if ($cateqories_products['total'] > 0) {

$category_depth = 'products'; // display products

} else {

$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");

$category_parent = tep_db_fetch_array($category_parent_query);

if ($category_parent['total'] > 0) {

$category_depth = 'nested'; // navigate through the categories

} else {

$category_depth = 'products'; // category has no products, but display the 'no products' message

}

}

}

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

// ADDED BY CLEMENT for design

define('HEADING_IMAGE_FILE', 'table_background_default.gif');

require(DIR_WS_INCLUDES . FILENAME_DESIGN);

//**

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML <?php echo HTML_PARAMS; ?>>

<HEAD>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=<?php echo CHARSET; ?>">

<TITLE><?php echo TITLE; ?></TITLE>

<BASE HREF="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<LINK REL="stylesheet" TYPE="text/css" HREF="stylesheet.css">

<?php echo HEAD_TAGS; ?>

 

<?php echo BODY_TAG; ?>

 

<!-- header //-->

 

<?php

require(DIR_WS_INCLUDES . 'header.php');

 

 

if (COLUMN_LEFT_DISPLAY == 'true') {

echo '<!-- left_navigation //-->';

require(DIR_WS_INCLUDES . 'column_left.php');

echo '<!-- left_navigation_eof //-->';

}

?>

 

<!-- body_text //-->

<?php

if ($category_depth == 'nested') {

$category_query = tep_db_query("select cd.categories_name, c.categories_image, cd.categories_htc_title_tag, cd.categories_htc_description from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");

<TD <?php echo CONTENT_PARAM_FIRST_TD; ?>>

 

<?php echo CONTENT_TOP_FIRST_TD; ?>

 

<TABLE <?php echo CONTENT_PARAM_FIRST_TABLE; ?>>

 

<TR>

<TD><TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">

<TR>

<TD valign="top"><TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">

<TR>

<td><h1><?php echo $category['categories_htc_title_tag']; ?></h1></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

<?php if (tep_not_null($category['categories_htc_description'])) { ?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><h2><?php echo $category['categories_htc_description']; ?></h2></td>

</tr>

<?php } ?>

</TR>

<TR>

<TD><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></TD>

</TR>

<TR>

<TD><TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="2">

<TR>

<TD><TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="2">

<TR>

<?php

if (isset($cPath) && strpos('_', $cPath)) {

// check to see if there are deeper categories within the current category

$category_links = array_reverse($cPath_array);

for($i=0, $n=sizeof($category_links); $i<$n; $i++) {

$categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");

$categories = tep_db_fetch_array($categories_query);

if ($categories['total'] < 1) {

// do nothing, go through the loop

} else {

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");

break; // we've found the deepest category the customer is in

}

}

} else {

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");

}

 

$number_of_categories = tep_db_num_rows($categories_query);

 

$rows = 0;

while ($categories = tep_db_fetch_array($categories_query)) {

$rows++;

$cPath_new = tep_get_path($categories['categories_id']);

$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';

echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a style="color: #D1D1D1;" href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";

if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {

echo ' </tr>' . "\n";

echo ' <tr>' . "\n";

}

}

 

// needed for the new products module shown below

$new_products_category_id = $current_category_id;

?>

 

</TR>

</TABLE></TD>

</TR>

<TR>

<TD><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></TD>

</TR>

</TABLE></TD>

</TR>

</TABLE></TD>

<TD WIDTH="<?php echo COLUMN_RIGHT_WIDTH; ?>" VALIGN="top" STYLE="background: url(images/design/bg_repeat_column_right.gif) repeat-y left top;"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></TD>

</TR>

</TABLE></TD>

</TR>

<?php echo CONTENT_BOTTOM_FIRST_TABLE; ?>

</TABLE>

<?php echo CONTENT_BOTTOM_FIRST_TD; ?>

</TD>

<?php

} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {

// create column list

$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,

'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,

'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,

'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,

'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,

'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,

'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,

'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

 

asort($define_list);

 

$column_list = array();

reset($define_list);

while (list($key, $value) = each($define_list)) {

if ($value > 0) $column_list[] = $key;

}

 

$select_column_list = '';

 

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {

switch ($column_list[$i]) {

case 'PRODUCT_LIST_MODEL':

$select_column_list .= 'p.products_model, ';

break;

case 'PRODUCT_LIST_NAME':

$select_column_list .= 'pd.products_name, ';

break;

case 'PRODUCT_LIST_MANUFACTURER':

$select_column_list .= 'm.manufacturers_name, ';

break;

case 'PRODUCT_LIST_QUANTITY':

$select_column_list .= 'p.products_quantity, ';

break;

case 'PRODUCT_LIST_IMAGE':

$select_column_list .= 'p.products_image, ';

break;

case 'PRODUCT_LIST_WEIGHT':

$select_column_list .= 'p.products_weight, ';

break;

}

}

 

// show the products of a specified manufacturer

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {

// We are asked to show only a specific category

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'";

} else {

// We show them all

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";

}

} else {

// show the products in a given categorie

if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {

// We are asked to show only specific catgeory

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";

} else {

// We show them all

$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";

}

}

 

if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {

for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {

if ($column_list[$i] == 'PRODUCT_LIST_NAME') {

$HTTP_GET_VARS['sort'] = $i+1 . 'a';

$listing_sql .= " order by pd.products_name";

break;

}

}

} else {

$sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);

$sort_order = substr($HTTP_GET_VARS['sort'], 1);

$listing_sql .= ' order by ';

switch ($column_list[$sort_col-1]) {

case 'PRODUCT_LIST_MODEL':

$listing_sql .= "p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_NAME':

$listing_sql .= "pd.products_name " . ($sort_order == 'd' ? 'desc' : '');

break;

case 'PRODUCT_LIST_MANUFACTURER':

$listing_sql .= "m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_QUANTITY':

$listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_IMAGE':

$listing_sql .= "pd.products_name";

break;

case 'PRODUCT_LIST_WEIGHT':

$listing_sql .= "p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

case 'PRODUCT_LIST_PRICE':

$listing_sql .= "final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";

break;

}

}

?>

<TD <?php echo CONTENT_PARAM_FIRST_TD; ?>>

 

<?php echo CONTENT_TOP_FIRST_TD; ?>

 

<TABLE <?php echo CONTENT_PARAM_FIRST_TABLE; ?>>

 

<TR>

<TD>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);

?>

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><h1><?php echo $htc['htc_title']; ?></h1></td>

</TR>

<TR>

<?php

// optional Product List Filter

if (PRODUCT_LIST_FILTER > 0) {

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name";

} else {

$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name";

}

$filterlist_query = tep_db_query($filterlist_sql);

if (tep_db_num_rows($filterlist_query) > 1) {

echo ' <td align="right" class="main" style="padding-right: 10px;">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' ';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);

$options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));

} else {

echo tep_draw_hidden_field('cPath', $cPath);

$options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));

}

echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);

while ($filterlist = tep_db_fetch_array($filterlist_query)) {

$options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']);

}

echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"');

echo '</form></td>' . "\n";

}

}

 

// Get the right image for the top-right

$image = DIR_WS_IMAGES . 'table_background_list.gif';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

$image = tep_db_fetch_array($image);

$image = $image['manufacturers_image'];

} elseif ($current_category_id) {

$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");

$image = tep_db_fetch_array($image);

$image = $image['categories_image'];

}

?>

</TR>

</TABLE></TD>

</TR>

<TR>

<TD><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></TD>

</TR>

<TR>

<TD><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></TD>

</TR>

<?php echo CONTENT_BOTTOM_FIRST_TABLE; ?>

</TABLE>

<?php echo CONTENT_BOTTOM_FIRST_TD; ?>

</TD>

<?php

require(DIR_WS_INCLUDES . 'column_right.php');

} else { // default page

?>

<TD <?php echo CONTENT_PARAM_FIRST_TD; ?>>

 

<?php echo CONTENT_TOP_FIRST_TD; ?>

 

<TABLE <?php echo CONTENT_PARAM_FIRST_TABLE; ?>>

 

<?php //echo CONTENT_TOP_FIRST_TABLE; ?>

 

<TR>

<TD><TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">

<TR>

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);

?>

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><h1><?php echo $htc['htc_title']; ?></h1></td>

<?php echo CONTENT_TOP_FIRST_TABLE; ?>

<TR>

<TD CLASS="main"><?php echo tep_customer_greeting(); ?></TD>

</TR>

<TR>

<TD><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></TD>

</TR>

<TR>

<TD align="left" valign="middle" style="padding-left: 10px;"><img src="images/design/photo_index.jpg" border="0"></TD>

</TR>

<TR>

<TD><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></TD>

</TR>

<TR>

<TD CLASS="main"><?php echo TEXT_MAIN; ?></TD>

</TR>

<TR>

<TD><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></TD>

</TR>

</TABLE>

</TD>

<TD WIDTH="<?php echo COLUMN_RIGHT_WIDTH; ?>" VALIGN="top" STYLE="background: url(images/design/bg_repeat_column_right.gif) repeat-y left top;"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></TD>

</TR>

<?php

include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);

?>

</TABLE></TD>

</TR>

<?php echo CONTENT_BOTTOM_FIRST_TABLE; ?>

</TABLE>

<?php echo CONTENT_BOTTOM_FIRST_TD; ?>

</TD>

<?php

}

?>

<!-- body_text_eof //-->

 

<?php

if (COLUMN_RIGHT_DISPLAY == 'true') {

echo '<!-- right_navigation //-->';

require(DIR_WS_INCLUDES . 'column_right.php');

echo '<!-- right_navigation_eof //-->';

}

 

require(DIR_WS_INCLUDES . 'footer.php');

?>

 

<?php echo ENDING_TAGS; ?>

 

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

thanks if someone can help..

 

Do i install the admin section after i get this right?

 

Lee

Link to comment
Share on other sites

Hello, I think i got everything installed.. But i keep getting this.

Parse error: parse error, unexpected '<' in /home/leather/public_html/catalog/index.php on line 67

Lee

Looks like you missing a closing ?>

if ($category_depth == 'nested') {

$category_query = tep_db_query("select cd.categories_name, c.categories_image, cd.categories_htc_title_tag, cd.categories_htc_description from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");,?>

 

<TD <?php echo CONTENT_PARAM_FIRST_TD; ?>>

-Marizka

Link to comment
Share on other sites

YES!!

 

Thank you, that fixed it.. Only problem is now it trows everything out of line like in the site map.. Hmmm do you know where i can edit or how i can fix that problem?

 

Thanks,

 

Lee.

One possibility is that a missing </table> tag or and extra </table> tag needs to be added or removed. Look to see that your <table> tags all match up with the closing </table> tag.

-Marizka

Link to comment
Share on other sites

YES!!

 

Thank you, that fixed it.. Only problem is now it trows everything out of line like in the site map.. Hmmm do you know where i can edit or how i can fix that problem?

 

Thanks,

 

Lee.

Looking at how your html is parced for dynamic_sitemap.php I notice the following

<td width="125" valign="top">

   <table width="125" cellspacing="0" cellpadding="2" border="0">

   <tbody>

   <tr>

   <td width="COLUMN_LEFT_WIDTH"  valign="top" style="background: transparent  url(images/design/bg_repeat_column_left.gif) repeat-y scroll left top;  -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial;  -moz-background-inline-policy: -moz-initial;">

   <table width=""  cellspacing="0" cellpadding="0" border="0">

   </table>

   </td>

   </tr>

   </tbody>

   </table>

   </td>

Is COLUMN_LEFT_WIDTH a constant you have defined somewhere that its suppose to evaluate to a number? Maybe this could be causing the issue.

Link to comment
Share on other sites

</td>[/html]

Is COLUMN_LEFT_WIDTH a constant you have defined somewhere that its suppose to evaluate to a number? Maybe this could be causing the issue.

 

Hmm, to be honest im not sure, as im very new to this.. But what should that be? So do you think that is maybe causing the problem in all the files?

 

Thanks a million for you help

 

Lee.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...