Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * - - 2 votes

CSS Menu


251 replies to this topic

#101 teknoid

  • Community Member
  • 5 posts
  • Real Name:Pawel

Posted 23 December 2006, 12:12

if this possible and it will not cause problem
good heart,
Contribution which will show:
'Show Category Counts'

installed in shop
www.beckdale.com/catalog

and how it will be this large problem,
this at least address where I can download
concretely these menus.

categories_css.php

#102 teknoid

  • Community Member
  • 5 posts
  • Real Name:Pawel

Posted 23 December 2006, 14:14

i find yoyoy

http://www.oscommerce.com/community/contributions,4589

#103 MR1

  • Community Member
  • 160 posts
  • Real Name:Mustafa

Posted 27 December 2006, 22:30

[img]http://img119.imageshack.us/img119/7221/herexo5.gif[/img]

I hope my image helps you to understand what i am trying to say, if some one doesnt can you please inform me.

Thank you

#104 MR1

  • Community Member
  • 160 posts
  • Real Name:Mustafa

Posted 28 December 2006, 15:56

Does anybody understand what i am saying?

I really need help on this, if any one could it will be nice.

Thank you

#105 cprntr

  • Community Member
  • 59 posts
  • Real Name:Abraham

Posted 29 December 2006, 20:30

re: cache problem

i added a new cache file called tmp1 chmod to 777

changed the settings in the admin and it worked fine

#106 SeanLee

  • Community Member
  • 52 posts
  • Real Name:Sean Lee

Posted 07 January 2007, 22:51

I have a problem with this menu when used with STS and templates for infoboxes.

The problem is, it only looks for infobox.php.html. If I want to specify different infoboxes, such as infobox_categories.php.html, it will still only try and look for infobox.php.html.

Any suggestions?

#107 gregNwt

  • Community Member
  • 62 posts
  • Real Name:Greg Matheson

Posted 08 January 2007, 11:07

hi All,

I am having a problem with IE7 with gaps appearing between the menu list items .. This makes it impossible to navigate through menu sub-items as the sub menu disappear when rolling from item to item.

I see little mention of IE7 issues in this forum but see advice to add the line below to the /* menu links style */ section of CSS Menu..

overflow: auto; /*force hasLayout in IE7 */

I will check this tomorrow when I get access to an IE7 enabled machine.

Any assistance welcome thanks.

#108 SeanLee

  • Community Member
  • 52 posts
  • Real Name:Sean Lee

Posted 11 January 2007, 04:46

Has anybody at all gotten this to work with STS using templates for infoboxes? Not just the default index or infobox template... for example, specifically using catalog/includes/sts_templates/mytemplates/boxes/infobox_categories.php.html ?

#109 Ambition Events

  • Community Member
  • 2 posts
  • Real Name:Richard Price

Posted 15 January 2007, 22:40

Hello All,

A great contribution for formatting the menu however I have run into a problem which I need some help with. When you have the option to display products in menu switched on the products display OK, however if you view a product via the menu it removes all the items already in your shopping cart. This will be really annoying to customers i'm sure.

I know one option is to disable product listing, however it is a really good feature for a small store so I would like to find a coding solution.

Any help would be much appreciated.

Thanks

#110 SeanLee

  • Community Member
  • 52 posts
  • Real Name:Sean Lee

Posted 15 January 2007, 22:46

View PostAmbition Events, on Jan 15 2007, 10:40 PM, said:

Hello All,

A great contribution for formatting the menu however I have run into a problem which I need some help with. When you have the option to display products in menu switched on the products display OK, however if you view a product via the menu it removes all the items already in your shopping cart. This will be really annoying to customers i'm sure.

I know one option is to disable product listing, however it is a really good feature for a small store so I would like to find a coding solution.

Any help would be much appreciated.

Thanks

Woa! Same thing happens with my site. I never noticed this before! I'll have to turn that off until it can be fixed.

#111 gregNwt

  • Community Member
  • 62 posts
  • Real Name:Greg Matheson

Posted 16 January 2007, 00:02

Fortunately for me,

it does not happen here!


View PostSeanLee, on Jan 16 2007, 09:46 AM, said:

Woa! Same thing happens with my site. I never noticed this before! I'll have to turn that off until it can be fixed.


#112 Ambition Events

  • Community Member
  • 2 posts
  • Real Name:Richard Price

Posted 16 January 2007, 00:12

It seems to be to do with the following bit of code being missing from the end of the product links in the menu ... "osCsid=a83bdc645a395daa7977f14a8fb010f5". If you go to a product through the normal route then this is included.

It is strange that the category links in the menu do include this link ending. Can this part of the coding be duplicated for the products??

Cheers :)

#113 juntao

  • Community Member
  • 23 posts
  • Real Name:Sammi Deluxe

