Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Attribute values show in drop down menu

Attribute values show in drop down menu

Locked

Views: 2,320

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Jan 2007, 7:04 PM
#1
lailokken avatar

lailokken

New Zenner

Join Date:
Jan 2007
Location:
Illinois
Posts:
11
Plugin Contributions:
0

Attribute values show in drop down menu

Heya all,

I'm very new to Zen-Cart so I'm sure I've probably overlooked something when I set up my attributes. I've searched the site and cannot find an answer so I'm posting.

Using 1.3.6 on linux server.

I'm wondering if there is a way to keep the attribute values from showing in the drop down menu.

The menu in question is WEIGHT. I'm including a link to the page, perhaps someone can take a look and see if this is how the attribute feature is suppose to display.

Currently it shows the product and base price, which is what I want. When you click the drop down arrow though to see the other 3, the other choices are displayed (which is also what I want), but next to them are the attribute values.. which I do not want visible.

1 lb White Poly (+$1.20)(+0.25lbs)
16 oz Valve (+$1.70)(+0.25lbs)
5 lb Bag (+$22.00)(+4.25lbs)

http://abyssnetwork.com/chauvinstore/index.php?main_page=product_info&cPath=61&products_id=286

thanks much

15 Jan 2007, 7:27 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute values show in drop down menu

On each Product Type in the Catalog ... Product Type ... Edit Layout ...

There is a setting for whether or not to show the Attribute Weight:

Show Attribute Weight
Display Attribute Weight on Product Info 0= off 1= on

15 Jan 2007, 8:07 PM
#3
lailokken avatar

lailokken

New Zenner

Join Date:
Jan 2007
Location:
Illinois
Posts:
11
Plugin Contributions:
0

Re: Attribute values show in drop down menu

Ajeh,

wow... thanks very much for the quick response. I followed your instructions and it worked, weight is no longer visible.

Is there something similar I can do so the additional cost doesn't show in the menu? I still want it to be figured into the cost of the product, just don't want it to be visible in the drop down menu.

again, thank you very much for the help

20 Jan 2007, 4:09 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute values show in drop down menu

If you were shopping in a store ... and picked up a broom for $10.00 then got to checkout and it was $12.50 for the red broom ... wouldn't you be a bit miffled?

Why would you want to hide the prices from someone?

21 May 2007, 2:00 PM
#5
suffrinmick avatar

suffrinmick

New Zenner

Join Date:
Jun 2005
Posts:
19
Plugin Contributions:
0

Re: Attribute values show in drop down menu

Hi - I'm looking to hide the attribute values that are listed at the side of some radio buttons i've added to some products.

I'm not hiding the prices as they are displayed in a table, but we've asked some people to test the site and found that E.g. "1 Week (+£26.00) *£50.00" seems to confuse people.

Please could you tell me if there is any way to hide this data?

Thanks
SM

21 May 2007, 3:21 PM
#6
suffrinmick avatar

suffrinmick

New Zenner

Join Date:
Jun 2005
Posts:
19
Plugin Contributions:
0

Re: Attribute values show in drop down menu

Hi - It's ok i've managed to figure it out. Here it is for any one else who may need the info:

Copy includes/modules/attributes.php to your CUSTOM folder.

I needed to hide the info that was displayed alongside a radio button:
About line 159 you should see:
$products_options_display_price= ' (' . $products_options->fields['price_prefix'] . $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';

Comment the line out (you may need to add // before $products and also $currencies.

And add in: $products_options_display_price= '';
This will then make the variable that displays the info blank.

upload the file and the product info page simply displays the option.

I also changed the one-time variable as well.

Hope this helps

SM

21 May 2007, 3:49 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute values show in drop down menu

Thanks for the update! :smile: