Hi, so I have this store I'm building and I need what when a client does a purchase, he is able to upload a file (or 2, depnding on the case) before the product is added to the cart. Well, I followed the tutorial here: http://drupaleasy.com/blogs/ultimike/2009/03/event-registration-ubercart
and what I got was a content type with 2 fields to upload a file and when the user clicks into the "Add to cart" button, he is redirected to the node with the new content type and after he uploads the files, then he is taken to the shopping cart. On the shopping cart, below all the attributes of the product is showing a link to the file (I used a token like this: [field_nameofthefieldfile1-filefield-view] - [field_nameofthefieldfile2-filefield-view], which I would also be interested if there is any way that when I just upload one file instead of 2, the second field won't be showing, as when there is not a second file, instead of showing a link, it's just showing that code, I would like it not to display anything at all when there is not a second file uploaded... But anyway that's not the main question here, it would be nice if somebody can tell me how to fix it though).
The problem is, that once the user adds all the items that he wants into his shopping cart, and these items are displaying their associated files on the shopping cart correctly, once the user proceeds to checkout, the links to these images dissapear at all from the checkout process, so that makes that when the invoice is processed, the associated files are not listed, so it's hard to figure out what is the file associated with each one of the product (items) purchased on the store.

I would like to know, if I'm doing something wrong for the uploaded files using the created node which is place before the checkout not to show at the checkout (at final invoice), or if there is no way to do that? Or in case that it's not possible to do that, what would be the best way so that when one order is placed, is possible to identify easily which one are the files associated with each item purchased, and not all of the items from the same order to be mixed?

I hope I explained myself clearly about what I need, if somebody could help me with this I would really appreaciate it, as I need to figure out this the soonest as possible to finish building the store. I tried other modules to try to attach images to a purchased item, such as creating a upload field on the attributes, or adding a form at the checkout, but I found out this is the best way to get what I need, I just need to know how to for the uploaded files to be listed on the final invoice, to be accessed easily from the admin.

Thanks in advance,
Dexter

Comments

dexter23’s picture

Sorry, you can disregard my first post, I just checked out that it's working fine, I just can't see on the final step of the checkout the attached images, but then on the final order they are displaying well. I tested this yesterday but it didn't work, now it does.

However, I would also like to ask another question (if somebody can delete my previous post and just keep this, I didn't want to open a new Issue).

What I have right now when an user adds an item to his product cart, it's a node which asks the user to upload one or two files. One will be always required, but for some products, it will be necessary to add a second one, but not always. So, the problem is that I setted up on the Node checkout settings, the order product like this: [field_file1-filefield-view] - [field_file2-filefield-view]
So, at the shopping cart, when the 2 files are required it's displaying it correctly, showing the names of the files linking to the files, but when just one file is uploded, the first one it's showing correctly with the link to the file, but the second one is just displaying that code "[field_file2-filefield-view]", which doesn't look good.
I would like to know if there is some way to do that when just one file it's uploaded, the code for the second one won't be showing, so it will be just a link to the first file and nothing else.

And also, I have realised that when I access an order from the admin panel (admin/store/orders/1), at the products listing it's showing all the attributes from a product and just below all the attributes it's displaying which should be the same link to the uploaded images which was being displayed on the shopping cart, but I don't know why, all the code it's not working and it's being showed as plain text, so instead of what it should be, there is something like this:

<div class="filefield-file"><img class="filefield-icon field-icon-image-jpeg" alt="image/jpeg icon" src="storepath/modules/filefield/icons/image-x-generic.png" /><a href="storepath/images/orders/image1.jpg" type="image/jpeg; length=9976">image1.jpg</a></div> - [field_file2-filefield-view]

I hope somebody can help me with this, and sorry for the first post on this issue, I hope it can be deleted.

Thanks,
Dexter

dexter23’s picture

Somebody could help me with this (comment #1, not the first post of the issue). I can't find any way to change this, it seems on the Admin - Order the added html code is being taken as plain, text. Checking the Source Code, instead of being showed as

<div class="filefield-file"><img class="filefield-icon field-icon-image-jpeg" 
...

it's showing as

&lt;div class=&quot;filefield-file&quot;&gt;&lt;img class=&quot;filefield-icon field-icon-image-jpeg&quot;
...

I don't know why this is happening. Also, i don't know how to do so that when just one file is uploaded using the node-checkout, the second token field [field_file2-filefield-view] is disregarded and not showed on the Shoping Cart page.

Hope somebody can help with this.

Thanks!

Dexter

aidanlis’s picture

Status: Active » Postponed (maintainer needs more info)

I have no idea what this issue is about.

doublejosh’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)