jcd-atl Posted January 17, 2004 Share Posted January 17, 2004 Instead of "What's new here ?" or "Let's see what we have here" I'd like to show the category at the top of the page. For example, If I clicked on DVD Movies / Thriller, I'd like that to appear as "DVD Movies: Thriller" at the top of the page. Can anyone tell me what code to add and where ? I've been playing around with the index.php and categories.php, but haven't got it figured out yet. Thanks for any help. Link to comment Share on other sites More sharing options...
jcd-atl Posted January 17, 2004 Author Share Posted January 17, 2004 I found another post on this board that answers my question here. Here it is: go to catalog/includes/languages/english/index.php and at the bottom make your code this } elseif ($category_depth == 'nested') { define('HEADING_TITLE', $categories['categories_name']); this will change that big old nasty thing into manga I think it was posted by someone named "124" (?) Link to comment Share on other sites More sharing options...
241 Posted January 17, 2004 Share Posted January 17, 2004 Funny I thought it was 241 :P :lol: :blink: No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Guest Posted January 17, 2004 Share Posted January 17, 2004 go to catalog/includes/languages/english/index.php and at the bottom make your code this CODE } elseif ($category_depth == 'nested') { define('HEADING_TITLE', $categories['categories_name']); I tried changing the existing line to be as you show above and it didn't do anything. Should I add it at the bottom instead of changing the code? What about define('HEADING_TITLE', 'Let\'s See What We Have Here'); and define('HEADING_TITLE', 'What\'s New Here?'); Do they need to be dealt with as well or does this change take care of them? Thanks. :) Link to comment Share on other sites More sharing options...
TerryK Posted January 17, 2004 Share Posted January 17, 2004 Here's my complete \catalog\includes\languages\english\index.php file which displays the categories the way you want them to. <?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) 2003 osCommerce ?Released under the GNU General Public License */ define('TEXT_MAIN', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.'); 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', $categories['categories_name']); ?define('TABLE_HEADING_IMAGE', ''); ?define('TABLE_HEADING_MODEL', 'Model'); ?define('TABLE_HEADING_PRODUCTS', 'Title'); ?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 are no products 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 == 'top') { ?define('HEADING_TITLE', '<IMG SRC="images/welcome.gif" ALT="Welcome!" ALIGN="left" WIDTH="240" HEIGHT="20" BORDER="0">'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', $categories['categories_name']); } ?> HTH, Terry Terry Kluytmans Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like: Add order total to checkout_shipment Add order total to checkout_payment Add radio buttons at checkout_shipping (for backorder options, etc.) Duplicate Table Rate Shipping Module Better Product Review Flow * If at first you don't succeed, find out if there's a prize for the loser. * Link to comment Share on other sites More sharing options...
241 Posted January 17, 2004 Share Posted January 17, 2004 in catalog/includes/languages/english/index.php at the bottom is this code define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } change to define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', $categories['categories_name']); } and change if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); to this if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', $categories['categories_name']); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.