toto46 Posted June 9, 2010 Posted June 9, 2010 HI I am using the stock category menu oscommerce-2.2rc2a I am trying to find a way to display the category names with a line inbetween each, for example, if my category menu items are: Food Cars Bikes Games I would like it to be displayed something like this : Food ___________ Cars ____________ Bikes ____________ Games ____________ I found this bit of code on the Internet...? $boxContent .= '<hr />'; BUt I do not see where to put it. Can I post my code here and maybe somebody could help Thanks in advance
toto46 Posted June 9, 2010 Author Posted June 9, 2010 Just adding to the post here in includes/categories.php there is already this bit of code with the <hr> tag but it does not do any thing I can remove it and it makes no difference..?? if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id'];$boxContent .= '<hr />';
Jack_mcs Posted June 9, 2010 Posted June 9, 2010 The $boxContent variable isn't part of the stock code so unless yours has been changed to use it, it won't do anything as you have it. In a standard categories file, <br> is used to go to the next line. Find that in your code and change it to <hr> and it should do what you want. Note that you can also change it to <hr style=...> to change the appearance further. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.