Zen Cart Logo
Forums / Addon Sideboxes / Product Filter by Attribute and price range Help

Product Filter by Attribute and price range Help

Locked

Views: 1,662

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
25 Apr 2010, 3:36 PM
#1
adamlonsdale avatar

adamlonsdale

New Zenner

Join Date:
Apr 2010
Posts:
22
Plugin Contributions:
0

Product Filter by Attribute and price range Help

Hey there,

I'm currently using 1.3.8 and have installed the filter by attribute and price range module. I was wondering how i would go about disabling the option for the price range option.

Also, I have two attribute options (size and colour) and on the sidebar (click here) they appear twice. I am unsure how to fix this.

The final thing, is that I only want one attribute option to be selected from (Size). How do I disable th colour option?

Regards,

Adam.

30 Apr 2010, 12:20 PM
#2
adamlonsdale avatar

adamlonsdale

New Zenner

Join Date:
Apr 2010
Posts:
22
Plugin Contributions:
0

Re: Product Filter by Attribute and price range Help

I believe this is the code that is ausing me issues: Help is appreciated

if(SHOW_ATTRIBUTES){
$option_names = $db->Execute("SELECT products_options_id,products_options_name FROM ". TABLE_PRODUCTS_OPTIONS);
while (!$option_names->EOF) {
$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();
}
}