angel2005 Posted May 20, 2007 Share Posted May 20, 2007 (edited) hi sorry to put here my request but i dont found where i can post it. i'm working on oscommerce site for someone. i just have it and this one was begin by anothere guy. i have categorie and sub categories and i want to have a background color by categories and sub categories. i explain for each categories and sub categories i would like ti keep the same background color and when i clic on anather categories the backgroun color change. i put a code in application_top.php here a sample. if ($current_category_id == '30') $bgcolor_efi="#f5ee11"; how can i do to keep the color for the sub categories for this one? to see result you can follow this link thank for helping me ps: sorry i'm french Edited May 20, 2007 by angel2005 Quote Link to comment Share on other sites More sharing options...
web-project Posted May 20, 2007 Share Posted May 20, 2007 you can change colour of background of boxes in stylesheet.css file. Quote Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you. Link to comment Share on other sites More sharing options...
angel2005 Posted May 20, 2007 Author Share Posted May 20, 2007 hi thank but it's not in boxes where i want to change color but outside of the shop. i put a sample of code i use, it's working for categories but not for subcategories. Quote Link to comment Share on other sites More sharing options...
angel2005 Posted May 22, 2007 Author Share Posted May 22, 2007 hi, i come back with my request but i resolve it. for who want to change the background color by categories and keep the background color with the subcategorie, you can see result here by navigate inside categories and sub. i post here how i do that, i'm sure someone can find another solution better than i do, but i have to finish the site for tomorow. so in catalo/includes/application_top.php before the end just add liene like this: if ($top_category_id == 'xx') $bgcolor_efi="your color"; for me it's working. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.