Zen Cart Logo
Forums / General Questions / Product Filter by Attribute and price range

Product Filter by Attribute and price range

Views: 1,347

Results 1 to 7 of 7
13 Nov 2011, 10:23 PM
#1
fariba avatar

fariba

New Zenner

Join Date:
Jun 2010
Location:
London
Posts:
39
Plugin Contributions:
0

Product Filter by Attribute and price range

Hi,I have asked this question about a month ago on the Product Filter by Attribute and price range thread but no reply...maybe someone can help me here...

http://www.zen-cart.com/forum/showthread.php?t=79013&page=16

the website is http://bonessiballerinas.com/

I have installed the module successfully but I really need two things to be done

1: I would like to add the text in front of the drop down instead of inside the drop down in my side box... I went through the file in include/template/custom/sideboxes/ and try everything but I wasn't successful to add this texts...

2: When I search the result are correct but the images it shows is the main image of the product not the image witch match the attribute.. for example if I had a shoe called Sara under Catalog/categories/products and I uploaded with an image(in red for example) and this shoe has the other colours green and blue and they have got their own images, when I search for blue shoes the Sara will come up with the Red image not the Blue one ...

I did what ever I thought that might help me but still no chance.

I really wants to know if anyone else has got this issues or can help me to sort these issues out ...

any little help would be so appreciated ...

13 Nov 2011, 10:40 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Product Filter by Attribute and price range

You are using a TemplateMonster template, which makes helping you very difficult in many circumstances.

Even zenners with a LOT of knowledge do not have the time to unpick these templates, so many of your requests for help could be ignored.

These templates are generally BAD NEWS !!! They usually abandon many core zencart functions, making the customisation of a store very challenging.

You should seriously change the template to one that follows core behaviour more accurately.

13 Nov 2011, 11:37 PM
#3
fariba avatar

fariba

New Zenner

Join Date:
Jun 2010
Location:
London
Posts:
39
Plugin Contributions:
0

Re: Product Filter by Attribute and price range

Thank you so much for your reply..

But the things I am looking to modify, I do not think is related to the template .. When I download this add-on I uploaded the files in custom template as it said...

The things I want to change is adding the text in front of the drop down instead of inside the drop down in my side box ..

Forexample :"Color" text and then the colour drop down ....

It should be something in the add-on files I know which file it is and I add the text but it appears either on top of the gray box or underneath!!!! .. :frusty:

Thanks.

13 Nov 2011, 11:41 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Product Filter by Attribute and price range

I know my post did not specifically address the issue in question, but I am suggesting you abandon the TM template before you do any more work relating to it's files.

I can assure you, this template will give you problems in many areas.

However... you are welcome to stick with it. Problems later on could be costly...

Sorry... I can't help with the wishlist issue. I don't use that mod.

15 Nov 2011, 12:57 AM
#5
fariba avatar

fariba

New Zenner

Join Date:
Jun 2010
Location:
London
Posts:
39
Plugin Contributions:
0

Re: Product Filter by Attribute and price range

Thanks for the reply.. BTW it was not about the wish list mod it was Product Filter by Attribute and price range module :smile:

thanks anyway.

15 Nov 2011, 12:19 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Product Filter by Attribute and price range

The Option NAME will render as the "text" (or label) you are after.

The Option VALUES will render in the dropdowns.

So... by creating an option NAME = Color

... and then giving it option VALUES ... Green, Blue, Red

The word "Color" will appear as the LABEL for that attribute, and the various colors themselves... red, green, blue ... will appear in the dropdown.

I still think you are better off not using a TM "nightmare creator". Anyway... your choice.

25 Nov 2011, 8:40 PM
#7
fariba avatar

fariba

New Zenner

Join Date:
Jun 2010
Location:
London
Posts:
39
Plugin Contributions:
0

Re: Product Filter by Attribute and price range

Thanks for your reply..But it is not like a normal one which I can add a label like <label><?php echo $option_name; ?></label> ..

They are in an array and I do not know how to do this ...

The code which shows the drop downs is:

<?php $options_array = array (array( "id"=> "", "text" => $option_names->fields['products_options_name'])); I need to add something inside that array(array( ... I have tried some codes but no chance ... I also attach the whole bunch of code which is for showing the drop down : /*start attributes drop down*************************************************/ ?>
<?php

if(SHOW_ATTRIBUTES){
	$option_names = $db->Execute("SELECT products_options_id,products_options_name FROM ". TABLE_PRODUCTS_OPTIONS);
	while (!$option_names->EOF) {?>	
<?php
	$options_array = array (array( "id"=> "", "text" => $option_names->fields['products_options_name'])); 
	
	$option_names_values = $db->Execute("select pov.products_options_values_id, pov.products_options_values_name from ". TABLE_PRODUCTS_OPTIONS_VALUES_TO_PRODUCTS_OPTIONS." povp,".TABLE_PRODUCTS_OPTIONS_VALUES." pov where povp.products_options_values_id = pov.products_options_values_id AND povp.products_options_id =".$option_names->fields['products_options_id']);

		
		while (!$option_names_values->EOF) {
			
			$options_array = array_pad($options_array,sizeof($options_array )+1,array("id"=>$option_names_values->fields['products_options_values_id'],"text"=>$option_names_values->fields['products_options_values_name']));
			$option_names_values->MoveNext();
		}
		
	$content .= zen_draw_pull_down_menu('options_'.$option_names->fields['products_options_id'], $options_array, (isset($_GET['options_'.$option_names->fields['products_options_id']]) ? $_GET['options_'.$option_names->fields['products_options_id']] : ''), '') . zen_hide_session_id();
	$option_names->MoveNext();
	}  	
}


/*end  attributes drop down*************************************************/

Many Thanks School Boy ;)

I've also listened to your advise and would not use the TM for next time ... But this is not part of the TM...