Categories Menu, YahooTreeMenu With AJAX

Description
YahooTreeMenuWithAJAX for Zen-Cart v 1.3.x v0.3a.1

Tested under Zen-Cart v 1.3.0.2

What is the use of this module?
-------------------------------------------------------------------------
The Informations below are from the archive of Zen Cart support forum:
Subject: Yahootreemenuwithajax
Link: http://www.zen-cart.com/forum/showthread.php?t=31384

And an anther follow up discussions:
Subject: Yahootreemenu with ajax
Link: http://www.zen-cart.com/forum/showthread.php?t=36268
-------------------------------------------------------------------------

This module is function as Categories Menu sidebox for use in storefront.

The main functions of this module are:
It dynamically loads and caches the subcategories without page reload
every time. This based on AJAX and the Yahoo! User Interface Library.
It uses optimized algorithm to build the categories tree and count
the products in the categories.

So this mean less SQL calls for the display of Category Menu.
Only 2 queries (and +1 little) used to build the categories tree.
After that, the categories menu represented by a dual linked tree.
And it does not depended on the trees depth.
By using AJAX it dynamically (on demand) populate categories tree
and caching it on the user side.

This menu also has a noscript version.

-------------------------------------------


About this update:
-------------------------------------------------------------------------

Why this update?
Under ZC v1.3.x, the YahooTreeMenuWithAJAX for Zen-Cart v 1.2.7 v0.3a
can be used with the classic template.

However, it have problems if used
with template_default based templates, especially under IE in my case.

This updated the YahooTreeMenuWithAJAX for Zen-Cart v 1.2.7 v0.3a to more
compatible with Zen-Cart v 1.3.x and its templates.

It use more override of Zen Cart and with minor codes changed mainly
for the HTML validation.
+ Download Latest

Submit An Updated Version
Zen Cart® Versions v1.3.6
Original Author seethrou
Last Updated by Andrew_Yer - 4 Dec 2006
Downloads 9,873

Version History

Categories Menu, YahooTreeMenu With AJAX   -   Version: 0.9
/* ------------------------------------------------
* YahooTreeMenuWithAJAX for Zen-Cart v0.9
*
* Copyright (c) 2006 Andrew Yermakov [email protected]_
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ------------------------------------------------
*/


Installation
----------------------------
1. Unzip the package, retaining the folder structure.
2. Go to Admin-_Tools-_Layout Boxes Controller and enable the new "yahootreemenu" sidebox.



Whats new?
----------------------------
1. Fixed some issues.
2. /categories.php renamed to /load_branch.php

3. Extended options set in the /includes/extra_datafiles/yahootreemenu.php file:

// Set this option in true if you don't want to show the categories which has no products.
define('YAHOOTREEMENU_SKIP_EMPTY', true);
// Can multiple children(subcategories) be expanded at once?
define('YAHOOTREEMENU_MULTI_EXPAND', true);
// Do you want the categories names has the link?
define('YAHOOTREEMENU_SHOW_CATEGORY_LINK', false);
// Do you want tou use this menu without AJAX.
// This may be usefull for the websites with a little number of the categories
define('YAHOOTREEMENU_WITHOUT_AJAX', false);

So, you can use this menu with or without AJAX now.

4. This version is compatible with Zen-Cart v1.3.6

What will be implemented in the next version?
---------------------------------
1. The method to also display product links in the uncollapsed sub category menus. (Thanks Woodymon for the idea).





Andrew Yermakov
[email protected]
  + Download
Zen Cart® Versions v1.3.6
Date Added 4 Dec 2006
Author Andrew_Yer
File Size 25.3 KB
PHP 5.3 Safe? Unknown
Downloads 8,113
 
Categories Menu, YahooTreeMenu With AJAX   -   Version: v0.3a.1
  + Download
Zen Cart® Versions v1.3.0
Date Added 15 Aug 2006
Author seethrou
File Size 25.3 KB
PHP 5.3 Safe? Unknown
Downloads 1,760
 


disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR