Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unexpected Text on main page


akyana

Recommended Posts

Posted

We've had a problem inherited from the old guy where we had a big gap at the top of our guest welcome msg and main text.

 

I've been trying to cure that today, but have come up with (caused?) another problem - code being displayed as text. For the life of me I cannot find it. Anyone with a pair of fresh eyes feel like giving me some pointers? I feel like my bum is being kicked right now :(

 

Thanks in advance.

 

Development site: http://www.scootersoriginali.com/testosc/index.php

 

Code for testosc/includes/languages/english/index.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', 'This is where I will put my new text');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Stuff');

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', 'Scooter Parts');

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 == 'Scooters Originali') {

define('HEADING_TITLE', 'Scooters Originali');

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

define('HEADING_TITLE', 'Categories');

}

?>

Posted

You just have to define it. basically it says HEADING_TITLE.. if you just go to english.php, and type this

 

define('HEADING_TABLE','put the text wanted here');

 

you will be all good..

 

basically that is there instead of regular text so that people with multilanguage sites dont have to make different website for each language. it just calls of the define depending on which language you are in.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Posted

} elseif ($category_depth == 'Scooters Originali') {

Should be

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

Posted
} elseif ($category_depth == 'Scooters Originali') {

Should be

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

 

Many, many, many thanks. I can now sleep in peace tonight, (after I find which file is referencing table_background_default.gif, which was made transparent but full size, or the sizing in the code wasn't changed!!)

 

Thanks again

 

Andrea the mere accountant ;)

Posted

catalog/index.php find around line 300

			<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

Posted
catalog/index.php find around line 300

			<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

Yeah, I found it now I'm not distracted by the Header_title problem.

 

Thanks for the help Brian. I really, really appreciate it. PM me when you have an accounting problem, UK or US, and I'll return the favour.

 

All I have to do now is to put some decent copy in and then its on to figure out the info boxes. Oh, joy of joys ;)

 

Andrea

Archived

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

×
×
  • Create New...