CSS Menu
#101
Posted 23 December 2006, 12:12
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
#103
Posted 27 December 2006, 22:30
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
Posted 28 December 2006, 15:56
I really need help on this, if any one could it will be nice.
Thank you
#105
Posted 29 December 2006, 20:30
i added a new cache file called tmp1 chmod to 777
changed the settings in the admin and it worked fine
#106
Posted 07 January 2007, 22:51
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
Posted 08 January 2007, 11:07
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
Posted 11 January 2007, 04:46
#109
Posted 15 January 2007, 22:40
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
Posted 15 January 2007, 22:46
Ambition Events, on Jan 15 2007, 10:40 PM, said:
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.
#112
Posted 16 January 2007, 00:12
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
Posted 01 February 2007, 11:06
* 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
Posted 01 February 2007, 11:28
#115
Posted 02 February 2007, 08:43
#117
Posted 02 February 2007, 11:13
http://www.oscommerce.com/community/contributions,1175/
#118
Posted 03 February 2007, 00:53
#119
Posted 07 February 2007, 10:08
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
Posted 07 February 2007, 15:27
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.














