Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TEXT_MAIN issues


p0sta1

Recommended Posts

I've read so many posts my eyes are going to bleed.

 

I need to change the default text:

"This is a default setup of the osCommerce project, products shown are for demonstrational purposes, any products purchased will not be delivered nor will the customer be billed. Any information seen on these products is to be treated as fictional."

 

I opened up catalog/includes/languages/english/index.php, and had a looksie at define('TEXT_MAIN', '');. I tested it and changed '' to 'THIS IS AN AWESOME TEST!' and it showed up like this:

 

"Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? THIS IS AN AWESOME TEST!

This is a default setup of the osCommerce project, products shown are for demonstrational purposes, any products purchased will not be delivered nor will the customer be billed. Any information seen on these products is to be treated as fictional."

 

According to the forums, that's the right file and line to change if I want all of this crap to go away, but there's nothing there! Where is oscommerce pulling this text from? I've scanned the admin panel for some kind of option to turn it off but to no avail as well as go through all of my files and look desperately for something that sounds like it would be what I need.... I'm out of ideas.

Link to comment
Share on other sites

Yeah.....I already read that, and if you read my post, you would have noticed this little line:

 

I opened up catalog/includes/languages/english/index.php, and had a looksie at define('TEXT_MAIN', '');. I tested it and changed '' to 'THIS IS AN AWESOME TEST!' and ...

 

Which means, I've already changed it the way everyone suggested in the FAQ, but it didn't work. Is there another file overriding this command?

 

--------------------------------------------------------------------------------------------------------------------

PLEASE DO NOT LINK ME TO ANOTHER FAQ. I am not a newb, I know how to use the search button. :D

Link to comment
Share on other sites

BTW, I've also looked at /includes/languages/english.php.

 

Another question - is there a blueprint of how the entire code goes together? (This references that and that references this, etc.) I thought I saw something in the documents folder, but must have deleted it or it was for another project I was working on it.

Link to comment
Share on other sites

It is on line 286 of my english.php

 

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

 

 

If it not there on yours all you can do is start hunting.

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Yeah.....I already read that, and if you read my post, you would have noticed this little line:

 

I opened up catalog/includes/languages/english/index.php, and had a looksie at define('TEXT_MAIN', '');. I tested it and changed '' to 'THIS IS AN AWESOME TEST!' and ...

 

Which means, I've already changed it the way everyone suggested in the FAQ, but it didn't work. Is there another file overriding this command?

 

--------------------------------------------------------------------------------------------------------------------

PLEASE DO NOT LINK ME TO ANOTHER FAQ. I am not a newb, I know how to use the search button. :D

Did you see point 3 in the link I gave?

Link to comment
Share on other sites

Did you see point 3 in the link I gave?

What happened to forums? Yes, I did see point 3 in the link you gave me, and I've read that FAQ three times now thinking I'm a fucking retard and missed something since you guys keep referencing me to the same damn post. Again, from my original post, "I opened up catalog/includes/languages/english/index.php" and this is what I've found. I've also looked in /catalog/includes/languages/english.php.

 

<?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 (c) 2008 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', '');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_RANDOM_PRODUCTS', 'Random Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($_GET['manufacturers_id'])) ) {
 define('HEADING_TITLE', '');
 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', '<span class="b">Show:</span>');
 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', 'What\'s New Here?');
} elseif ($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);
 define('HEADING_TITLE', 'Categories - ' . $category['categories_name']);
}

?>

Link to comment
Share on other sites

Well, since this is the osc forum, and not a template or some other derivate, I assume you are talking about osc.

 

The file you posted is not the standard file, so what you seek may be elsewhere.

 

Towards the end of the file you posted you should have had

 

define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');

define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...