Results 1 to 5 of 5

questions about "Categories" menu...

This is a discussion on questions about "Categories" menu... within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; In the Categories menu, when you have sub-categories it displays in like: Clothes->(5) How do I get rid of the ...

      
  1. #1
    Anonymous
    Guest


    Default questions about "Categories" menu...

    In the Categories menu, when you have sub-categories it displays in like:

    Clothes->(5)

    How do I get rid of the " ->(5) "

    Also, is there a way to have each category displayed as an image, for example, instead of the type "clothes" I would have and image that says "Clothes" ?

    Thank you, Ian

  2. #2
    Anonymous
    Guest


    Default i also want something similair

    Like having it [IMAGE]Category
    Also is there a way to remove the number?

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    From the guide:

    PRODUCT NUMBERS REMOVAL/COLUMN WIDTHS CHANGES:
    Q. How do you remove the numbers showing how many products in each category?
    A: Find /catalog/includes/application_top.php
    about line 135 look for this code:
    define('SHOW_COUNTS', 1); // show category count: false=disable; true=enable
    change true to false
    Your other question, about images, is not specifically covered in the current version of the guide, but you will need to edit the block (the files that create the block). It is a bit more involved, but should be fairly straightforward once you get started. I will give it a whirl when I get some time.

    If anyone has already done this, please post your code changes. Thanks!

  4. #4
    Anonymous
    Guest


    Default

    I figured out how to do the images...
    in the categories.php (path= catalog/includes/boxes/categories.php)

    look for this line
    Code:
    $categories_string .= $foo[$counter]['name'];
    and replace it with
    Code:
    $categories_string .= '<img src="images/' . $foo[$counter]['name'] . '.gif" width="152"* height="24" border="0">';
    Thank you, Ian

  5. #5
    Anonymous
    Guest


    Default

    I figured out how to do the images...
    in the categories.php (path= catalog/includes/boxes/categories.php)

    look for this line
    Code:
    $categories_string .= $foo[$counter]['name'];
    and replace it with
    Code:
    $categories_string .= '<img src="images/' . $foo[$counter]['name'] . '.gif" width="152"* height="24" border="0">';
    Thank you, Ian

Similar Threads

  1. Remove "QTPRO" for "Option Type Feature"
    By adam71o in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 01-10-2007, 10:32 AM
  2. "Price" and "Add to Cart" button inside
    By midwestwebsites in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 11-14-2005, 05:13 AM
  3. "Skinning" Categories box when using dhtml menu
    By dron in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-07-2005, 06:06 AM
  4. Remove "in cart" Button for individual categories
    By Mongrrr in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-24-2003, 07:02 AM
  5. Remove "->" from categories
    By b8graphics in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-17-2003, 09:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •