I have looked at the many posts on this subject, but still cannot find an answer. I have a printing company and want a customer to be able to attach a file for printing when they choose a specific product in Ubercart. Any help/direction would be helpful.

Ubercart looked so great until I hit this roadblock.

Thank you!

Comments

johnnydarkko’s picture

I came across this posting on ubercart's website:
http://www.ubercart.org/forum/archive/67/have_field_customer_upload_file...

Looks like the 100IT built a module with the same kind of functionality that we're looking for, but the source/module is nowhere to be found. If anyone has an idea on how to build this module, I'd like to collaborate.

Thanks,
Bocalig

--jBocalig

WorldFallz’s picture

No one mentions version-- but afaik, ubercart products are now content types so you should be able to add any type of cck field you want.

johnnydarkko’s picture

If you add a cck field and allow a customer to upload a file to attach to the node, won't those attachments forever be attached to the product node until someone removes it?

I was hoping to add a file field where the customer can attach the file so that when the product is purchased, the order will be submitted with the attachment. Please correct me if my train of thought is totally off, though :)

--jBocalig

WorldFallz’s picture

...won't those attachments forever be attached to the product node until someone removes it?

absolutely-- but neither post mentions that as undesirable. In any case, you can use rules to automate their deletion if you like.

johnnydarkko’s picture

Looks like the awesome people at Lullabot and Commerce Guys have developed a module that will allow you to attach a node to a product.

http://drupal.org/project/uc_node_checkout

--jBocalig

tchurch’s picture

To be honest, this module doesn't really solve the problem.
Also the title of this conversation is misleading.

What everyone is really after is some way of allowing the customer to upload a file to an ORDERED product (not a product).
In other words, maybe as a product attribute.

I tried uc_node_checkout. The problem is that the customer can't upload the file until after they order the product, not on the same page as all the other attributes. It also requires multiple content types for each product that you want a file upload for.

This is want the module from 100IT would do. I've tried to contact him for months and only ever had one reply (that it was pending, basically).

djg_tram’s picture

I just happen to need one myself and I'll start working on it within a couple of days (maybe even as soon as tomorrow, time permitting). And I'll need at least the basic functionality very soon (simple Upload button, admin specified target directory), bells and whistles (progress bar, scheduled deletion, etc) can come later, we'll see. If you're still interested, I keep you posted.

nwom’s picture

This module does everything except it doesn't show a preview. If it somehow worked with the module "Upload Elements" (http://drupal.org/project/upload_element) then it would be perfect.

You can download the module here:
https://github.com/Drupalfarms/uc_attribute_files

If anyone can get the preview working as soon as possible, that would be amazing. I have a project that I'm working on that needs to have this feature implemented by this weekend. Wish me luck.

djg_tram’s picture

Very nice and promising, just in time, saves some work that I was already determined to do... :-) Thanks a lot.