If this is your first visit, check our documentation. To post, register or login.

Drop down box for many values

Locked

Started by allynmey on 1 Sep 2006, 3:29 AM · Views: 1,781

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
1 Sep 2006, 3:29 AM
#1
allynmey avatar

allynmey

New Zenner

Join Date:
Aug 2006
Posts:
2
Plugin Contributions:
0

Post #1 by allynmey

Hi all, I am new to this and, read through pages of posts first. I am having a hard time adding a certain attribute to a product. I will use actual situation an not hypotheticals to confuse myself. I sell electronics parts and I have one part that has hundreds of different values. I can either kill myself copying the same part over and over with one different value or use a drop down box for one field. They are all the same price but, have differing quantity avail. Here is what I would like...

Name Value Price Qty. Avail.

1 watt resistor 100K $0.79 23

The underlined is the variable i would like to assign a dropdown box for.

I have 101K, 102K,103K

I can adjust the qty.avail on each or even skip the qty avail. if it is easier. Please help!:cry:

Thank you very much in advance.

Allynmey

1 Sep 2006, 3:44 AM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

A dropdown with 100+ choices is:

1 hard on the customer

2 hard on the page load time

Also, at this time, there isn't a method for stock tracking when using the Attributes ...

You could create the product and then copy as duplicate and edit for the minor change which would give you stock control of the product ...

Note: if the stock tracking per choice is not important and you have a server properly setup ... then the 100+ choices on the Attributes should not slow you down by more than 1-2 seconds on the page ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Sep 2006, 10:22 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #3 by swguy

If you want, you could just make this value a text field and allow the person to type it in.
You can then validate the field using javascript. Here's an example:

http://www.thatsoftwareguy.com/zencart_attribute_validation.html

You could put logic for popup help (or even quantities) in the same area
so it would all be together and you'd only have to update one place when
adding or deleting related products.

Good luck,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

1 Sep 2006, 10:47 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #4 by swguy

In fact, this page takes you through the whole process.

http://www.thatsoftwareguy.com/zencart_text_attributes.html

It's just another approach. Many exist in ZenWorld. :)

Good luck,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.