jami1955 Posted July 28, 2010 Posted July 28, 2010 There is no text on the front page of my 2.2 RC2 store. It's a store I've inherited, not built from scratch so there are some things eluding me. Obviously, normally to edit text on the front page I would do what's listed in this thread: http://www.oscommerce.com/forums/topic/351626-remove-the-text-on-the-front-page/ However, the file includes/languages/english/index.php has plenty of default text on it already which is not showing up. It must be turned OFF somewhere. The file begins: define('TEXT_MAIN', 'This is a default setup of osCommerce Online Merchant. Products shown are for demonstrational purposes. <b>Any products purchased will not be delivered nor will the customer be billed</b>. Any information se So where do I turn ON that TEXT_MAIN so I can edit it to get it where I want it? FYI Beginning line 66 my index.php in the root directory reads: <? tep_draw_heading_top();?> <? new contentBoxHeading_ProdNew($info_box_contents);?> <? TEXT_MAINtep_draw_heading_top_3();?> so I'm assuming it's not in that file I need to turn it on. It's being called there. thanks, JSC, Boulder Jamie/Boulder
♥zelf Posted July 28, 2010 Posted July 28, 2010 So where do I turn ON that TEXT_MAIN so I can edit it to get it where I want it? Have you looked at /catalog/index.php to see if the constant you want to print is being echo'd out? Virtual Merchant a.k.a. Elavon, ViaKlix, Nova Payment Module Contribution
jami1955 Posted July 29, 2010 Author Posted July 29, 2010 Thanks Zelf, I thought this line <? TEXT_MAINtep_draw_heading_top_3();?> is supposed to print it out. If it is not, then how do I do that? I see there are tons of conditional php on the page, so I thought there must be something like IF TEXT_MAIN is turned on... then print it. If there is no place in admin to turn that text on, then please tell me how to get it to print out on the main page. The code around that is <!-- 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%" class="col_center"> <? tep_draw_heading_top();?> <? new contentBoxHeading_ProdNew($info_box_contents);?> <? TEXT_MAINtep_draw_heading_top_3();?> <table cellpadding="0" cellspacing="0" border="0"><tr><td height="12"></td></tr></table> <table border="0" cellspacing="0" cellpadding="0" align="center" class="box_width_cont product"> <tr> <?php if (isset($cPath) && strpos('_', $cPath)) { // check to see if there are deeper categories within the current category thanks, JSC Jamie/Boulder
♥zelf Posted July 29, 2010 Posted July 29, 2010 I thought this line <? TEXT_MAINtep_draw_heading_top_3();?> Appears you are using some kind of template with crappy code. Anyway, should read: <?php echo TEXT_MAIN; tep_draw_heading_top_3(); ?> Then whatever text you have in the constant TEXT_MAIN will display. Virtual Merchant a.k.a. Elavon, ViaKlix, Nova Payment Module Contribution
jami1955 Posted July 29, 2010 Author Posted July 29, 2010 Appears you are using some kind of template with crappy code. Anyway, should read: <?php echo TEXT_MAIN; tep_draw_heading_top_3(); ?> Then whatever text you have in the constant TEXT_MAIN will display. What I have now is <td class="main"><?php echo TEXT_MAIN; ?></td> thanks again Zelf. What happened is it was definitely modified the index.php, so I just went back to the original file I downloaded from here, and found at the bottom what was missing. Got it to print OK. I didn't realize the index had been so changed. case closed. Jamie/Boulder
Recommended Posts
Archived
This topic is now archived and is closed to further replies.