Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Lets see what we have here


julianpuje

Recommended Posts

I've only just noticed but the text at the top of the product page has gone?

I've checked the languages/index.php and my catalog/index.php and it all seems to be there. Also checked the text isn't the same as the background. Very starnge, but i must have done something to lose it. Anybody got any ideas?

Heres a copy of the areas of code from both files:

 

TIA

Julian

 

languages/english/index.php

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', $categories['categories_name']);

catalog/index.php

I've removed the line for the image.

<!-- body_text //-->
<?php
if ($category_depth == 'nested') {
$category_query = tep_db_query("select cd.categories_name, c.categories_image 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 . "'");
$category = tep_db_fetch_array($category_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 align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></td>
</tr>
</table></td>
</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>

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Link to comment
Share on other sites

Hi again,

 

I've spent a few days now trying to get my head around this one, but with no luck. Can anyone see a mistake in the code i posted above? I'm pretty sure i haven't changed it since it was working, so i am completely at a loss to where the problem is.

Any help or advice appreciated.

 

Thanks

 

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Link to comment
Share on other sites

Hi again,

 

I've spent a few days now trying to get my head around this one, but with no luck. Can anyone see a mistake in the code i posted above? I'm pretty sure i haven't changed it since it was working, so i am completely at a loss to where the problem is.

Any help or advice appreciated.

 

Thanks

 

Julian

 

 

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

define('HEADING_TITLE', $categories['categories_name']);

 

 

you cannot do this in the language file because it is loaded before $categories['categories_name'] is determined.

 

instead :

 

td align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

in your body :

 

<td align="center" class="pageHeading"><?php echo $categories['categories_name']; ?></td>

Treasurer MFC

Link to comment
Share on other sites

Thanks for the reply Boxtel, but that didn't work. Maybe i mis understood, but i put the top line in my english/index.php and the body text in my catalog/index,php.

I've tried the contributions that are supposed to do this, but they didn't work either.

 

Update: What i want to do is show my products catagory at the top of the page instead of "lets see what we have here". It was working and now it isn't?? I have the identical site on a different URL and that works using the code i have posted above. Lost now!!

 

Any more help on this please.

 

TIA

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...