Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories and sub categories


angel2005

Recommended Posts

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 by angel2005
Link to comment
Share on other sites

you can change colour of background of boxes in stylesheet.css file.

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

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...