Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello

 

I am really hoping someone can help biggrin.gif (as i guess mst are!). Will be very concise and offer a reward!

All Fine untill I reach lines in index.php to replace. Will post code sorry if the post is long.

 

 

THIS IS WHAT I HAVE OT DO (from the instuctions)

 

Around line 78:

 

 

 

Find

 

 

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></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>

 

 

 

and replace it with

 

 

 

<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 } ?>

 

=============================================

 

Around line 247:

 

 

 

Find

 

 

 

?>

 

<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 class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

 

 

and replace it with

 

 

 

$category_query = tep_db_query("select 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 . "'");

 

$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><h1><?php echo $category['categories_htc_title_tag']; ?></h1></td>

 

 

 

 

 

Around line 294

 

 

 

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($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 } ?>

 

 

 

3 Instructions Here is my file

 

link to index.php

 

 

 

and a zip to d.l if you prefzip

 

 

I dont know what to do to be frank!

Any help with any of the 3 would be brilliant. Will sort you out some guitar related stuff or a ?10? or somthing

 

:D

 

Cheers

James

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.

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...