Posted 01 February 2007, 11:06

I really want to install this contrib but have a problem with this step


* Search in /catalog/includes/column_left.php for:

include(DIR_WS_BOXES . 'categories.php');

Replace this line with:

include(DIR_WS_BOXES . 'categories_css.php');


Because in my column_left.php file i have this code

<?php
/*
$Id: column_left.php,v 1.13 2002/06/16 22:08:05 lango Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2002 osCommerce

Released under the GNU General Public License
*/

$column_query = tep_db_query('select configuration_column as cfgcol, configuration_title as cfgtitle, configuration_value as cfgvalue, configuration_key as cfgkey, box_heading from ' . TABLE_THEME_CONFIGURATION . ' order by location');
while ($column = tep_db_fetch_array($column_query)) {

$column['cfgtitle'] = str_replace(' ', '_', $column['cfgtitle']);
$column['cfgtitle'] = str_replace("'", '', $column['cfgtitle']);

if ( ($column[cfgvalue] == 'yes') && ($column[cfgcol] == 'left')) {

define($column['cfgkey'],$column['box_heading']);

if ( file_exists(DIR_WS_BOXES . $column['cfgtitle'] . '.php') ) {
require(DIR_WS_BOXES . $column['cfgtitle'] . '.php');
}
}
}
?>



Please help :)

#114 tunatamaker

  • Community Member
  • 8 posts
  • Real Name:Nalin Mital

Posted 01 February 2007, 11:28

Okay this may sound REALLY stupid. But I have my menu towards the right, what exactly do I need to change so the css menu flies out toward the left?

#115 juntao

  • Community Member
  • 23 posts
  • Real Name:Sammi Deluxe

Posted 02 February 2007, 08:43

any help please :) ?

#116 fear4me

  • Community Member
  • 22 posts
  • Real Name:Roger Godefroy

Posted 02 February 2007, 09:36

View Postjuntao, on Feb 2 2007, 09:43 AM, said:

any help please :) ?

Since you work with STS or another version of osCommerce besides the standard version, this php-file has been changed. As I look to your code you have to change 'categories' somewhere in your configuration.

#117 juntao

  • Community Member
  • 23 posts
  • Real Name:Sammi Deluxe

Posted 02 February 2007, 11:13

i used this contrib, so i guess this modified my code? any way to fix so i can customize my menu?

http://www.oscommerce.com/community/contributions,1175/

#118 juntao

  • Community Member
  • 23 posts
  • Real Name:Sammi Deluxe

Posted 03 February 2007, 00:53

would anyone have a solution for me please :) ?

#119 ZoMBiE

  • Community Member
  • 5 posts
  • Real Name:MaSTeR

Posted 07 February 2007, 10:08

Hi all, I really like this menu contribution; however, I noticed a problem with the database query counts that this menu causes, and I thought I would share it. I probably should have posted it here first, but I went ahead and posted it to the contribution page:

http://www.oscommerce.com/community/contributions,4589

If it doesn't affect you, then you don't have to worry, but if I had the problem, then I'm sure that a lot of you might also have it without realizing it.

The category menu makes a certain amount of database queries to count products, get product titles, etc, but I found an unusual number of db queries being made (I had over 2500) on each and every page refresh! So, I commented out some lines on the menu, and got it down to about 250, which is still high but not nearly as high as before; page loads are also down by about 75%. (Just so you know, if you install the original oscommerce stock files, straight from the zip file, your pages will have about 100 queries or less. Certain mods will increase that). If you are on a shared server, you MUST take a look at this, because this can cause problems to your site, as well as others on the server(i.e. hosting companies like ipowerweb, who throttle the db queries, also called "max questions"). A company like that will actually suspend your account if you take too many resources away from others.

So, after the commented code is uploaded, the menu functions perfectly normal on my site, nothing has been changed, no links broken, everything looks just like it did before. However, a few things to take note of: It's a big hit to your page loading time to have "category counts" turned on in your admin->configuration, so turn that off. Also, don't have the "show products" option in the menu turned on, because that slows everything down as well. (These are just my opinions, if you like it on, keep it on). So, everyone who has this mod installed, go to the contribution page and search for "queries debug" and install it. It will tell you how many db queries you are using on each page refresh, as well as help you optimizing your page. Then, install the fix that I uploaded, and see if it makes a big difference. Hopefully, you will all see a nice improvement like I did. All credit to the creators of this and Chemo for his queries debug mod.

#120 radders

  • Community Member
  • 2,036 posts
  • Real Name:David Radford
  • Location:London

Posted 07 February 2007, 15:27

How many looks does it take till you get to the centre of the.....?

Thanks zombie master. That made a massive difference to the speed of my site. It eliminated a whole page full of database queries. Now the next item on the optimization is to get rid of the tax queries.