bperfect Posted December 14, 2003 Share Posted December 14, 2003 Hi Everyone !! I would like to change the heading of every category that by default is "Let's See What We Have Here" with the category name. Suppose if the category name is "Keyboards" and when the visitor clicks on Keyboards category to see the product list under that category, he should NOT see the default message "Let's See What We Have Here" he should see "Keyboards".. Any Ideas on how to do it, I could see some of the live shops have already done so... please reply.. Regards Bperfect Link to comment Share on other sites More sharing options...
berkedam Posted December 14, 2003 Share Posted December 14, 2003 There are some nice contributions: http://www.oscommerce.com/community/contributions "If you're working on something new, then you are necessarily an amateur." Link to comment Share on other sites More sharing options...
OceanRanch Posted December 14, 2003 Share Posted December 14, 2003 Look in catalog/includes/languages/english/index.php I changed mine to just display the Category Name. define('HEADING_TITLE', $categories['categories_name']); HTH Link to comment Share on other sites More sharing options...
bperfect Posted December 15, 2003 Author Share Posted December 15, 2003 Thanks !! It worked perfectly... One more question, On the frontpage it says "Whats New Here" can you tell me how to remove that ?. I removed it from catalog/includes/languages/english/index.php but it still shows up the blank space there... Thanks in advance !! :o Link to comment Share on other sites More sharing options...
TomThumb Posted December 15, 2003 Share Posted December 15, 2003 Remark out these lines near the bottom of /catalog/index.php <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <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> </tr> while (!succeed) {try()}; GMT -6:00 Link to comment Share on other sites More sharing options...
TerryK Posted December 15, 2003 Share Posted December 15, 2003 define('HEADING_TITLE', $categories['categories_name']); I made this change and it works beautifully for me, too (thank you!), except for in categories where there are sub-categories. For example, I have a category of CDs / Tapes which has a number of sub-categories like: Babies Christmas Disney etc. On the product listings for all of the sub-categories, the title displays correctly. But for the CDs / Tapes main category, it still says "Categories." Any suggestions on how to fix that? TIA, TerryK 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...
OceanRanch Posted December 15, 2003 Share Posted December 15, 2003 I haven't tested this so buyer beware.. ;) Look for this code around line 40 of catalog/includes/languages/english/index.php: } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); and change it to: } elseif ($category_depth == 'nested') {define('HEADING_TITLE', $categories['categories_name']); Hope it works for you. Tom Link to comment Share on other sites More sharing options...
TerryK Posted December 15, 2003 Share Posted December 15, 2003 Brilliant -- works like a charm! Thanks so much! TerryK 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...
JosephB Posted December 16, 2003 Share Posted December 16, 2003 I simply rem'd the second instance and it works perfectly that way, too. Thanks for the really useful tip! Joseph :D Steep learning curve? Hell, I don't even know enough to formulate a stupid question!! Link to comment Share on other sites More sharing options...
Avium Posted December 16, 2003 Share Posted December 16, 2003 Does anyone know how this can be done for MS1? Link to comment Share on other sites More sharing options...
Guest Posted December 18, 2003 Share Posted December 18, 2003 Look in catalog/includes/languages/english/index.php I changed mine to just display the Category Name. define('HEADING_TITLE', $categories['categories_name']); HTH nice trick... do you know how to do that and with text like define('HEADING_TITLE', Products in $categories['categories_name']); i've tried a few different ways with quotes and it gives errors Link to comment Share on other sites More sharing options...
achapman Posted December 18, 2003 Share Posted December 18, 2003 Joe - Give this a try: define('HEADING_TITLE', 'Products in ' . $categories['categories_name']); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.