Have field for customer to upload file attached to product in cart

This is G o o g l e's cache of http://www.ubercart.org/forum/support/1602/have_field_customer_upload_fi... as retrieved on 2 Aug 2007 22:10:45 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:mlK-VZrX0PEJ:www.ubercart.org/forum...

Google is neither affiliated with the authors of this page nor responsible for its content.
These search terms have been highlighted: have field customer upload file attached product cart
Ubercart

* Home
* Documentation
* Forums
* Issues
* Livetest

Home » Forums » Ubercart » Support
Have field for customer to upload file attached to product in cart
Submitted by ssherriff on Sun, 07/29/2007 - 22:56
ssherriff
Posts: 21
Joined: 05/04/2007
Getting busy with the Ubercode.

Ok, I'm posting this in Support hoping I can do this without much trouble. I'm guessing it is going to turn into development.

I am doing a site where corporations can order Christmas cards that are personalised. I was able to do most attributes as dropdown boxes or user entered text fields, but I need them to be able to upload a logo. I have no idea how to accomplish this.

1. Can this be done in the current system with some creative thinking?

2. If it can't, what does everything think the best way to add this functionality in would be? At first I thought it would be good for them to be able to add it as an attribute when they are adding the card to the cart, but maybe it would be better as a cart pane so they can choose to upload only one logo for possibly many types of cards. But then of course how do you cover for the situation that one person wants a different logo on different sets of cards?

Anyway, any thoughts?

Cheers,
Steph

* Add new comment

permalinkMon, 07/30/2007 - 08:39
Ryan

Posts: 1685
Joined: 09/26/2006
AdministratorCode Monkey Head - I eat bugs.

Hmm... that's tough. I think some other folks have confronted this problem and ended up just asking for people to e-mail them the file. Sticking out tongue

One way that I could see it working out is you can require folks to login before putting products in their cart. Then, on the add to cart form, include your file upload. On future pages, you can have the file upload box include a drop down for previously uploaded files attached to that user ID. So the file would be uploaded to your site, and the product would just end up storing the filename.

This would take some work on your part, b/c I don't know of any generic file APIs like this. I believe in you, though. Eye-wink

(You could do it without requiring login, of course, it would just facilitate the prepopulated select box more. The checkout pane doesn't sound like a bad idea, but at the same time... I don't know if I'd want to get folks to checkout and then risk an upload timeout error and them running off to some other site.)

This would be a useful contribution for many folks, I'm sure.

* reply

permalinkMon, 07/30/2007 - 20:33
ssherriff
Posts: 21
Joined: 05/04/2007
Getting busy with the Ubercode.

Hmm, ok, well the store may have to start with them just emailing the file, and I'll think about this a bit more and see if I can work something out.

* reply

100IT's picture
Offline
Joined: 02/14/2010
Juice: 19
upload module

I've made a module which has this functionality. It's based on what I learned figuring out the attributes module.

Its still in alpha but a working example can be found here http://www.robinick.be

The product form has an extra collapsible upload field which can be used to add an upload to the cart.

It's not ready for the wide audience since its not documented + a few minor bugs.

Example is in dutch but would be understandable I think.

Radio buttons colour and extra quality field could be adjusted but only programmatically for now.

Send me message for sources or collaboration in this project.

Regards.
Chris

http://www.100it.be

macman's picture
Offline
Joined: 09/20/2010
Juice: 12
upload module

Hi Chris

IT looks great what you have done. I would love the source if you don't mind. I'm not yet a great developer so probably can't collaborate.

Kind Regards
Chris

http://www.websplendid.com.au

bellagio's picture
Offline
Joined: 12/09/2010
Juice: 22
Re: upload module

It really looks nice what you have done. Could you kindly share your work? Smiling

Thank you.

johnnydarkko's picture
Offline
Joined: 04/07/2011
Juice: 13
Source Please

Hi 100IT,

I'd like the source for this project, I was hoping to build a site with very similar functionality. Hopefully I can help with collaboration on this as well.

Thanks,
boc

tchurch's picture
Offline
Joined: 05/27/2009
Juice: 36
Looks great!

Hi,

This looks like exactly what my customer is after.
We tried using uc_node_checkout but it uses additional content types and isn't really workable for them.

Can you send me the code? I'd like to use it.

Have you created a Drupal project/module for this on the drupal.org website?
I've seen many people asking for this type of thing so you might get some help with posting it there. I might also be able to help, if needed.
I work as a maintainer on a couple of projects although I'm still learning this.

tchurch's picture
Offline
Joined: 05/27/2009
Juice: 36
Reply?

Hi,

I'm still waiting for a reply to this.
I've tried on several occasions to contact the author.

tchurch's picture
Offline
Joined: 05/27/2009
Juice: 36
No reply...

We are still waiting for a reply.

It would be handy if the code was posted onto the drupal.org website.

johnnydarkko's picture
Offline
Joined: 04/07/2011
Juice: 13
Re: Have field for customer to upload file attached to product i

Another discussion regarding a similar request on d.o:
http://drupal.org/node/641702

johnnydarkko's picture
Offline
Joined: 04/07/2011
Juice: 13
UC Node Product

Looks like the awesome people at Lullabot and Commerce Guys have sponsored development on this module that allows you to attach a node to a product:
http://drupal.org/project/uc_node_checkout

tchurch's picture
Offline
Joined: 05/27/2009
Juice: 36
doesn't solve problem...

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).

Mike John (not verified)
Mike John's picture
Re: Have field for customer to upload file attached to product i

this article is so nice i like it or is very informative for us

Debt Settlement Negotiation

Mike John (not verified)
Mike John's picture
Re: Have field for customer to upload file attached to product i

This article is very nice i like it

Moving Boxes

saftl's picture
Offline
Joined: 06/15/2011
Juice: 6
This has been done already, but hard to find.

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.