Zen Cart Logo
Forums / All Other Contributions/Addons / Product Finder: multiple category drop-downs

Product Finder: multiple category drop-downs

Views: 48,915

Results 61 to 80 of 225
10 Dec 2010, 6:30 PM
#61
bluetooth avatar

bluetooth

New Zenner

Join Date:
Sep 2005
Posts:
76
Plugin Contributions:
0

Product Finder: multiple category drop-downs

bluetooth:

Sorry,
After further testing, I have found that the modifications I made above does not work.

I will keep at it, if I get anywhere, I will post here.

FYI, for anyone who's following this thread, I have found what was causing my problem....

Besides the changes I made above, In jscript_model_year.php I had to also change this:

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

to this:

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

Also, to get this to work at all, I had to change the modulePath in YOURTEMPLATE/common/tpl_header.php from this:

      $modulePath="".DIR_WS_CATALOG; 

to this:

  $modulePath="". HTTP_SERVER . DIR_WS_CATALOG;

Hope this helps.

12 Jan 2011, 7:01 PM
#62
sonik_fury avatar

sonik_fury

New Zenner

Join Date:
Aug 2010
Posts:
28
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

In INTERNET EXPLORER only the drop down menu for "model" will overlap "year" if the text in the select box field has too many characters..........open THIS page in IE and choose hond and you'll see what I'm talking about......thanks for ANY help:D

12 Jan 2011, 8:51 PM
#63
torvista avatar

torvista

Totally Zenned

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

Re: Product Finder: multiple category drop-downs

Can you give a specific combination of selections that cause this? I could not reproduce it. And which versions of IE show the fault?

13 Jan 2011, 7:19 AM
#64
sonik_fury avatar

sonik_fury

New Zenner

Join Date:
Aug 2010
Posts:
28
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

torvista:

Can you give a specific combination of selections that cause this? I could not reproduce it. And which versions of IE show the fault?

I just select Honda in the first drop-down and the second then covers the text for "Year".....I'm using IE7 to test with.....thanks for the reply!

13 Jan 2011, 7:26 AM
#65
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

sonik, in your stylesheet_product_finder.css, find this block of code:

.pf_selectbox_text {/*text of select box*/
    padding:1px;
    border: 2px solid #949494;
    font-size:12px;
}

and add: width: 100px; to make that whole block look like this:

.pf_selectbox_text {/*text of select box*/
    padding:1px;
    border: 2px solid #949494;
    font-size:12px;
    width: 100px;
}

That should take care of this problem in IE7 for you.

13 Jan 2011, 10:16 PM
#66
sonik_fury avatar

sonik_fury

New Zenner

Join Date:
Aug 2010
Posts:
28
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

Get Em Fast:

sonik, in your stylesheet_product_finder.css, find this block of code:

.pf_selectbox_text {/text of select box/
padding:1px;
border: 2px solid #949494;
font-size:12px;
}

> 
> and add: width: 100px; to make that whole block look like this:
> 
> ```
.pf_selectbox_text {/*text of select box*/
    padding:1px;
    border: 2px solid #949494;
    font-size:12px;
    width: 100px;
}

That should take care of this problem in IE7 for you.

Awesome...thanks so much! :clap:

13 Jan 2011, 10:40 PM
#67
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

Not a problem sonik. Glad to help.

14 Jan 2011, 7:06 PM
#68
outeredge2 avatar

outeredge2

Zen Follower

Join Date:
Mar 2010
Location:
Green Bay, WI
Posts:
362
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

Is there a way to tell what Code chunk needs it be put into the tpl_header.php from the one that is supplied, and where it needs to be put?

14 Jan 2011, 9:01 PM
#69
outeredge2 avatar

outeredge2

Zen Follower

Join Date:
Mar 2010
Location:
Green Bay, WI
Posts:
362
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

I'm taking a stab in the dark at this, and someone please advise if this is incorrect.... The code below is the code for the Product finder that was in the tpl_header.php

I should be able to paste this directly into my current store tpl_header.php in any location and it should not matter. i this correct?

!--BOF Product Finder-->
<div class="clearBoth"></div>
<div id="product_finder_wrapper">
  <div id="product_finder">
    <?php 
	 echo "<form action=''>";			
?>
    <ul>
      <?php
   echo "<li>";
   $model1[]=array('id'=>'','text'=>TEXT_PLEASE_SELECT);
	 if(isset($_REQUEST['cPath1'])){
	 $value=$_REQUEST['cPath1'];
	 }	 
	 echo '<span id="pf_title">'.strip_tags(TEXT_FIND_ALL_PRODUCTS).'</span>
	 <span class="pf_selectbox_name">'.TEXT_MAKE . '</span>' . zen_draw_pull_down_menu('cPath1',array_merge($model1,zen_get_category_tree()),$value, 'id="cPath" class="pf_selectbox_text"'); 
	 echo "</li>\n";
   
	echo '<li>';   
	echo '<noscript>';
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
         if($_REQUEST['cPath1']!=""){
               $value=$_REQUEST['cPath1'];
			   $dropdownArray=zen_get_category_tree($value);
         }
echo "</noscript>";
 echo "</li>\n";    

echo "<li>";
	  $modulePath="".DIR_WS_CATALOG;
	  echo zen_draw_hidden_field('basemodulepath',$modulePath,'id="basemodulepath" ');
	 $model=array();
	 $model[]=array('id'=>'',
	                 'text'=>TEXT_PLEASE_SELECT
					 );
	   if($_REQUEST['cPath1']!=""){
	    $model=array_merge($model,$dropdownArray);
	    }
	if(isset($_REQUEST['select_model'])){
	$value=$_REQUEST['select_model'];
	}
	 echo '<span class="pf_selectbox_name">' . TEXT_MODEL .'</span>' 
	 . zen_draw_pull_down_menu('select_model', $model, $value, 'id="select_model" class="pf_selectbox_text"'); 
 echo "</li>\n";

echo "<li>";
echo "<noscript>";
if($_REQUEST['select_model']!=""){
               $value=$_REQUEST['select_model'];
			   $dropdownArray=zen_get_category_tree($value); 
         }
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');	 
echo "</noscript>";
 echo "</li>\n";

echo "<li>";
	 $year=array();
	 $year[]=array('id'=>'',
	                 'text'=>TEXT_PLEASE_SELECT
					 );
	  if($_REQUEST['select_model']!=""){
	    $year=array_merge($year,$dropdownArray);
	    }				 				 
if(isset($_REQUEST['cPath'])){
          $value=$_REQUEST['cPath'];
}
if($_REQUEST['select_model']!=""){
	 echo '<span class="pf_selectbox_name">' . TEXT_YEAR . '</span>' . 
	 zen_draw_pull_down_menu('cPath',$year , $value, 'id="select_year" class="pf_selectbox_text"');
	 }
else {
	 echo '<span class="pf_selectbox_name">' . TEXT_YEAR .'</span>' .
	 zen_draw_pull_down_menu('cPath22',$year , $value, 'id="select_year" class="pf_selectbox_text"');
}	 
echo "</li>\n";

echo "<li>";
echo "<noscript>";
if($_REQUEST['cPath']!=""){
         $value=$_REQUEST['cPath'];
	     }
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
echo "</noscript>";
 echo "</li>\n";
?>
    </ul>
    </form>
  </div><!--close product_finder div--> 
</div>
<!--close product_finder_wrapper div-->
<div class="clearBoth"></div>
<!--EOF Product Finder-->
14 Jan 2011, 11:05 PM
#70
outeredge2 avatar

outeredge2

Zen Follower

Join Date:
Mar 2010
Location:
Green Bay, WI
Posts:
362
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

So I got it where I want it but I want to change a few things. Any help would be great.

I want to change:
background color
Text/font Color
Style of box (Rounded Corners)

I tried to add 'font-color: #e79508;' to it but it didn't work.

Any thoughts???

@charset "utf-8";
/* CSS Document */
/*styles for Product Finder mod updated 2010-09-29*/
#product_finder_wrapper {/*using a wrapper and inner div to use two different background images*/
	background-image:url(../images/background_bg.gif);
	background-repeat:repeat;
	margin:3px auto;
	background-color: #f7a00a; /*Boarder color for outside of finder bar*/
	padding:3px 3px 3px 3px;
}
#product_finder {
	background-image: url(../images/search_bar.png);
	background-repeat:no-repeat;
	height:30px;
	font-weight:bold;
	background-color: #1a1919; /*Background Color for finder bar */
}
#product_finder form{
	margin:0;
	padding:0;
}
#product_finder ul {
	width:100%;
	margin:0;
	padding:0;
	line-height:30px;/*same as #product_finder to vertically-align list*/
	text-align:center;
}
#product_finder ul li {
	display:inline;
	list-style:none;
}
#product_finder ul li noscript input {
	vertical-align:center;/*not perfect..*/
}
#pf_title {/*"Show Products for..."*/
	font-weight:bold;
	font-family:arial;
	font-size:14px;
	margin-right:5px;
}
.pf_selectbox_name {/*text in front of drop-down select box*/
	font-weight:bold;
	font-family:arial;
	font-size:13px;
	margin-right:4px;/*space beween the drop-down name and the drop-down box*/
	
}
.pf_selectbox_text {/*text of select box*/
	padding:1px;
	border: 2px solid #f7a00a; /*boarder color of the secletion boxes*/
	font-size:12px;
}
15 Jan 2011, 9:49 AM
#71
torvista avatar

torvista

Totally Zenned

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

Re: Product Finder: multiple category drop-downs

Your changes should work, but I recommend you use Firefox with Firebug to identify the CSS styles in use on the page, and where..
Then you can see if your changes are not getting picked up by the browser, or maybe they are, and being overridden by some other styles.

15 Jan 2011, 3:19 PM
#72
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

outeredge.............you got a url and the EXACT list of changes you want to make?

16 Jan 2011, 11:03 PM
#73
outeredge2 avatar

outeredge2

Zen Follower

Join Date:
Mar 2010
Location:
Green Bay, WI
Posts:
362
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

My test site is:
https://www.only240sx.com

I do all my testing on this one right now before making it live on my main site. Once I have it all working I then roll it out to all my sites.
**
Changes i want to make are:**

  1. Make the box shorter with the selection boxes 'stacked' one below the other
  2. Change the text color to match that of the site;
    -Gold text
    -Black/Grey background
  3. I want to add rounded corners to the box edges and shorten it up a little so it is not so stretched out. (similar to that on https://www.coolcarpartsonline.com)
  4. The 2nd box only becomes 'active' once the first has something selected in it. Meaning you select the year, then the next box fills with car makes, then the select the car make, and after that you can choose the car model. (I hope that makes sense!! )
    Another issue I am having is i do not understand how to get the information for the finder to pull from entered in.
    -Eg: I do not know how to make each drop down populate with the correct section (Year, Make, Model)
21 Jan 2011, 8:02 PM
#74
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

melirlbr:

This add-on looks great, but is it possible to have this in a sidebox?

Has anyone tackled this challenge? I would like to have this as a sidebox as well...

21 Jan 2011, 9:17 PM
#75
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

mikestaps:

Has anyone tackled this challenge? I would like to have this as a sidebox as well...

Well I decided to give it a try... not really working :frusty:

any insight would be greatly appreciated, I'm fried for today:wacko:

test store where implemented - http://.../test_store/

23 Jan 2011, 8:58 PM
#76
torvista avatar

torvista

Totally Zenned

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

Re: Product Finder: multiple category drop-downs

For those using this Product Finder mod as it comes out of the box, a new mod which enhances the Multiple Categories Link Manager should prove extremely useful to manage your product->vehicle sub-category links.

http://www.zen-cart.com/forum/showthread.php?t=172698

24 Jan 2011, 5:54 PM
#77
outeredge2 avatar

outeredge2

Zen Follower

Join Date:
Mar 2010
Location:
Green Bay, WI
Posts:
362
Plugin Contributions:
1

Re: Product Finder: multiple category drop-downs

torvista:

For those using this Product Finder mod as it comes out of the box, a new mod which enhances the Multiple Categories Link Manager should prove extremely useful to manage your product->vehicle sub-category links.

http://www.zen-cart.com/forum/showthread.php?t=172698
Looks like it's going to be a great mod!!

27 Jan 2011, 9:27 PM
#78
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

For those interested I just submitted an update to this mod including a folder with all of the files to put it into a sidebox. That way you have a choice of where you want the drop downs to appear.

If you would like a copy of this folder b4 it's available for download PM me.

31 Jan 2011, 3:33 PM
#79
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

The sidebox added mod has been approved and is now available with this mod. You can now choose if you want Product Finder in the header or in a sidebox at the time of install.
Just to refresh the mod is available here - http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1709

9 Feb 2011, 3:28 PM
#80
kk4uga avatar

kk4uga

New Zenner

Join Date:
Nov 2010
Posts:
9
Plugin Contributions:
0

Re: Product Finder: multiple category drop-downs

I am in the beginning stages of building a truck accessories website. Eventually, we will have thousands of parts.

I have installed ZC, bought a business template from 12leaves and had the "product finder" module installed.

But looking at the admin panel and reading the forums for advice, it seems that creating an accessories/parts site will be tedious. For one, I can't figure out the category/subcategory structure I want to use.

Any advice?