If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Product Finder: multiple category drop-downs

Product Finder: multiple category drop-downs

Started by torvista on 5 Aug 2010, 7:08 PM · Views: 49,021

Results 101 to 120 of 225
9 May 2011, 10:31 PM
#101
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Product Finder: multiple category drop-downs

mikestaps:

To make sure the category structure is correct I made some notes here for you....

MASTER CATEGORY

FIRST CHOICE DROP DOWN (inside the master category "folder") - [GM, FORD, MOPAR]
SECOND CHOICE ARE ACTUALLY JUST MODELS SO SAY WE PICKED GM

THEN GM WOULD HAVE UNDERNEATH IT

(inside the GM "folder") NOVA, CHEVELLE, ETC.

THEN THE THIRD CHOICE, SAY WE PICKED NOVA

THE THIRD CHOICE WOULD HAVE

(inside the NOVA "folder") ENGINES, TIRES, AND WHEELS
AND WHEN YOU PICKED SAY ENGINES, THEN THE PARTS WOULD SHOW UP ON THE MIDDLE SCREEN.

PRODUCTS WOULD THEN BE LOCATED, BY LINKING, IN THE ENGINES, TIRES, AND WHEELS FOLDER/CATEGORY.

Does it matter how deep you go with the sub categories cause this is what we have

MASTER
THEN THREE CHOICES FOR THE FIRST DROP DOWN
THEN YOUR CAR CHOICES
THEN YOUR PARTS CHOICES
THEN YOUR ACTUAL PRODUCTS.

don't mess with willie bee. i may go crazy on you.

11 May 2011, 4:13 AM
#102
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

screw it. just doesn't work for me. too bad. thanks anyways.

don't mess with willie bee. i may go crazy on you.

11 May 2011, 11:52 AM
#103
autolider avatar

autolider

New Zenner

Join Date:
Jul 2010
Posts:
5
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

I have this multiple category drop-downs added in my site.
When the client select the third dropdown , i want to bring him to one page for selected model with a list attached as shown.
Please someone help me if it possible.

12 May 2011, 12:57 PM
#104
autolider avatar

autolider

New Zenner

Join Date:
Jul 2010
Posts:
5
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

no one can find a solution?

23 May 2011, 12:41 PM
#105
autolider avatar

autolider

New Zenner

Join Date:
Jul 2010
Posts:
5
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

helooooooooooooooooooooooooo
help me please!

23 May 2011, 12:49 PM
#106
byoriginaldesign avatar

byoriginaldesign

New Zenner

Join Date:
Apr 2009
Posts:
84
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

That would require custom coding. It is possible with zencart (almost anything is) but really what you want sounds more like writing a entire ajax form module.

Brian - Connecticut, US --- Using Zen 1.3.9g - Modified Classic Template
Currently developing: http://www.printdealz.com
Other Zen Pages: http://www.wholesale4realtors.com 1.3.8a

1 Jun 2011, 4:42 AM
#107
prowebsource avatar

prowebsource

New Zenner

Join Date:
Jul 2009
Posts:
7
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Bluetooth,

Thank you for posting instructions on how to decrease the drop-downs to two. I followed it step by step and it worked! Only one minor glitch in the code.

This

window.location=(baseDirectory+"index.php?main_page=index&cPath="+cPath1+"_"+cPa th3);

Should be this

window.location=(baseDirectory+"index.php?main_page=index&cPath="+cPath1+"_"+cPath2);

Thanks again!

8 Jun 2011, 9:44 PM
#108
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Can anybody help me with my error? This module works with JS turned off, but with it turned on I'm getting the following error in firebug:

