Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help modifying the contribution


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. Im sure this is the best way since it makes the categories more readable. 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...