Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Front Page Editing


rickyabcde

Recommended Posts

If you read the text it tells you whereto go to edit it, read #2. I would however recommend that you do not use the file manager in the admin center but edit the files on your local computer and ftp them to your server.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

If you are using two languages then you need to edit two files. The one in the english folder and the in the folder that matches what your second language is.

 

If you decide that you want less spacing after you have your text correct then you will need to edit your index.php file in your main directory.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

which part I should edit in index.php?

 

Since I am just a beginner of php..

 

tks for your help

 

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

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

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

<tr>

<?php

Link to comment
Share on other sites

That's the wrong index.php - don't edit it!

 

There are two index.php files - the one you've showed (in the root directory) and one in includes/languages/english/ (this is the one you edit). Download it via FTP, take a backup copy (always make a backup of files to be edited), then edit it in a plain text edit like NotePad (don't use WordPad), and then upload it back to your server. Don't forget about 'pase errors' e.g. any text you put in that page must have a backslash before any apostrophies

 

Let's=wrong

Let\'s=right

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...