simon1066:
Yes, I remember having this issue with around 250 categories, from memory and comparing my admin files I think you can do two things
- Disable the 'Go To' dropdown box, in includes/modules/category_product_listing.php
line47 change
if ($_SESSION['display_categories_dropdown'] == 0) {
>
> to
> ```
if (false && $_SESSION['display_categories_dropdown'] == 0) {
- Disable the check for linked status, the yellow link box will not show,
line 167 change
if (zen_get_products_to_categories($categories->fields['categories_id'], true, 'products_active') == 'true') {
echo ' ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED);
>
> to
> ```
if (false && zen_get_products_to_categories($categories->fields['categories_id'], true, 'products_active') == 'true') {
echo ' ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED);
You should see a marked improvement.
I think it was Ajeh who helped out here.
Hi Simon1066
Well I did those changes and there was a slight improvement in performance (probably something to do with the fact that we currently have a total of 2,343 categories/sub-categories!!!!!!)
So i tracked down a bit further and I have completely commented out the code section:
// bof: categories meta tags
if (zen_get_category_metatags_keywords($categories->fields['categories_id'], (int)$_SESSION['languages_id']) or zen_get_category_metatags_description($categories->fields['categories_id'], (int)$_SESSION['languages_id'])) {
echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories->fields['categories_id'] . '&action=edit_category_meta_tags') . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit_metatags_on.gif', ICON_METATAGS_ON) . '</a>';
} else {
echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories->fields['categories_id'] . '&action=edit_category_meta_tags') . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit_metatags_off.gif', ICON_METATAGS_OFF) . '</a>';
}
// eof: categories meta tags
as we have no need whatsoever for metatags.
The Admin section is now absolutely FLYING!!!!!
Thank you for putting me onto the right track :smile: