Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help with bullets


Zuncan

Recommended Posts

Hi

 

Im using the contribution "add bullet images v1.0" in my caregories box. Im not quite satisfyed with how it works thou.. And I cant find a contribution that fit my needs. I just need to modify this contribution a little to work as I want. Could someone please help me do that since Im totally lost?

 

This is how the contribution "add bullet images v1.0" works:

 

It shows Bullet1 for categories with no subcategories

It shows Bullet2 for categories with subcategories

It shows Bullet3 for opened categories that have subcategories

 

 

But this is how I would want it to work:

 

It shows Bullet1 for categories with or without subcategories

It shows Bullet2 for subcategories

It shows Bullet3 for opened categories that have subcategories

 

 

Here is the code for the contribution "add bullet images v1.0":

 

    if (tep_has_category_subcategories($counter)) {

    if ( ($id) && (in_array($counter, $id)) ) {

          $categories_string .= '<img src="images/cat_arrow_down.gif" align="absmiddle"> ';

        } else {

          $categories_string .= '<img src="images/cat_arrow_right.gif" align="absmiddle"> ';

        }

} else {

  $categories_string .= '<img src="images/cat_arrow_other.gif" align="absmiddle"> ';

}

 

Please help me change it to fit my needs. I will make sure it ends up as a contribution if this is possible.

 

/Zuncan

So what?! Who care in a hundred years anyway?

Link to comment
Share on other sites

  • 1 month 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...