navyhost Posted December 12, 2007 Posted December 12, 2007 Hi guys! At the moment I am using a seperate header.php file for every page. ie. product_info_header.php etc... The reason I am doing this is because on the header file I want to display a different name within the header. IE. when the person is on the home page it will say "Welcome to Site, Please login..." but if they are on the shopping cart page I'd like the section to display "Shopping cart" Doing it this way takes alot more work when editing, so I was wondering if any one knew of a way to use one header.php but have some kind of code inserted to display a message based on the page the customer is at? Does any one know of a mod or a method? thank you for the hand in advance Sincerely Mike
ELnew Posted December 12, 2007 Posted December 12, 2007 You know how every .php file has a the header code in it, why dont you create a seperate header file, almost like you did before..., it shouldn't be that hard though....All you really have to do is incorporate a new header banner for each new file. Like your product_info.php and all other pages have <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> All you really have to do is create a new file in your includes folder called..."header_productinfo.php" copy and paste everything in your header just change the part that says ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.gif', STORE_NAME) . '</a>'; ?></td> </tr> </table> Basically create a new logo put it in images folder and change the new code in your new header file to ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'newlogo.gif', STORE_NAME) . '</a>'; ?></td> </tr> </table> Then change the script in the product_info.php to <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header_productinfo.php'); ?> <!-- header_eof //--> It should work if you think about it. ~Parker
germ Posted December 12, 2007 Posted December 12, 2007 From this post: Click Me You could try something like this in the original header.php : switch ( basename($PHP_SELF) ) { case FILENAME_PRODUCT_INFO : // code here break; case FILENAME_SHOPPING_CART: //code here break; case FILENAME_DEFAULT: //code here break; default: //default code if no match here } I've seen it where some of these PHP variables aren't accessible in all installations, so before you go to great lengths, try it on just one or two pages. Then, if it works, you can expand. :thumbsup: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
navyhost Posted December 12, 2007 Author Posted December 12, 2007 You know how every .php file has a the header code in it, why dont you create a seperate header file, almost like you did before..., it shouldn't be that hard though....All you really have to do is incorporate a new header banner for each new file.Like your product_info.php and all other pages have <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> All you really have to do is create a new file in your includes folder called..."header_productinfo.php" copy and paste everything in your header just change the part that says ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.gif', STORE_NAME) . '</a>'; ?></td> </tr> </table> Basically create a new logo put it in images folder and change the new code in your new header file to ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'newlogo.gif', STORE_NAME) . '</a>'; ?></td> </tr> </table> Then change the script in the product_info.php to <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header_productinfo.php'); ?> <!-- header_eof //--> It should work if you think about it. ~Parker Hey, this is what I am doing right now but want to eliminate this so I only have I only have 1 file to edit. Basically what I am trying to do is where I have this text: if "this page index.php" display: Hello, would you like to create an accont or log in? if "this page shopping_cart.php" display: Shopping cart if "this page createaccout.php" display: Create account thanks for the tip though. Sincerely Mike
germ Posted December 12, 2007 Posted December 12, 2007 if "this page index.php" display: Hello, would you like to create an accont or log in?if "this page shopping_cart.php" display: Shopping cart if "this page createaccout.php" display: Create account switch ( basename($PHP_SELF) ) { case FILENAME_CREATE_ACCOUNT : echo 'Create Account'; break; case FILENAME_SHOPPING_CART: echo 'Shopping Cart'; break; case FILENAME_DEFAULT: echo 'Hello, would you like to create an accont or log in?'; break; default: //default code if no match here } If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
ELnew Posted December 12, 2007 Posted December 12, 2007 what are you actually wanting to display, the top logo?
navyhost Posted December 12, 2007 Author Posted December 12, 2007 switch ( basename($PHP_SELF) ) { case FILENAME_CREATE_ACCOUNT : echo 'Create Account'; break; case FILENAME_SHOPPING_CART: echo 'Shopping Cart'; break; case FILENAME_DEFAULT: echo 'Hello, would you like to create an accont or log in?'; break; default: //default code if no match here } hey, Thanks for this, giving it a try but was think about trying something based on your code provided. Below is my header file and if you view it in dreamweaver or what ever program you use. On line 183 is where I want the title to display so I was thinkg instead of adding your code in the actual header, I would add a pull in code and add your code to a seperate file. Is this what your code is designed to do? <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // give the visitors a message that the website will be down at ... time if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) { $messageStack->add('header', TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE, 'warning'); } // this will let the admin know that the website is DOWN FOR MAINTENANCE to the public if ( (DOWN_FOR_MAINTENANCE == 'true') && (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE == getenv('REMOTE_ADDR')) ) { $messageStack->add('header', TEXT_ADMIN_DOWN_FOR_MAINTENANCE, 'warning'); } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <script type="text/javascript" src="scripts/add-event.js"></script> <script type="text/javascript" src="scripts/popup.js"></script> <script type="text/javascript"> <!-- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <body onLoad="MM_preloadImages('/imgs/home-on.gif','images/home-on.gif','images/account-on.gif','images/shopping-on.gif','images/checkout-on.gif','images/new-products-on.gif','images/pdct-dtls-on.gif','images/reviews-on.gif','images/qa-on.gif')"> <div id="container"> <div id="t-nav"> <div class="hdr-nav"> <ul> <li class="first"><a href="http://www..com/livehelp"rel="nofollow">Help</a></li> <li><a href="http://www..com/advanced_search.php"rel="nofollow">Advanced Search</a></li> <li><a href="https://www..com/create_account.php"rel="nofollow">Create an Account</a></li> <li><a href="https://www..com/contact_us.php"rel="nofollow">Customer Service</a></li> <li class="last"><a href="https://www..com/login.php"rel="nofollow">Login</a></li> </ul> </div> </div> <div id="hdr"> <div class="logo"> <a href="http://www..com/"><img src="../../images/brenonslogo.gif" width="200" height="55" border="0" alt="www..com" title="www..com" /></a> </div> <div class="hdr-links"> <table width="495" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="5" colspan="9" align="center" valign="middle"></td> </tr> <tr> <td width="10" height="60" rowspan="2" align="center" valign="middle"></td> <td width="95" height="30" align="left" valign="bottom"class=ch2>Call Toll Free</td> <td width="10" height="60" rowspan="2" align="center" valign="middle"></td> <td width="110" height="30" align="left" valign="bottom"class=ch2>Currencies</td> <td width="10" height="60" rowspan="2" align="center" valign="middle"></td> <td width="125" height="30" align="left" valign="bottom"class=ch2><a href="<?=tep_href_link('shopping_cart.php')?>"><img src="images/cart.gif" width="14" height="17" border="0" alt="" title="" /></a> Shopping Cart</td> <td width="10" height="60" rowspan="2" align="center" valign="middle"></td> <td width="115" height="60" rowspan="2" align="center" valign="middle"class=ch2><script language="Javascript" src="https://seal.godaddy.com/getSeal?sealID=101907910404477ce891271110a6bd14117d8b05002626059178532"></script> </td> <td width="10" height="60" rowspan="2" align="center" valign="middle"></td> </tr> <tr> <td width="95" height="30" align="right" valign="top"class=ch2>1-866-237-6209</td> <td width="110" height="30" align="right" valign="top"class=ch2> <? // CURRENCIES echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'); reset($currencies->currencies); $currencies_array = array(); while (list($key, $value) = each($currencies->currencies)) { $currencies_array[] = array('id' => $key, 'text' => $value['title']); } $hidden_get_variables = ''; reset($HTTP_GET_VARS); while (list($key, $value) = each($HTTP_GET_VARS)) { if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) { $hidden_get_variables .= tep_draw_hidden_field($key, $value); } } echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" class="style2" style="width:100px"') . $hidden_get_variables . tep_hide_session_id(); echo '</form>'; ?> </td> <td width="125" height="30" align="right" valign="top"class=ch2>Your cart contains <a href="<?=tep_href_link('shopping_cart.php')?>"><?=$cart->count_contents()?> items</a> Sub total: <?php echo $currencies->format($cart->show_total()); ?></td> </tr> <tr> <td height="5" colspan="9" align="center" valign="middle"></td> </tr> </table> </div> </div> <div id="gbl-nav"> <table width="730" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="1" colspan="11" align="center" valign="middle" bgcolor="#003366"></td> </tr> <tr> <td width="59" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"></td> <td width="32" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"><a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','images/home-on.gif',1)"><img src="images/home-up.gif" name="home" width="32" height="28" border="0" id="home" alt="" title="" /></a></td> <td width="59" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"></td> <td width="79" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"><a href="<?php echo tep_href_link('products_new.php'); ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('products','','images/new-products-on.gif',1)"><img src="images/new-products-up.gif" name="products" width="79" height="28" border="0" id="products" alt="" title="" /></a></td> <td width="59" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"></td> <td width="67" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"><a href="<?php echo tep_href_link(FILENAME_ACCOUNT); ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('account','','images/account-on.gif',1)"><img src="images/account-up.gif" name="account" width="67" height="28" border="0" id="account" alt="" title="" /></a></td> <td width="58" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"></td> <td width="101" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('shopping','','images/shopping-on.gif',1)"><img src="images/shopping-up.gif" name="shopping" width="101" height="28" border="0" id="shopping" alt="" title="" /></a></td> <td width="59" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"></td> <td width="98" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('checkout','','images/checkout-on.gif',1)"><img src="images/checkout-up.gif" name="checkout" width="98" height="28" border="0" id="checkout" alt="" title="" /></a></td> <td width="59" height="28" align="center" valign="middle" background="images/gbl-nav-bg.gif"></td> </tr> <tr> <td height="1" colspan="11" align="center" valign="middle" bgcolor="#003366"></td> </tr> </table> </div> <?php $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available,p.products_weight, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); $products_name = $product_info['products_name']; ?> <div id="pdct-title-search"> <div class="pdct-title"> <h1><?php require(DIR_WS_INCLUDES . 'name_tag.php'); ?></h1> </div> <form name="quick_find" action="advanced_search_result.php" method="get"> <div class="search"> Search <input type="text" name="keywords" size="20" maxlength="100" onClick="this.value=''" value="keyword" class="style2"> <?php echo ' ' . tep_hide_session_id() . tep_image_submit('m09.gif', BOX_HEADING_SEARCH, 'align="absmiddle"'); ?> </div> </form> </div> <div id="bodyblock"> <div id="l-col"> <div class="m-menu"> <ul> <li class="m-menu-title"> Featured Products</li> <? // ---- CATEGORIES function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; if(!$tree[$counter]['level']){ //$categories_string .= $categories_string ? '<tr><td height=1></td></tr>' : ''; // $categories_string .= ' // <tr><td width=22 height=19 bgcolor=#D2D2D2 align=center><img src=images/m07.gif width=5 height=5 align=center></td> // <td bgcolor=#E9E9E9 width=165><span class=ch4></span><a class=ml3 href= // '; $categories_string .= '<li><a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link('index.php', $cPath_new) . '">'; // display categry name $categories_string .= $tree[$counter]['name']; $categories_string .= '</a></li> '; }else{ // SUBCATEGORY $categories_string .= '<li>'; // $categories_string .= ' // <tr><td width=22 height=19 bgcolor=#D2D2D2 align=center><img src=images/m07.gif width=5 height=5 align=center></td> // <td bgcolor=#E9E9E9 width=186><span class=ch4></span> // '; for($i=0;$i<$tree[$counter]['le vel'];$i++) $categories_string .= ' '; $categories_string .= ' <a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link('index.php', $cPath_new) . '">-'; // display category name $categories_string .= $tree[$counter]['name']; $categories_string .= '</a></li>'; } if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } define(TABLE_CATEGORIES, "categories"); define(TABLE_CATEGORIES_DESCRIPTION, "categories_description"); $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if ($cPath) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } $categories_string .= ''; tep_show_category($first_element); $categories_string .= ''; echo $categories_string; ?> <li class="m-menu-title"> Special Offers</li> <li><a href="http://www..com/clearance_items.php">Clearance Items</a></li> <li><a href="http://www..com/open_box_items.php">Open Box Items</a></li> </ul> </div> <div class="m-menu-imgs"> <img src="/imgs/fedex-ground.jpg" width="111" height="44" border="0" alt="" title="" /> </div> <div class="m-menu-imgs"> <img src="/imgs/canada-post.jpg" width="145" height="37" border="0" alt="" title="" /> </div> <div class="m-menu-text"> After placing your order, you can track your shipment online. </div> <div class="testimonials-title"> Testimonials </div> <div class="testimonials"> I had a pleasant experience shopping with Brenons. Quick Shipping, and Friendly Customer Service. <span class="style6">Highly Recommended!</span><br /> —Susan </div> </div> <div id="content"> Sincerely Mike
germ Posted December 12, 2007 Posted December 12, 2007 You could do it that way. On line 183 put something like: <?php require('includes/make_title.php); ?> Them the code in includes/make_title.php would be something like: <?php switch ( basename($PHP_SELF) ) { case FILENAME_CREATE_ACCOUNT : echo 'Create Account'; break; case FILENAME_SHOPPING_CART: echo 'Shopping Cart'; break; case FILENAME_DEFAULT: echo 'Hello, would you like to create an accont or log in?'; break; default: //default code if no match here } ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
navyhost Posted December 12, 2007 Author Posted December 12, 2007 You could do it that way. On line 183 put something like: <?php require('includes/make_title.php); ?> Them the code in includes/make_title.php would be something like: <?php switch ( basename($PHP_SELF) ) { case FILENAME_CREATE_ACCOUNT : echo 'Create Account'; break; case FILENAME_SHOPPING_CART: echo 'Shopping Cart'; break; case FILENAME_DEFAULT: echo 'Hello, would you like to create an accont or log in?'; break; default: //default code if no match here } ?> Awesome, thanks for the hand. I will keep you posted on how it works out. Sincerely Mike
germ Posted December 12, 2007 Posted December 12, 2007 I will keep you posted on how it works out. Great! :thumbsup: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
navyhost Posted December 13, 2007 Author Posted December 13, 2007 Great! :thumbsup: Hey! Everything worked great. I did as mentioned above and so far managed to get rid of 10+ header files. On the index.php file I want to put: <?php echo tep_customer_greeting(); ?> This is to display the default oscommerce greeting message. And on the product_info page I want to put: <?=$products_name; ?> - This is to display the product name. thanks again! Sincerely Mike
Recommended Posts
Archived
This topic is now archived and is closed to further replies.