$ is not defined
$(document).ready(function(){

I do see this code rendering on the page:

<script type="text/javascript"><!--
$(document).ready(function(){
$("#cPath").change(modelList);
$("#select_model").change(yearList);
//$("#select_year").focus();
$("#select_year").change(function()
{
var baseDirectory=document.getElementById("basemodulepath").value;
var cPath1=$("#cPath").val();
var cPath2=$("#select_model").val();
var cPath3=$("#select_year").val();
window.location=(baseDirectory+"index.php?main_page=index&cPath="+cPath1+"_"+cPath2+"_"+cPath3);
}
);
});
var modelList=function model_list(){
var baseDirectory=document.getElementById("basemodulepath").value;
var cPath=document.getElementById("cPath").value;
$.ajax({
type: 'POST',
url:baseDirectory+"modellist.php",
data:"cPath="+cPath+"&my=1",
success: function(data){
// alert(data);
if(data!=""){
arrayVar=new Array();
arrayVar=data.split("|");
arrayVarId=new Array();
arrayVarId=arrayVar[0].split("^");
arrayVarName=new Array();
arrayVarName=arrayVar[1].split("^");
$('#select_model').html("");
$('#select_model').append("<option value=''>Please Select<\/option>");
for(i=1;i<arrayVarId.length-1;i++)
{
$('#select_model').append($("<option><\/option>").attr("value",arrayVarId[i]).text(arrayVarName[i]));
}
}
}
});
};
var yearList=function year_list(){
var baseDirectory=document.getElementById("basemodulepath").value;
var cPath=document.getElementById("select_model").value;
$.ajax({
type: 'POST',
url:baseDirectory+"modellist.php",
data:"cPath="+cPath+"&my=2",
success: function(data){
if(data!=""){
arrayVar=new Array();
arrayVar=data.split("|");
arrayVarId=new Array();
arrayVarId=arrayVar[0].split("^");
arrayVarName=new Array();
arrayVarName=arrayVar[1].split("^");
$('#select_year').html("");
$('#select_year').append("<option value=''>Please Select<\/option>");
for(i=1;i<arrayVarId.length-1;i++)
{
$('#select_year').append($("<option><\/option>").attr("value",arrayVarId[i]).text(arrayVarName[i]));
}
}
}
});
};
//--></script>

I'm not a Javascript pro, but I would really appreciate any insight!

Kind regards,

Gautama

22 Jun 2011, 12:47 PM
#109
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Hello torvista,

This is one module I feel could solve my problem

On my website, http://204.93.193.150/~bhavikac/ is a city wise deals site.

The visitor first chooses the city he is in (Which he does from a single drop down menu) in the header. He is then taken to the specific page for that city where he should see the sub categories (gifts for her, gifts for him, anniversary gifts etc) available in that city. Under the sub categories, he will see the products.

Can I use the multi category drop down with some modifications for this website? I mean instead of having 3 drop downs, the 2nd drop down menu (based on the category chosen) is shown as a horizontal menu in the header bar.

Any help is welcome.

torvista:

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.

I'll post again when it is available for download,
regards
Steve

http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports

13 Jul 2011, 3:52 PM
#110
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

willie bee -
i think I may have found your issue.... Do you have any SEO mods installed?
I installed the ceon SEO mod and the product finder no longer works... I'm going to install some of the other SEO mods and see if the issue is duplicated.

14 Jul 2011, 2:17 AM
#111
brian70809 avatar

brian70809

New Zenner

Join Date:
Jun 2011
Posts:
85
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Love this module.. it has solved my large inventory problem..

HOWEVER! lol..

I am using zencart 1.3.9 most current...

if you hit my site with the https://www.thehardwarestop.com .. everything is working.. sometimes there is a delay, but it's a large catagory list.

if you hit it without the www... just thehardwarestop.com .. then only the first catagory works.. and the rest of them are not filled..

is this a server issue? I sent info in to the tech support of my host.. waiting on reply.

Thanks for the great module!

Brian

15 Jul 2011, 3:44 AM
#112
brian70809 avatar

brian70809

New Zenner

Join Date:
Jun 2011
Posts:
85
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

solved... i didn't see the fix in the help file.. sorry about that..

19 Jul 2011, 10:53 AM
#113
damixa avatar

damixa

New Zenner

Join Date:
Jun 2011
Location:
Bournemouth UK
Posts:
44
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Hi , Ive downloaded this and the php files in the sidebox folder are not the same as in the readme:
in the readme they all end _sidebox.php as below, but in the files they dont?

readme files are as follows:

File List - FOR SIDEBOX USE

/modellist.php - NEW
/includes/functions/extra_functions/product_finder_sidebox.php - NEW
/includes/languages/english/extra_definitions/product_finder_sidebox.php - NEW
/includes/modules/sideboxes/YOUE_TEMPLATE_NAME/product_finder_sidebox.php - NEW
includes/templates/YOUR_TEMPLATE_NAME/buttons/english/go.jpg - NEW
includes/templates/YOUR_TEMPLATE_NAME/common/html_header.php - may overwrite an existing file, merge differences
includes/templates/YOUR_TEMPLATE_NAME/css/stylesheet_product_finder_sidebox.css - NEW - or add contents to the bottom of /includes/templates/YOUR_TEMPLATE_NAME/css/stylesheet.css
includes/templates/YOUR_TEMPLATE_NAME/jscript/jscript_model_year.js - NEW - If you already use jquery - you don't need this, see below.
includes/templates/YOUR_TEMPLATE_NAME/jscript/jquery-1.3.2.min.js - NEW
includes/templates/YOUR_TEMPLATE_NAME/sideboxes/tpl_product_finder_sidebox.php

30 Jul 2011, 11:47 AM
#114
damixa avatar

damixa

New Zenner

Join Date:
Jun 2011
Location:
Bournemouth UK
Posts:
44
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Hi all,
Ive tried everything, Ive gone through the product finder css , Ive gone hro the stylesheet css, I can change the text font and colour and the width and depth of the product finder, but CAN I CHANGE THE BLACK BACKGROUND!!! No.
Can someone PLEASE tell me where to change the colour on the wrapper, Ive been at it a week now and Im getting CSS bllindness!

Thanks

30 Jul 2011, 12:07 PM
#115
damixa avatar

damixa

New Zenner

Join Date:
Jun 2011
Location:
Bournemouth UK
Posts:
44
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Never mind, found it.
I was editing the wrong stylesheet!

I hadbacjked up ( renamed ) all my stylesheets as I edited them. I am using Dreamweaver to edit. I was editing the dropdown stylesheet but my site was picking up a renamed stylesheet. (maybe dw updated links or something)

So I deleted all renamed (backup) stylesheets and I am now editing the correct one (DUH!)

6 Aug 2011, 11:28 AM
#116
damixa avatar

damixa

New Zenner

Join Date:
Jun 2011
Location:
Bournemouth UK
Posts:
44
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Worked out how to add a BackGround images when the product finder is in the header accross the page, but when you use the sidebox option I cannot find how to change the background without changing every single sidebox with the same image.
Does anyone know how to change a single sidebox image?
Ive done the obvious and placed an image in the dropdown sidebox in the css file, but as I say, this changes ALL the sideboxes.
Thanks
Mike

6 Aug 2011, 11:11 PM
#117
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Product Finder: multiple category drop-downs

Do you have the site available to look at?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

26 Sep 2011, 11:37 AM
#118
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

hi, looking to use this mod for different categories other than make year etc, is this going to be a complete rewrite or am i expecting it to auto populate the same way? ie i am using 0 as the category id to have all my top levels show as a first option, which in turn have sub cats and then products.

any advice appreciated

http://www.mods.livvylougifts.co.uk Zen Cart Mod Site
http://www.livvylougifts.co.uk Personalised gifts for every occasion

26 Sep 2011, 12:01 PM
#119
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

actually it works fine using 0 as the top category and populates the other two boxes fine, having a problem with javascript though.

anyway just wanted to confirm for others who may want to use it like this too

http://www.mods.livvylougifts.co.uk Zen Cart Mod Site
http://www.livvylougifts.co.uk Personalised gifts for every occasion

3 Oct 2011, 9:08 PM
#120
jerr avatar

jerr

New Zenner

Join Date:
Sep 2010
Location:
California
Posts:
22
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

I have this mult cat working on my site and it is working very well.

http://tireup.net

I do have another modification I would like to do but it has me stumped. Its adding some text to the product listing page. I know that after doing a search for tire size if you click on price it will sort low to high and/or high to low, but this is not real obvious to a customer so I would like to add some text above the bar or banner that is showing the price hyperlink that will instruct customers on how to sort by price.

??

Thanks
jer37