I made an event and need to have different prices so i made a product attribute for the event. It's not showing up on the product page though.

Comments

Rob_Feature’s picture

Category: support » feature
Status: Active » Postponed (maintainer needs more info)

Attributes which alter the purchase aren't supported yet but it's a feature I'd like to add. Can you give an example of what you're doing including use of any additional modules so, in the future, I can consider how to make this happen? The more detail you give the better I'll be able to see how to add this.

JoshW’s picture

im just using the modules you had in your video. Im just trying to add a basic attribute using ubercart. I need this because I have events with different group rates and additional options like messages and acupuncture. I started making an event here. http://flowintolove.com/mystica-costa-rica-retreat

Rob_Feature’s picture

Assigned: Unassigned » Rob_Feature
Status: Postponed (maintainer needs more info) » Postponed

Ok, sounds good. Thanks for the details. This is officially in the 'feature request' list and is high up on the list.

JoshW’s picture

Awesome! Thanks Rob!

daniel-san’s picture

This module is looking great and I hope to write up how I am going to implement this in a site I'm building right now.

One thing that I'm now realizing is a great feature of the Signup module, is the ability to sign up multiple people at the same time. We are putting on a educational conference and sometimes we'll have organizations wanting to sign up 10 people on the same purchase order. Thinking back to the Signup module, you have the ability to add the tickets you are selling to the shopping cart and it steps you through adding the multiple email addresses that will then become attendees and have accounts on the site.

With your new module, I can add multiple items to the shopping cart, but it does not ask me for the other email addresses of the attendees. It only is listing one email address. Or am I missing something?

thanks,
Dan

Rob_Feature’s picture

Hi Dan,
Please file a new issue since this comment is unrelated to the original feature request in this issue. I'll give you an answer there when you have done that (this keeps the issue queues organized). Thanks.

JoshW’s picture

UPDATE: This might help you out. If you put your paid events into a view that shows full nodes as the row style the attributes are displayed. Here is an example: http://flowintolove.com/workshops

Hopefully this helps!

Rob_Feature’s picture

RanchHand: The problem isn't getting attributes to display (I've purposely removed them)...it's instead, getting them properly added to the cart along with the items...this is where the module is doing it custom.

So, in addition to my custom data (submission ID) I need to add any product attributes to the $data part of the add to cart hook...that's the part I haven't been able to complete yet.

JoshW’s picture

I'm just trying to help. :)

nessumsara’s picture

I noticed on this example page that the Mystica Costa Rica Retreat has two options. Did you set this up using Ubercart Event Registration or was that custom code? If it's UER, please let me know how you did it. If not, would you mind sharing your custom code?

justclint’s picture

Hey Rob, in response to your post #1 another scenario Im running into is having the ability to have 2 quantity fields where the client can purchase ticket quantities for adults as well as children which would be different prices.

I believe this could be done using attributes however Im not positive that is the best way to do it.

Would you possibly have any recommendations on how one would go about achieving this?

By the way this is a great module and Im looking forward to its growth.

Thanks!

Rob_Feature’s picture

@#11: This seems like it would be one of two scenarios: Either an attribute which modifies price (not two quantity fields) or two separate products.

We'll keep working on attribute integration and will get there someday. If anyone is an ubercart guru and wants to pitch in I can give them details on the problem I'm having making it work.

Rob_Feature’s picture

Basic attributes now available in the development release from March 4. Test them and let me know if they work for you. The next step will be to try and get these integrated into the webform somehow...having thought that far ahead, though....suggestions welcome.

Rob_Feature’s picture

Status: Postponed » Needs review
Rob_Feature’s picture

Version: 6.x-1.0-beta6 » 6.x-1.x-dev
Status: Needs review » Postponed

I realized today that all the additions for attributes weren't working and that the data was going to be difficult to get. This all was removed from the dev version today.

If anyone wants info to work on a patch let me know...for now it's being postponed.

Rob_Feature’s picture

Status: Postponed » Needs review

Holy smokes. Attributes now working in dev version (March 11). Please test.

Rob_Feature’s picture

This is going to be the holdup for a next release. Please test and report back.

portulaca’s picture

We tested the latest dev build and attributes do appear and work as expected.

Another feature that might be really useful is integrating the attributes as webform fields, to get the nice webform statistics on them. For example when choosing breakfast for a conference you'd automatically get the number of people for each option...

