One product - multiple options

Posts: 86
Joined: 02/06/2008

I have a product say, "Return of the King" which is available as
DVD
VHS
mp3
Poster

Please can someone show me how to setup this product on ubercart so that buyers can go to the product page and choose multiple format options using checkboxes.

Thanks for any help

Posts: 86
Joined: 02/06/2008

Can someone please help me out with any docu available out there to do this ?Thanks

Posts: 3
Joined: 01/11/2008

Do you have the attributes module enabled?
Here's an example: http://livetest.ubercart.org/product/ubercart-beanie

--

--

Posts: 86
Joined: 02/06/2008

Yes I do. When I add the attributes and set them as radio buttons... they show up as text boxes !

Posts: 8
Joined: 03/06/2008

got link?

Posts: 1293
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

That's what happens when you have Attributes, but your Attributes don't have any options.

Each attribute can have multiple options and each product can have multiple attributes. Like so:

Product: T-shirt

Attribute: Size
- Option: M
- Option: L
- Option: XL

Attribute: Color
- Option: Blue
- Option: Red

If your attribute has no options it will show as a text box, IIRC.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 86
Joined: 02/06/2008

Wow thanks, I'm learning stuff I never knew. Hope someone could put together a tutorial on this. Or perhaps it already exists ?

Posts: 86
Joined: 02/06/2008

I tried adding attributes and options but I still get text boxes under the attributes.

I added a product say,"Return of the King" - the product should not have a price. Setting the product price to 0 displays price as $0.00 on product page. duh

The price must be based on whether user chooses dvd ($20), poster ($10) attributes/options.

Using this as an instance can someone please help me with the steps required to set this up ?

Thanks

Posts: 86
Joined: 02/06/2008

anyone ?

Posts: 70
Joined: 01/19/2008
Uber Donor

you can turn off the price display at
store admin/config/product settings/product fields

create a attribute maybe called "Please Select"
then add options such as dvd with a price of $20, etc

then create your product, then edit the product, go to attributes and select the attribute u created,check the "required" then go to options and select how u want it

Posts: 86
Joined: 02/06/2008

Thank you very much for the hint about turning off price display.

With your help I have been able to enable the Please Select attribute with DVD, audio CD and mp3 options

These options are now displayed in a drop down combobox. This means that users can choose 1 option of the 3 at a time. I have also figured out how to display options as radio buttons.

How can I have these options displayed as checkboxes do that buyer can choose multiple options and have ubercart calculate the total of options selected ?

Also is it possible to show an icon next to each option ?

Thanks for any help

Posts: 86
Joined: 02/06/2008

Anyone ?

Posts: 70
Joined: 01/19/2008
Uber Donor

how did you get he options to display as radio buttons?

at this point i dont think you can get checkboxes, maybe in the next upgrade?

Posts: 86
Joined: 02/06/2008

Under attributes change the display combobox to "Radio Buttons"

SOS to Ryan & Lyle. The multiple checkbox option is a must-have !!!

This must be a no brainer but how do I get rid of the "submitted By Administrator - Posted on 05 March 2008" message on every product ?

Posts: 70
Joined: 01/19/2008
Uber Donor

where is that for the radio buttons? i cant find it

go edit your page and at the bottom is authoring info, leave the authored blank, for anonymous

or go to themes/configure right side to disable

Posts: 86
Joined: 02/06/2008

I'm using the bazaaar version of ubercart, maybe a week old.

Under Product | Edit| Attributes

you should find AttributeName, Default Option, Required checkbox, Order and the wonderful Display combobox which has values, Text, Select, Radio Buttons.

Choose radio buttons - product should now display options as radio buttons.

Hope this helps

Is there any way to have icons next to options ?

Posts: 86
Joined: 02/06/2008

yosemite1 wrote:

or go to themes/configure right side to disable

Hmm. I'm prefer not to have Anonymous & date show up. And I do not see where to disable "submitted by" under theme configuration.

Posts: 70
Joined: 01/19/2008
Uber Donor

it is under admin/themes/ and the configure tab at the top

if you have clean urls enabled try this
http://www.YOURSITE.COM/admin/build/themes/settings

i dont see those options as i am running beta6

Posts: 86
Joined: 02/06/2008

Thanks. I went to theme global settings and removed the Display Post Info for product.

Hmm, I'm using drupal 5.7 with today's bazaar ubercart.

All 3 options are ticked. My single attribute "Format" is set to required and under attribute, display combobox is set to radio buttons

So you're not seeing the radio buttons ?

Posts: 70
Joined: 01/19/2008
Uber Donor

no not on this version, i am waiting for the official release before upgrading

Posts: 332
Joined: 08/07/2007
Administrator

This functionality of icons is not built into attributes module. I guess you could perhaps also override the theme of add to cart form, but that wouldn't leave you with a way to upload specific images for specific attributes on products. I think the only way to implement this functionality is you'd have to create a module that uses hook_form_alter to alter the way attribute widgets (text box, select, checkbox) are themed and provide a form that would let you upload an image to associate with a particular attribute widget.

--

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Posts: 86
Joined: 02/06/2008

So what you're saying is that there is no solution at this time for adding an icon with the option ? Say a dvd icon for dvd option, etc ?

What about using multi-select checkboxes instead of radio buttons ?

Posts: 86
Joined: 02/06/2008

My next question is to do with individual shipping rates for the different options:

How do I assign say a flat shipping rate to option#1(DVD) and option#2 (CD) but no shipping for mp3 download ?

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Briefly read through this thread, and I want to point out a couple things.... First, attributes and options should be used to specify derivations of the same product. A poster vs. a movie are actually two separate products, so I would recommend against using this on the same product. For this reason, we most likely won't have multiple select in the near future. Instead I'd recommend you creating some sort of related products system that can recommend a DVD when they're on a poster page, or something similar. Finally, icons are totally possible, but you have to use hook_form_alter() in a custom module to get it done. It could be a fairly complex task, though it shouldn't take a lot of code. There just isn't a UI for anything like this.

Posts: 86
Joined: 02/06/2008

Ryan wrote:
A poster vs. a movie are actually two separate products, so I would recommend against using this on the same product..

OK, so you're recommending separate products and something like torgos pizza's upsell mod ? So I'm guessing one category for each cd/dvd/mp3?

Posts: 34
Joined: 09/28/2007

Ryan wrote:
For this reason, we most likely won't have multiple select in the near future.

I agree that those specific products should be seperate, but I disagree with you, Ryan overall.

For example:

If I have a product: Burrito and I have attributes: Beans, Lettuce, Cheese, Mild Salsa, Hot Salsa, Tomato, Cilantro, Peppers, etc. It would be illogical to have these as single radio buttons or select lists, let alone separate products.

It couldn't be that hard to enable an option like this, but I'm not a programmer so I shouldn't say anything of the nature. But I do think multiple attributes is a serious need, espcially since I am building an online order system for a restaurant at the moment.

Is there any quick workaround for getting multiple attributes to work?

TIA,
txcrew

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

For food items like that you can possibly use an attribute with no options so the user can fill in what they want. That's if you trust your customers enough to get it reasonably right (danger! bridge out!).

Alternatively, you can make the ingredients themselves the attributes with options of "Yes" and "No" for each. Lettuce: yes or no; Cheese: yes or no; Salsa: Mild, Hot, or none; etc.

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Well, restaurants are somewhat exceptional when it comes to e-commerce, as most folks buying stuff online aren't building a burrito. Smiling However, for something like you mentioned, the ingredients or toppings aren't specific product attributes... they're more components of the product. The attribute may be "Tomatoes" with options "Yes" or "No." Obviously, this isn't great, but it's conceptually what's going on.

What you could try to do instead is use a custom module to add a set of checkboxes to the add to cart form for these certain products. You can then use this data to fill in the variable option for an attribute called "Ingredients" with the list of "Tomatoes, Peppers, Black Beans" or whatever they checked.

I setup a restaurants focus group forum where issues related to restaurants could be specifically hashed out. I see a lot of benefit in having a contributed module available that adds restaurant specific features, like building a product from base and custom ingredients.

Posts: 34
Joined: 09/28/2007

Sounds great Ryan & Lyle, thanks for the replies.

I'll put a bounty on a mod that does what you mentioned.

I don't think the 'yes/no' option will work. Mostly for the reason that a product will always have an attribute when adding it to your cart even if it doesn't necessarily need one. Also for the reason that it will create a few more fields and choices which could end up scaring the average customer away (checkboxes can do this too, I just think those would be a bit more organized).

Anyway, I'll let you know what happens.

Thanks!

txcrew

Posts: 1
Joined: 03/21/2008

I am having some of the same problems with a photo gallery site.

For each image I want to offer different sizes at different prices, a quantity for each size and 2 paper options.

Something like this:
order prints on pro paper:
size price qty total price
8x10 $10.00 a box here calculates qty x price
size 2
etc.

order prints on canvas:
another table like above but different prices at each size.

Do I need to create fields for each paper type and then attributes/ options for each field?

thanks for the help.

Michael

Posts: 6
Joined: 03/19/2008

I think this is the appropriate thread for this question. It's probably an easy answer that I'm overlooking. I have a site for wholesale funnels. There are three series of models, each series containing 4 or 5 funnels of the same price. They are sold by the case. When the buyer selects a particular series, I have set up an attributes class of "1-9 Cases 400 series" with the options being the different model numbers within this series. They are all the same price. Ubercart (5.7) is requiring that I have a default option with a price and then offers the other models in the drop down box.
I tried creating a default option marked as required- with a 0.00 price so that the buyer could choose from the drop down menu, the models that they want. I get an error message saying that the "default value must be a valid value." The program default is making me choose one of the models with a price as the default. This means that when placing an order, the red funnels (set as default, could be any of the colors, this is just an example) are automatically added to the order prior to being able to select the mix of models that the buyer might want. If the buyer only wants one case of yellow funnels, when going to check-out they are being charged for 2 cases - the default red funnels plus the yellow funnels they selected.
I hope this is stated clearly enough...
What's the fix?

Thanks!