Zen Cart Logo
Forums / General Questions / Additional Attribute Types

Additional Attribute Types

Views: 635

Results 1 to 6 of 6
16 Apr 2011, 5:20 PM
#1
thomkolton avatar

thomkolton

New Zenner

Join Date:
Mar 2011
Posts:
16
Plugin Contributions:
0

Additional Attribute Types

My website provides services, not products. In certain cases, the customer needs to provide additional information. For example, for an interpretation, the customer must tell us which language they require, the time it is required, and the duration of the session.

I know that I could set up mandatory text fields for these things, but it is a rather inelegant approach, as it does not permit validation of the entered values. Instead, I would like the customer to be able to select the language from a drop-down list, and I would like to validate the entered time in advance.

Has anyone done anything like this already? I've searched but couldn't even find a discussion topic on the matter.

If it has not been done, does anyone have a good idea of how to go about developing this?

16 Apr 2011, 5:26 PM
#2
donal avatar

donal

Zen Follower

Join Date:
Jan 2009
Location:
Ireland
Posts:
442
Plugin Contributions:
0

Re: Additional Attribute Types

might be missing something here but:
Do you not simply set up an attrbute for the language?
and then one for the time 1hr 2hrs or wotever, this way (if you set the default one as "please choose") they will have to validate the chose?

16 Apr 2011, 5:31 PM
#3
thomkolton avatar

thomkolton

New Zenner

Join Date:
Mar 2011
Posts:
16
Plugin Contributions:
0

Re: Additional Attribute Types

Impractical for 50 languages, not elegant for selecting the time (12:00 AM, 12:15 AM, 12:30 AM...).

But I found some good solutions in the "similar threads" section below, which I am now reading. Specifically, I'm reading https://www.zen-cart.com/tutorials/index.php?article=114. It is very useful.

16 Apr 2011, 5:46 PM
#4
donal avatar

donal

Zen Follower

Join Date:
Jan 2009
Location:
Ireland
Posts:
442
Plugin Contributions:
0

Re: Additional Attribute Types

trying to keep it simple:

I would like the customer to be able to select the language from a drop-down list
That is normal attribute behavior

Then split the time into two:
ie: hr
and then beside it minutes
so would be two more attrbites one with 24 and one with 4

16 Apr 2011, 6:40 PM
#5
thomkolton avatar

thomkolton

New Zenner

Join Date:
Mar 2011
Posts:
16
Plugin Contributions:
0

Re: Additional Attribute Types

Donal:

trying to keep it simple:

That is normal attribute behavior

Then split the time into two:
ie: hr
and then beside it minutes
so would be two more attrbites one with 24 and one with 4

You know what? THAT is not a bad idea! Thanks.

17 Apr 2011, 4:25 AM
#6
thomkolton avatar

thomkolton

New Zenner

Join Date:
Mar 2011
Posts:
16
Plugin Contributions:
0

Re: Additional Attribute Types

I entered all the languages through normal procedures. But date and time won't work like that.

I realized that what I am looking for is a new option type. I'm going to start a new thread on this topic instead.