Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Someone Please Help Me!


Guest

Recommended Posts

I tried to replace the default text for my main text, and now my page is coming up completely... and I mean completely blank.

Visit My Website

and here is my code;

 

<?php

/*

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

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('TEXT_MAIN', 'I would like an image here intead of text.');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

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

define('HEADING_TITLE', '...where your dream wedding begins.');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', '...where your dream wedding begins.');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

Link to comment
Share on other sites

My oh my alittle impatient are'nt we?

Unless I'm missing something I don't see anything wrong with that.

Did you modify the catalog/index.php file?

By the way to add an image do this

define('TEXT_MAIN', '<img src="images/your_image_here.gif alt="your _alt_text_here" border="0">');

Link to comment
Share on other sites

yes, sorry I am a little impatient I suppose.

Apparently I did edit both catalog/index.php, and catalog/includes/languages/english/index.php

They now appear to be exactly the same. :( I know they shouldn't be.

I did not back up my file right before I made the changes, however I do have a backed up file. And I did back up my file since making those changes.

If I restore the older backed up file, and copy the catalog/index.php file, will I then be able to restore my most recent backed up file, and paste the correct catalog/index.php file.

Do you understand what i'm saying? :blink:

And by the way thanks for the code to insert an image! I'll try that after I get all this othe stuff sorted.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...