My product has a commerce file, how can I assign a file?

Thanks.

Comments

rszrama’s picture

Project: Commerce Core » Commerce File
Component: Commerce » User interface
Category: feature » support
Status: Active » Postponed (maintainer needs more info)

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

bakulaw’s picture

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

rszrama’s picture

Status: Postponed (maintainer needs more info) » Fixed

Yes, 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.

bakulaw’s picture

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

bakulaw’s picture

Can't find any solution...

Status: Fixed » Closed (fixed)

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