Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Advanced Category Box with 3 images


Mindvision

Recommended Posts

In includes/boxes/categories.php (around line 28), look for the following code:

    $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

and change to something like

    $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . 'cat_level' . $tree[$counter]['level'] . '.png'). ' ';

Assumes that you have only three levels of categories and that you have three images in the images/ directory with names like cat_level0.png. Revise appropriately for different names (png is an example, gif, jpg, etc. would work as well).

 

If this works for you, it would be nice if you could contribute some images to the contributions area to go with these instructions.

 

Hth,

Matt

Link to comment
Share on other sites

  • 5 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...