14 replies [Last post]
dougdagaz's picture
Offline
Joined: 08/12/2007
Juice: 21
Was this information Helpful?

Hi:

Are there plans to allow for "fields" to be input on a product.

2 Reasons: (non related, but could possibly "kill two birds with one stone"....

1) We have a client that needs to sell registrations for events on a regular basis, there are also usually 4 prices associated with the event.
For example:
Event Description (text page)
"Click here to Register for this event" > links directly to a "Product" that allows for the user to fill in the required/requested registration information.
Options would be:
Member Early Registration : $30.00
Non-Member Early Registration: $35.00
Member Late Registration: $40.00
Non-Member Late Registration: $45.00

For this client, we are using Drupal 4.7, webforms for the registration and the 4.7 ecommerce module to buy a "lunch ticket" however, tying back the "paid" products to the webform registration has not been solved by us as of yet...(this is actually how I found the Ubercart project. Right now, the workaround is to print the web form report and compare it two the Authorize.net report to track who actually has paid.

2) For "Customizable" products -- i.e. adding embroidery to a shirt (name, logo - requires upload) -- admins would have ability to create field inputs and constrain size (i.e. max number of characters)

Doug

smb488292's picture
Offline
Joined: 09/16/2007
Juice: 19
Re: Allow 'webform' like function on a product...

For item 1), This sounds like a classic case of product attributes: one product; fours sizes; 4 different prices...

For item 2),

I have a similar requirement for text fields to be filled in at order time. I offer web hosting and domain name registration. In the case of domain registrations the "product" is the domain name being registered, transfered or renewed. Minimally, the domain name needs to be input by the customer, and it has to be has to be a compulsory field.

On a web hosting subscription the hosting account needs to be associated with one domain (the client may have many). Again, the minimum solution is to have the client input that domain name when adding that hosting product to the cart.

Outside of mine and Doug's requirements, there are lots of situations where adding custom form fields to products could be useful.

Also useful is to auto-fill those fields through some parameter passing mechanism and/or from the users profile data.

Example: Client does a whois lookup on a domain. The domain he wants is available so he/she clicks to add that domain to his shopping cart.

--
Stephen
Hardfocus Media
Japan

Stephen
Hardfocus Media
Japan

waynedrupal@drupal.org's picture
Offline
Joined: 11/26/2007
Juice: 39
Example: Client does a whois

Example: Client does a whois lookup on a domain. The domain he wants is available so he/she clicks to add that domain to his shopping cart... Again, the minimum solution is to have the client input that domain name when adding that hosting product to the cart.

Have there been any solutions or hints to this request yet? I also am very interested in having this done on my website. Thanks.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
The Gift Certificate contrib

The Gift Certificate contrib module allows customers to enter a recipient's email address and a message before they checkout.

--
Help directly fund development: Donate via PayPal!

glennnz's picture
Offline
Joined: 01/20/2009
Juice: 451
I need this too. My scenario

I need this too.

My scenario is that I want a user to enter a string into a text field. I am going to check that string against an external database, and depending on the result, alter the product price.

How can I get the input field though?

Glenn

vincew's picture
Offline
Joined: 01/21/2009
Juice: 153
Re: I need this too. My scenario

Perhaps you should have a look at Node Checkout at: http://drupal.org/project/uc_node_checkout

This module allows you to map a node type to an Ubercart product.

VinceW

-=[ Your Information Matters ]=-

(You may use my personal contact form to discuss drupal/ubercart work.)

glennnz's picture
Offline
Joined: 01/20/2009
Juice: 451
vincew Sorry, that's not

vincew

Sorry, that's not what I need. I simply need to be able to have a field on a product node, which displays a user inputted field on the product node.

Cheers

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: vincew Sorry, that's not

won't a text field attribute work for your needs?

glennnz's picture
Offline
Joined: 01/20/2009
Juice: 451
Re: Re: vincew Sorry, that's not

No, a text field only lets me enter text when I create the product, not for a user to enter something when they buy it.

vincew's picture
Offline
Joined: 01/21/2009
Juice: 153
Re: Re: Re: vincew Sorry, that's not

@glennz: Perhaps a bit overdone in your situation, but the hint was more intended to be addressed to dougdagaz. (No offense, I wasn't quite clear at that).

To your situation... I think thill is refering to product attributes.

Quote:

won't a text field attribute work for your needs?

If I'm getting you right, you only need a textfield that has to be filled in by the customer, when selecting a product. This can be done with product attributes.

Product attributes can be created at: Home » Administer » Store administration » Attributes. You can select type textfield and even make this attribute required, forcing the customer to fill in something. You can add this attribute to a (or more) product(s) you have. If a customer selects this product, the field will show up.

Best
Vince

-=[ Your Information Matters ]=-

(You may use my personal contact form to discuss drupal/ubercart work.)

thill's picture
Offline
Joined: 01/25/2008
Juice: 815
Re: Re: Re: Re: vincew Sorry, that's not

Correct, I was a bit short there, i meant ad a field for an atribute that the customer can enter any text in they want.

I have not used it but this solution might be interesting:

http://drupal.org/project/uc_webform_productize

The only issue I see is that the last commit was Oct 8th, so much has changed in Ubercart D6 in 6 months I doubt it would fully function, I could be wrong.

Another option is http://drupal.org/project/uc_node_checkout which is meant for customized products. It gives the ability for a user to create a node and purchase it.

glennnz's picture
Offline
Joined: 01/20/2009
Juice: 451
Vince That sounds like a

Vince

That sounds like a good solution, I'll give that a whirl.

Cheers

glennnz's picture
Offline
Joined: 01/20/2009
Juice: 451
Re: Vince That sounds like a

How can I get the string that is entered into the text field when 'add to cart' is clicked? I think at this stage it doesn't exist in the database, so can I do a $_POST or $_GET?

Glenn

vincew's picture
Offline
Joined: 01/21/2009
Juice: 153
@Glenn Depends on when you

@Glenn

Depends on when you want to have the value. I assume you want to compare it with the external database and/or table to do some calculations, set the final product price and show it in the shoppingcart

You could add a computed (CCK) field (see: http://drupal.org/project/computed_field for detailed info) to your product which does the lookup and calculations.

For calculations on the final product price I think you should also have a look at the module Custom Price (see: http://drupal.org/project/uc_custom_price for more info)

btw: I noticed a new post from you with the same question here: http://www.ubercart.org/forum/development/9724/retrieve_attribute_value_...

May I ask why you started a new thread with more information, instead of adding your information to this thread?

Best
VinceW

-=[ Your Information Matters ]=-

(You may use my personal contact form to discuss drupal/ubercart work.)

glennnz's picture
Offline
Joined: 01/20/2009
Juice: 451
Vince Sorry for the

Vince

Sorry for the duplicate thread, I wondered if a forum post with a more relevant title would be better for this question. See that post for a different solution offered.

Thanks

Glenn