Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Index.php


Joash

Recommended Posts

I'm currently setting up my oscommerce website, and I cant seem to edit the text on the main page.

 

Here is my code found in catalog/includes/languages/english/index.php

 

 

 

<?php
/*
 $Id: index.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2007 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', 'Our Online Store allows you the convenience of ordering any message 24 hours a day on either; CD & DVD. For your protection, orders are processed with SSL encryption on a secure server. Servicing Australia and New Zealand, you may contact us  by Email or by phone call 03 5964-4939. (NZ +61 3 5964 4939).');
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', 'Let\'s See What We Have Here');
 define('TABLE_HEADING_IMAGE', '');
 define('TABLE_HEADING_MODEL', 'Model');
 define('TABLE_HEADING_PRODUCTS', 'Product Name');
 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');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', 'What\'s New Here?');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}
?>

 

 

Any help would be much appreciated

Link to comment
Share on other sites

I installed the oscommerce main setup file, and copied a few codes over into the design of it in header, footer etc:

 

But what is wrong with that code above?

 

BTW, here is the site URL

 

Nothing is wrong with it...your index.php file just isn't echoing the text so its either been commented out or not included in index.php

Link to comment
Share on other sites

So, I need to edit Catalouge/Index.php What code would I put in to echo the code above?

 

Joash

 

Thats correct...

 

you first need to find where you want to place the text then simply add: <?php echo TEXT_MAIN; ?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...