Closed (fixed)
Project:
Commerce File
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 May 2012 at 13:14 UTC
Updated:
17 Jun 2012 at 07:21 UTC
My product has a commerce file, how can I assign a file?
Thanks.
Comments
Comment #1
rszrama commentedThere isn't really enough information in this issue to help you. Please provide more detail, otherwise it sounds like you just need to set the default value in the field UI.
Comment #2
bakulaw commentedMy site allow users to upload file for processing and the system produce an output file that I want to add as commerce file product from code. I can't find any example of products created from code that includes a commerce file. Hope that helps clarify my issue...
Thanks again.
Comment #3
rszrama commentedYes, it does. Unfortunately, there just isn't any documentation for this or a "recommended process." This will require a bit of research on your part to figure out how you want to do the server side processing. Then you can use this module's API to set the file up as an access controlled file for the user to download. I don't know exactly what that would look like - like would you have to create a new product for each customer and attach the file to it? or could the file just exist on its own?
If you can't sort it out, you might try reaching recrit on IRC in the #drupal-commerce chat room.
Comment #4
bakulaw commentedThank you for your suggestions. The product is unique for each customer, also the price depends on the size of the file, I guess I'll really need to ask recrit for support. :)
Comment #5
bakulaw commentedCan't find any solution...