Currently we're trying to find a solution for attribute quantity (uc_attribute_quantity module doesn't seem to work with either node checkout or Ubercart event registration), and calculating the total price through ajax on the fly with uc_aac module. Do you have any advice on where to look to get those started? Can it be done within Ubercart event registration or do we have to patch uc_attribute_quantity and uc_aac?

Rob_Feature’s picture

#18: Yeah, ideally I wanted webform fields to act as attributes rather than just stuffing attributes on the end of the webform. The biggest problem here is that the format of webform forms is different than that of the standard forms api...so we can't just move the form items easily back and forth between the two.

For now, what we have here (which is to unset the UC attribute and reset it as a field in the webform) is about the best I can do. Any suggestions on how to practically implement using webform fields as attributes would be welcomed.

I'd still like to hear from a few more people before I roll this into a release to make sure its not breaking anything.

portulaca’s picture

We did further development on using attributes with webform, although our direction sounds opposite from what you mentioned; we created hidden webform fields and use them as attribute storage, this means that attributes are saved in webform table as well as in UC. Hidden webform fields are connected to attributes by using attribute names and belonging options. What we gained from this is the nice webform results and stats for those attributes.

This seemed like the quickest solution but it's not the most elegant. One drawback is that there doesn't seem to be a way to intersperse webform fields with attributes when displaying the form (at least we haven't figured how to do it through hook form alter).

A different approach is to make the webform generate the UC product attributes. The idea is to have additional webform fields of type "product attribute" for types it makes sense, so you'd have Select options product attribute, Textfield product attribute, Textarea product attribute, Hidden product attribute... Ideally this would be implemented in Event registration without touching the Webform module. Can it be done? We're interested in pursuing this direction and have some ideas but need further discussion.

We also needed to make uc_attribute_quantity work so we modified it as well, it doesn't influence Event registration directly but we had to include a piece of code in Event registration to make it work with uc_attribute_quantity.
Modifications we made on uc_attribute_quantity are related to Event Registration, they aren't general and we haven't tested the changes on general "quantity" cases. This is just to start a discussion and see if this can lead to anything useful in general.

What's your take on all this?

rustyleaf’s picture

Title: product attributes » product attributes +

You are beautiful people - developing this module. much kudos. Thank you. Just to say that i have added this patch:

http://www.ubercart.org/comment/56104

from this thread:

http://www.ubercart.org/forum/ideas_and_suggestions/4582/price_adjustmen...

You also need to run some sql:

ALTER TABLE `uc_attribute_options` ADD COLUMN `multiplier` Decimal(16,5)  NOT NULL DEFAULT 0 AFTER `price`;
ALTER TABLE `uc_class_attribute_options` ADD COLUMN `multiplier` Decimal(16,5)  NOT NULL DEFAULT 0 AFTER `price`;
ALTER TABLE `uc_product_options` ADD COLUMN `multiplier` Decimal(16,5)  NOT NULL DEFAULT 0 AFTER `price`;

It adds further functionality to the attributes - so you can add % discounts etc based upon the attributes chosen. From my limited testing - it all seems to work. Am using it to create online courses and discounts etc...

Keep up the great work!

Rob_Feature’s picture

@portulaca: I think we'll consider "how we add attributes into form" a separate issue. If you'd like to discuss that specifically I welcome you to open an issue and we can focus on that.

@rustyleaf: I'm not sure how this relates directly to uc_event_registration...it seems that this is a general ubercart thing you're talking about. Are you just pointing out that attributes is working with uc_event_registration as expected with the dev version?

If so, I think that's almost enough feedback to roll it into a release. Any objections?

rustyleaf’s picture

i believe i am rob +1 for release

JamesMarie’s picture

Thought I would chime in here to let you know that I have uploaded the dev version to a site I'm working on and it works perfectly! Made my life so much easier! :D
Thank you so much for this module! Life saver!

Rob_Feature’s picture

Status: Needs review » Fixed

Added into 6.x-1.2 which will release today. Thanks for everyone's testing!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ChrisLaFrancis’s picture

portulaca,

In comment #20 of this thread you mention that you were able to store attribute data within the webform tables. Could you elaborate on how you were able to accomplish this?

It may be more appropriate to reply to the issue I created here.