Jump to content
Sign in to follow this  
olsonsp4c

Simple Categories Menu

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Look at the code in my addon: Manufacturers Dropdown Anywhere

 

it should point you in the right direction

 

Scott

thanx for your answer

but i looked at the code and i really don't know where to start...

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

 

Has somebody a stylesheet class to it?

 

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×