3 replies [Last post]
backdrifting's picture
Offline
Joined: 10/04/2008
Juice: 373
Was this information Helpful?

Is there a method of adding an attribute to a product as a text field but allowing the user to type the # of attribute items they want into that text field, and then for that option price to be added to the product total? I have an event product type and I want to add the ability of the registrant to add a # of videos to their order. The video is the attribute. So they buy the event (for a total of $60) and then they add 2 videos to it. Each video costs $2. So the total for 2 videos + the event would be $64.

I see how I can use the select box for the attribute options but this seems clunky and not very user friendly. Can I just use a text box but have it work per my workflow above?

=backdrifting

JohnM's picture
Offline
Joined: 07/23/2009
Juice: 37
Re: Attribute text box issue

This is a bit of a workaround, but what about just setting each quantity as an attribute option? So, you have the main attributes, and then the options are:

Pick Number of Videos to Add
1 - $2
2 - $4
3 - $6
4 - $8
...

Pretty quick and easy (I think).

backdrifting's picture
Offline
Joined: 10/04/2008
Juice: 373
yes that works ...

Yes that works. I had my general UC Attribute settings wrong in the config. I needed to change them to "Do not display" price format - this way it just shows the quantity in the select box.

Good. Thanks!

-backdrifting

JohnM's picture
Offline
Joined: 07/23/2009
Juice: 37
Re: yes that works ...

Awesome! I'm new to both Drupal and Ubercart, so it's nice to help somebody.