Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category Menu


Hollice

Recommended Posts

Hey Everyone,

 

I want the menu to look like this, with an extra line between categories:

 

Books (1)

Humor (1)

 

Music (2)

 

I did find the <br> in categories.php in boxes, when I change it to <p>, it puts an extra line in between all lines.

 

I can?t get the style-sheet modify to the way I want it. If you put padding top or bottom, it puts the padding on top or bottom of the whole text, like it is a paragraph.

 

Does anyone know how to do this?

 

Advance thank you,

Hollice

Link to comment
Share on other sites

did you try making the <br> into <br><br>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

NO. Not necessarily. I cannot exlpain why but in some instances in OSC, <p> will not work nit <br><br> does. Try it before you knock it. I think you may be surprised.

Link to comment
Share on other sites

Carlo,

 

Yes, some instances are different in OSC and HTML, but in this case they are alike.

Yes, I did try it before I posted for the first time and it didn?t work, it showed like it was a <p>.

 

Hollice

Link to comment
Share on other sites

have you tried placing the tag in the sub category

if (tep_has_category_subcategories($counter)) {
? ? ?$categories_string .= '->';

using a <br> ot a <p> like

if (tep_has_category_subcategories($counter)) {
     $categories_string .= '<br>';

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Steve,

 

Gave your suggestion a try:

 

Books

(1)

    Humor (1)

Music

 

Not quite what I want, the line-break is in the wrong section. I would like to keep the sub-categories with the main category.

 

Books (1)

    Humor (1)

 

Music

 

Thank you again,

Hollice

Link to comment
Share on other sites

keep trying it is in there somewhere

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Try this

 ? $categories_string .= '</b>';
? ?}

? ?if (tep_has_category_subcategories($categories_string .= '<br>'));

? ?if (tep_has_category_subcategories($counter)) {
? ? ?$categories_string .= '->';
? ?}

or this

  if (SHOW_COUNTS == 'true') {
     $products_in_category = tep_count_products_in_category($counter);
     if ($products_in_category > 0) {
       $categories_string .= ' (' . $products_in_category . ')';
     }
   }

if (tep_has_category_subcategories($categories_string .= '<br>'));

   $categories_string .= '<br>';

   if ($tree[$counter]['next_id'] != false) {
     tep_show_category($tree[$counter]['next_id']);
   }
 }

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

You can see what I am doing though try moving the line

if (tep_has_category_subcategories($categories_string .= '<br>'));

further down the code

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...