Product Finder: multiple category drop-downs
This mod provides three drop-down select boxes which are used to select products from subcat01 - subcat02 - subcat03 such as Make-Model-Year.
The second and third drop-down are populated dynamically (using jquery) as a result of the choice made in the previous box.
As supplied in this package, the drop drown is integrated into the header.
Why use this mod?
To replace a long static list in a sidebox.This mod was written for my site by a commercial developer as no equivalent was available as a community contribution.
This version 0.9 is offered to help those who wish to implement something similar. Since it is working for me I have not had to bugfix it and so I have no idea how it works and so cannot offer any support other than moral.
It is offered to the community "as is" in the hope that others pick it up and iron-out any non-Zen-standard-practices that may lurk within.
As it is, it works when dropped into a classic-copy vanilla 139e site.
Download at: http://www.zen-cart.com/downloads.php?do=file&id=1141
regards
Steve
Re: Product Finder: multiple category drop-downs
Re: Product Finder: multiple category drop-downs
This add-on looks great, but is it possible to have this in a sidebox?
Re: Product Finder: multiple category drop-downs
from another thread (http://www.zen-cart.com/forum/showth...60761&page=2):
Quote:
I'm having issues getting it to work in the way I need and I think it is because I'm looking for it to utilize the current category location instead of defining the category #, but it's a step in the right direction.
Just to confirm in your setup, do you have Make options setup as you top level categories, Models setup as subcategories of Make, and Year setup as a subcategory of Models? Is there a chance you can post a link the the site it is used on?
My Top-level categories are:
1 - Manufacturers
2 - Products
3 - Your Bike
All products are defined (master cats) in Manufacturers as per the manufacturers product families and then linked to the Products and Your Bike categories.
Your Bike subcats are Bike Manufacturers (Aprilia, Benelli etc) then in each one specific models (RSV Mille, Pegaso etc..) then in each model a subcat for a specific year or range of years.
So to answer the question, the makes are the second level category.
Re: Product Finder: multiple category drop-downs
torvista, thanks again for a great contribution. melirlbr, this can be added to just about anyplace you want, just add the modified line in the tpl_header.php, between <!--BOF Product Finder--> and <!--EOF Product Finder--> to the relevant php file you want it added to, then adjust the CSS file to your needs.
I'm having issues with this add on personally though, and I've yet to figure out the cause. I'm adding the code to tpl_index_categories, as I prefer it be on the category page above the category description. Because the first pulldown is a second level category I wanted it to use $parent_id = $current_category_id instead of defining the category ID.
In any case, I've tried it in both the header and in the category page, both with and without defining the category ID, have my categories and test product added, yet the 2nd pulldown will not pull data.
I've verified all files are uploaded, but I am stumped. With regards to the readme, there is a reference to a problem and a fix with the .htaccess file, do you know how the add-on interacts when this issue happens? I'm using multi-site module so that may have something to do with it, though the page I'm testing on is the primary domain with all redirected to www.
Page testing, www.printdealz.com
Test product under postcards, cardstock, 14pt
Re: Product Finder: multiple category drop-downs
Quote:
torvista, thanks again for a great contribution.
well its not so great if it doesn't work!!
Have you tried it on a fresh 139 test site?
Re: Product Finder: multiple category drop-downs
It is throwing a script error from the jscript, so that is most likely the issue, and yes it does work fine with a fresh install. I have a developer starting working on my needs on Thursday, so in a few weeks I should have an addition to this contribution.
The developer is adding a few tweaks, such as the 2nd pulldown will become visible following the 1st pulldown choice, 3rd after 2nd is chosen, and so on... the pulldowns will not be set to 3 levels and will stop if no further sub-categories exist, and the page itself will display the new sub-category's description without a page reload so you can add details about the next step of options, and hopefully at the last step it will also wrap the product list and product detail page dynamically as well. :yes:
correction to jscript_model_year.js
Version 0.9 in the downloads section requires a minor correction in the jscript_model_year.js file to display the breadcrumb elements correctly on the results page.
find around line 13
Quote:
var cPath1=$("#select_model").val();
var cPath2=$("#cPath").val();
change to
Quote:
var cPath1=$("#cPath").val();
var cPath2=$("#select_model").val();
Re: Product Finder: multiple category drop-downs
Hello .... Newbie here
I have been developing a ecommerce site using Oscommerce but decided to try Zencart. So far it has been much easier to install and setup.
I do have a problem though and I have searched and looked but have not found my answer so I will post it here because it relates to the Product Search add on.
I have it installed but I have a question about the master category number that I need to change on line 56 of the product finder.php. Where do I find it. Is it the number that appears adjacent to the category folder after the category has been added.?
jerr
Re: Product Finder: multiple category drop-downs
Quote:
Is it the number that appears adjacent to the category folder after the category has been added.?
Yes, also known as the cPath - look a the the address of a product page and you see how it is built up from category paths and the product id, eg:
cPath=1_4_30&products_id=79
where 1 is the top category, 4 and 30 subcats and 79 the product number.