Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Categories Menu


olsonsp4c

Recommended Posts

This is the support forum for the Simple Categories Menu addon: http://addons.oscommerce.com/info/6422

 

This will put a very simple horizontal link menu of your top level categories in your header or any other place you might desire for placement. It is EXTREMELY simple, but then, I enjoy simplicity and functionality.

 

One step and you are done.

 

Scott

Edited by olsonsp4c
Link to comment
Share on other sites

  • 3 weeks later...

hi,

 

i'd like to have manufacturers instead of categories

 

how can i do that?

i've changed the first part of code :

 

$manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");

$rows_count = tep_db_num_rows($manufacturers_query);

 

if ($rows_count > 0) {

while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {

$cat_id[]=$manufacturers[manufacturers_id];

$cat_name[]=$manufacturers[manufacturers_name];

}

}

 

 

but i'm stock now, some help, please

Link to comment
Share on other sites

hi,

 

i'd like to have manufacturers instead of categories

 

how can i do that?

i've changed the first part of code :

 

$manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");

$rows_count = tep_db_num_rows($manufacturers_query);

 

if ($rows_count > 0) {

while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {

$cat_id[]=$manufacturers[manufacturers_id];

$cat_name[]=$manufacturers[manufacturers_name];

}

}

 

 

but i'm stock now, some help, please

 

Look at the code in my addon: Manufacturers Dropdown Anywhere

 

it should point you in the right direction

 

Scott

Link to comment
Share on other sites

This is the support forum for the Simple Categories Menu addon: http://addons.oscommerce.com/info/6422

 

This will put a very simple horizontal link menu of your top level categories in your header or any other place you might desire for placement. It is EXTREMELY simple, but then, I enjoy simplicity and functionality.

 

One step and you are done.

 

Scott

 

 

hello scott

 

new question : when i log in, the simple menu categorie loose session id

how to fix that?

thanx

Link to comment
Share on other sites

hello scott

 

new question : when i log in, the simple menu categorie loose session id

how to fix that?

thanx

 

I apologize, but it doesn't do this on my store, so if I can't reproduce it, it is difficult to fix. Have you checked to verify that your cookie settings are set up properly in the config... both http and https should read "www.your-domain.com" without the "http://" - some servers might want it ".your-domain.com" or "your-domain.com" too...

 

It might be helpful to know specifically what is happening too. Describe it step by step...

 

Scott

Link to comment
Share on other sites

I apologize, but it doesn't do this on my store, so if I can't reproduce it, it is difficult to fix. Have you checked to verify that your cookie settings are set up properly in the config... both http and https should read "www.your-domain.com" without the "http://" - some servers might want it ".your-domain.com" or "your-domain.com" too...

 

It might be helpful to know specifically what is happening too. Describe it step by step...

 

Scott

 

 

$thanx for your answer

 

i'm in development, so i'm in localhost, but i will try without http:// (it's bit strange, 1st time i hear this, but why not)

 

the thing is :when i log in as a customer, if i click on a caterogy, i loose log off and of course session, it's like if i was clicked on log off

 

i will let you know if it works with the http thing

Link to comment
Share on other sites

I've installed your add on and got it working perfectly. I have added a stylesheet class to it which has set the font, size, background etc correctly but for some reason I cannot get the standard text colour to change in line with the CSS at all. Any ideas?

 

Cheers,

 

Luke

Link to comment
Share on other sites

I've installed your add on and got it working perfectly. I have added a stylesheet class to it which has set the font, size, background etc correctly but for some reason I cannot get the standard text colour to change in line with the CSS at all. Any ideas?

 

Cheers,

 

Luke

 

Post the code for the menu AND the css so I can take a look please...

 

Scott

Link to comment
Share on other sites

Hi Scott

 

Can the categories be split across 2 or more lines?

 

My categories are

Women's Basques | Women's Bras | Women's Bustiers | Women's Camisoles | Women's G Strings | Women's Panties | Women's Thongs | Men's Boxers | Men's Briefs | Men's T-shirts | Gift Vouchers | Specials

Link to comment
Share on other sites

Hi Scott

 

Can the categories be split across 2 or more lines?

 

My categories are

Women's Basques | Women's Bras | Women's Bustiers | Women's Camisoles | Women's G Strings | Women's Panties | Women's Thongs | Men's Boxers | Men's Briefs | Men's T-shirts | Gift Vouchers | Specials

 

I'm sure that this can be done...

 

It would mean creating a new line using the counter in the loop... if you know you have 9 categories and you want the line break to be after the 4th category then it would be something like:

 

<!-- BOF: Simple Categories Menu //-->
<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">  
 <tr>
<td height="0">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
<?php
$temp = count($cat_name);
for ($t=0; $t<$temp; $t++) {
?>   
	  <td align="center"><?php echo '<a href="index.php?cPath=' . $cat_id[$t] . '">' . $cat_name[$t] . '</a>' ?></td>
<?php
 if ($temp == "4") {
echo '<br>';
 } else {
?>
if ($t == ($temp-1)) {
} else {
?>
	  <td align="center"> | </td>
<?php
}
 }
}
?>
	</tr>
  </table>	
</td>
 </tr>  
</table>
</body>
</html>
<!-- EOF: Simple Categories Menu //-->

 

This is an idea for you to play around with...

 

Scott

Link to comment
Share on other sites

Hi Scott

 

Can the categories be split across 2 or more lines?

 

My categories are

Women's Basques | Women's Bras | Women's Bustiers | Women's Camisoles | Women's G Strings | Women's Panties | Women's Thongs | Men's Boxers | Men's Briefs | Men's T-shirts | Gift Vouchers | Specials

 

I'm sure that this can be done...

 

It would mean creating a new line using the counter in the loop... if you know you have 9 categories and you want the line break to be after the 4th category then it would be something like:

 

 <!-- BOF: Simple Categories Menu //-->
<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">  
  <tr>
 <td height="0">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
	 <tr>
<?php
$temp = count($cat_name);
for ($t=0; $t<$temp; $t++) {
?>   
	   <td align="center"><?php echo '<a href="index.php?cPath=' . $cat_id[$t] . '">' . $cat_name[$t] . '</a>' ?></td>
<?php
  if ($temp == "4") {
 echo '
';
  } else {
?>
 if ($t == ($temp-1)) {
 } else {
?>
	   <td align="center"> | </td>
<?php
 }
  }
}
?>
	 </tr>
   </table>	
 </td>
  </tr>  
</table>
</body>
</html>
<!-- EOF: Simple Categories Menu //-->

 

This is an idea for you to play around with...

 

Scott

Link to comment
Share on other sites

  • 9 months later...

I've installed your add on and got it working perfectly. I have added a stylesheet class to it which has set the font, size, background etc correctly but for some reason I cannot get the standard text colour to change in line with the CSS at all. Any ideas?

 

Cheers,

 

Luke

 

Has somebody a stylesheet class to it?

 

Thanks

Link to comment
Share on other sites

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