Forums / Setting Up Categories, Products, Attributes / Possible to Add Option Value via Database?

Possible to Add Option Value via Database?

Locked

Views: 1,185

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
9 Feb 2008, 7:15 PM
#1
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Possible to Add Option Value via Database?

I'm in Attribute Hell.

Not sure how to explain what I'm hoping to do, but here goes...

I need to add an Attribute Option Name. No problem.
But...that option name will have 367 option values.

Is there a way to add these values without doing them one by one manually?

I'm hoping it can be inserted into the database via phpMyAdmin, but I don't know how or what I would need to put in a SQL file to do it.

I already have several other Option Names set up with values, so I don't want to risk losing those either.

I have the list of values saved in a Notepad file.

Any help or suggestion is greatly appreciated!!! :smile:

I'll finish that project tomorrow, I've made enough mistakes today!

9 Feb 2008, 7:55 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Possible to Add Option Value via Database?

What in the world are you doing that you need 367 values on 1 Option Name?

As a human I am not going to be able to browse such a huge list ... :eek:

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!

9 Feb 2008, 8:00 PM
#3
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Re: Possible to Add Option Value via Database?

I know!! Unfortunately, it's necessary in this particular instance.

This is a candlemaking supply site which offers 367 different fragrances on several of the products.

I'll finish that project tomorrow, I've made enough mistakes today!

9 Feb 2008, 8:24 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Possible to Add Option Value via Database?

Unless you have a well optimized server, this will not be able to load on the page ...

It wouldn't work to break up the fragrances in some manner on a few Products so you don't have the customer struggling to find a fregrance among 376 Option Values?

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!

9 Feb 2008, 8:35 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Possible to Add Option Value via Database?

Boggled:

I'm in Attribute Hell.... and then some> How are you going to present 367 values to visitors? That's a very long pull down menu, or a lot of radio buttons.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Feb 2008, 8:39 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Possible to Add Option Value via Database?

Could you do something creative. I'm guessing that fragrance isn't a field being used for stock purposes, so could you instead put the fragrances on an information page, and ask the customer to type the name of the one they want into a text attribute (and even leave blank for a random choice). Although that wouldn't normally be a great user interface, in this case it would be easier on the visitor than expecting them to find the one they want in such a long list.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Feb 2008, 9:05 PM
#7
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Re: Possible to Add Option Value via Database?

kuroi:

Could you do something creative. I'm guessing that fragrance isn't a field being used for stock purposes, so could you instead put the fragrances on an information page, and ask the customer to type the name of the one they want into a text attribute (and even leave blank for a random choice). Although that wouldn't normally be a great user interface, in this case it would be easier on the visitor than expecting them to find the one they want in such a long list.

It does make for a very long dropdown list!
Luckily, most Candlemakers usually know what fragrances they need/want to order and as long as the list is alphabetical, they don't have a problem finding what they want.

Thank you for that suggestion! I may have to go that route. I know I personally hate having to type stuff in, but it may be the only solution.

I'll finish that project tomorrow, I've made enough mistakes today!