caspire Posted February 11, 2005 Share Posted February 11, 2005 Hello everyone, When I view a nested category in my site, the heading title just says "Categories" but I would like to know how to make it say whatever folder they are in. Say they are viewing the folder "Comedy" I would like it to say Comedy at the top instead of Categories. Thanks, CaSpiRE :thumbsup: Link to comment Share on other sites More sharing options...
Nacer Posted February 11, 2005 Share Posted February 11, 2005 In your index.php, find the first occurrence of: echo HEADING_TITLE; and replace it with: echo $category['categories_name']; //echo HEADING_TITLE; Enjoy Nacer. Link to comment Share on other sites More sharing options...
caspire Posted February 12, 2005 Author Share Posted February 12, 2005 Wow thats awesome thanks. That works for all the folders except for the last one which shows the product. How do I make it work for the last folder as well? Thanks for your help...! :thumbsup: Link to comment Share on other sites More sharing options...
dogmir Posted May 17, 2005 Share Posted May 17, 2005 ditto how do you change it for the last page in the tree? Link to comment Share on other sites More sharing options...
Wendy James Posted May 17, 2005 Share Posted May 17, 2005 http://www.oscommerce.com/community/contributions,2430 that contribution tells you how to do it, only one change. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
dogmir Posted May 17, 2005 Share Posted May 17, 2005 when i do what it says in that contrib and change the code in the product_info.php the category that list the products still says heading_title and when you click on the product it says 1054 - Unknown column 'p.products_retail_price' in 'field list' select pd.language_id, p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_retail_price, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from products p, products_description pd where p.products_id = '31' and pd.products_id = '31' and pd.language_id ='1' [TEP STOP] Link to comment Share on other sites More sharing options...
Wendy James Posted May 17, 2005 Share Posted May 17, 2005 hmm.. not sure why. You can try taking out p.products_retail_price, from the piece of code it says to add including the comma. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
Guest Posted May 17, 2005 Share Posted May 17, 2005 In your index.php, find the first occurrence of: echo ?HEADING_TITLE; and replace it with: echo $category['categories_name']; //echo ?HEADING_TITLE; Enjoy Nacer. <{POST_SNAPBACK}> Assalamualaikum and Hi Nacer :rolleyes: I must have done something wrong, the titles did change but under it this showed up n n n n Please advise thanks. Link to comment Share on other sites More sharing options...
Wendy James Posted May 17, 2005 Share Posted May 17, 2005 You are more than likely using the file manager that comes with osc, right? If so that is what is causing the problems. Hopefully you have a backup. You need to download the files using an FTP program, edit them on your computer then reupload them. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep. Link to comment Share on other sites More sharing options...
PhpNurd Posted December 13, 2005 Share Posted December 13, 2005 In your index.php, find the first occurrence of: echo ?HEADING_TITLE; and replace it with: echo $category['categories_name']; //echo ?HEADING_TITLE; Enjoy Nacer. Hi nacer, I cant find this code. I am using the latest version. Could you tell me where to make this change ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.