If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Can I assign more than one TEXT field to a product?

Can I assign more than one TEXT field to a product?

Started by scott_c on 3 Feb 2010, 6:08 AM · Views: 966

Results 1 to 8 of 8
3 Feb 2010, 6:08 AM
#1
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Post #1 by scott_c

Hi, we have some products that require multiple text fields.

We sell stamps and for example; a four line stamp will show 4 text fields to fill in your details.

When i create and assign text fields in the attribute controller for zen cart, it only displays one field.

Am i doing something wrong , or is this a limitation in zc?

If zc is somehow limiting the textfield count to 1, could someone point me in the right direction as to where id change the code?

Many thanks,

Scott.

Donation made. Enjoy those donuts! :-)

3 Feb 2010, 7:47 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Are you creating multiple text attributes?

As in
Option Name
Text1
Text2
text3t

Zen-Venom Get Bitten

3 Feb 2010, 8:37 AM
#3
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Post #3 by scott_c

Hi Kobra, yes I did. It was pretty late when i did the test so ill try again.

But Im sure i had;

textfield1
textfield2
textfield3

and only;

textfield1

showed up on the product page. Will check and come back shortly.

Donation made. Enjoy those donuts! :-)

3 Feb 2010, 9:09 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

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

Post #4 by schoolboy

Text Attributes work slightly differently... One Option NAME cannot have more than ONE text Option VALUE.

If you want several text fields, these must be set up as multiple Option NAMES.

Each Option NAME is assigned TEXT as the Option TYPE

When applying these Option Names to the product, simply select the relevant Option NAMES and in the second set of selections (values), click TEXT.

20 years a Zencart User

3 Feb 2010, 10:16 AM
#5
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Post #5 by scott_c

Thanks for the reply. Something must be screwy with my atrributes controller or something.. the other day i could add text fields, now if i create a text field i get this;

http://www.scolina.com/images/Capture.GIF

I cant select the option name and assign it to anything.

This only happens when trying to a create a text field, dropdowns and other option types seem to work fine.

I did do a custom import of all my products, but i wouldnt think that would affect things?

Donation made. Enjoy those donuts! :-)

3 Feb 2010, 1:56 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

Scott_C:

Thanks for the help guys, I fixed it by applying the sql in this thread;

http://www.zen-cart.com/forum/showthread.php?t=144356
That suggests you've damaged some files by deleting records you shouldn't have. There may be more cleanup required than just that one entry. Best to compare with a clean install to see what else you need to fix.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Feb 2010, 12:02 AM
#8
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Post #8 by scott_c

Thank Dr, will do.

Donation made. Enjoy those donuts! :-)